3.4. Setting up an IdM Client Through Kickstart
3.4. Setting up an IdM Client Through Kickstart A Kickstart enrollment automatically adds a new system to the IdM domain at the time Red Hat Enterprise Linux is installed. For details on Kickstart, see Kickstart Installations in the Installation Guide . Preparing for a Kickstart client installation includes these steps: Section 3.4.1, "Pre-creating a Client Host Entry on the IdM Server" Section 3.4.2, "Creating a Kickstart File for the Client" 3.4.1. Pre-creating a Client Host Entry on the IdM Server Log in as admin: Create the host entry on the IdM server, and set a temporary password for the entry: The password is used by Kickstart to authenticate during the client installation and expires after the first authentication attempt. After the client is successfully installed, it authenticates using its keytab. 3.4.2. Creating a Kickstart File for the Client A Kickstart file used to set up an IdM client must include the following: The ipa-client package in the list of packages to be installed: See Package Selection in the Installation Guide for details. Post-installation instructions that: ensure SSH keys are generated before enrollment runs the ipa-client-install utility, specifying: all required information to access and configure the IdM domain services the password which you set when pre-creating the client host on the IdM server, in Section 3.4.1, "Pre-creating a Client Host Entry on the IdM Server" For example: For a non-interactive installation, add also the --unattended option. To let the client installation script request a certificate for the machine: Add the --request-cert option to ipa-client-install . Set the system bus address to /dev/null for both the getcert and ipa-client-install utility in the kickstart chroot environment. To do this, add these lines to the post-installation instruction file before the ipa-client-install instruction: Note Red Hat recommends not to start the sshd service prior to the kickstart enrollment. While starting sshd before enrolling the client generates the SSH keys automatically, using the above script is the preferred solution. See Post-installation Script in the Installation Guide for details. For details on using Kickstart, see How Do You Perform a Kickstart Installation? in the Installation Guide . For examples of Kickstart files, see Sample Kickstart Configurations .
kinit admin ipa host-add client.example.com --password= secret %packages @ X Window System @ Desktop @ Sound and Video ipa-client %post --log=/root/ks-post.log Generate SSH keys to ensure that ipa-client-install uploads them to the IdM server /usr/sbin/sshd-keygen Run the client install script /usr/sbin/ipa-client-install --hostname= client.example.com --domain= EXAMPLE.COM --enable-dns-updates --mkhomedir -w secret --realm= EXAMPLE.COM --server= server.example.com env DBUS_SYSTEM_BUS_ADDRESS=unix:path=/dev/null getcert list env DBUS_SYSTEM_BUS_ADDRESS=unix:path=/dev/null ipa-client-install