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:
3.4.1. Pre-creating a Client Host Entry on the IdM Server
- Log in as admin:
$ kinit admin
- Create the host entry on the IdM server, and set a temporary password for the entry:
$ ipa host-add client.example.com --password=secretThe 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:
%packages @ X Window System @ Desktop @ Sound and Video
ipa-client...See Package Selection in the Installation Guide for details.
- Post-installation instructions that:
For a non-interactive installation, add also the
- ensure SSH keys are generated before enrollment
- runs the
- 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”
%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
--unattendedoption.To let the client installation script request a certificate for the machine:
NoteRed Hat recommends not to start the
- Add the
- Set the system bus address to
/dev/nullfor both the
ipa-client-installutility in the kickstart
chrootenvironment. To do this, add these lines to the post-installation instruction file before the
# env DBUS_SYSTEM_BUS_ADDRESS=unix:path=/dev/null getcert list # env DBUS_SYSTEM_BUS_ADDRESS=unix:path=/dev/null ipa-client-install
sshdservice prior to the kickstart enrollment. While starting
sshdbefore 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.