Configure IdM server roles for recommended placement and availability.
Outcomes
Configure IdM server roles for recommended placement and availability.
As the student user on the workstation machine, use the lab command to prepare your system for this exercise.
This command prepares your environment and ensures that all required resources are available.
[student@workstation ~]$ lab start topology-serverroles
Instructions
Review the domain configuration and the enabled roles for the idm, replica1, and replica2 machines.
Log in to the idm machine and authenticate to IdM as the admin user.
[student@workstation ~]$ssh idm[student@idm ~]$kinit adminPassword for admin@LAB.EXAMPLE.COM:RedHat123^
Review the current domain configuration.
Verify the roles enabled on the servers.
[student@idm ~]$ipa config-show...output omitted... IPA masters: idm.lab.example.com, replica1.lab.example.com, replica2.lab.example.com IPA master capable of PKINIT: idm.lab.example.com, replica1.lab.example.com, replica2.lab.example.comIPA CA servers: idm.lab.example.comIPA CA renewal master: idm.lab.example.comIPA DNS servers: idm.lab.example.com, replica1.lab.example.com, replica2.lab.example.com
List the server roles on the replica1 machine.
[student@idm ~]$ ipa server-show replica1.lab.example.com
Server name: replica1.lab.example.com
Managed suffixes: domain
Min domain level: 1
Max domain level: 1
Enabled server roles: DNS server, IPA masterEnable the CA role on the replica1 machine.
Log out of the idm machine.
Log in to the replica1 machine and become the root user.
[student@idm ~]$exitlogout Connection to idm closed. [student@workstation ~]$ssh replica1[student@replica1 ~]$sudo -i[sudo] password for student:student
Install the IdM CA service.
[root@replica1 ~]#ipa-ca-installDirectory Manager (existing master) password:RedHat123^Run connection check to master Connection check OK Configuring certificate server (pki-tomcatd). Estimated time: 3 minutes [1/28]: creating certificate server db [2/28]: setting up initial replication Starting replication, please wait until this has completed. Update in progress, 5 seconds elapsed Update succeeded [3/28]: creating ACIs for admin [4/28]: creating installation admin user [5/28]: configuring certificate server instance ...output omitted... [28/28]: deploying ACME service Done configuring certificate server (pki-tomcatd). Updating DNS system records
Log out of the replica1 machine and log in to idm.
Authenticate to IdM as the admin user.
[root@replica1 ~]#exitlogout [student@replica1 ~]$exitConnection to replica1 closed. [student@workstation ~]$ssh idm[student@idm ~]$kinit adminPassword for admin@LAB.EXAMPLE.COM:RedHat123^
Review the roles that are enabled for the replica1 machine and identify the servers that have the CA server role enabled.
The replica1 machine now has the CA server role enabled.
[student@idm ~]$ipa server-show replica1.lab.example.comServer name: replica1.lab.example.com Managed suffixes: domain, ca Min domain level: 1 Max domain level: 1 Enabled server roles:CA server, DNS server, IPA master [student@idm ~]$ipa server-find --servrole "CA server"--------------------- 2 IPA servers matched --------------------- Server name: idm.lab.example.com Min domain level: 1 Max domain level: 1 Server name: replica1.lab.example.com Min domain level: 1 Max domain level: 1 ---------------------------- Number of entries returned 2 ----------------------------
Review the ca topology segments.
IdM automatically creates the replication agreement between the idm and replica1 machines.
[student@idm ~]$ ipa topologysegment-find ca
-----------------
1 segment matched
-----------------
Segment name: idm.lab.example.com-to-replica1.lab.example.com
Left node: idm.lab.example.com
Right node: replica1.lab.example.com
Connectivity: both
----------------------------
Number of entries returned 1
----------------------------Exit the idm machine.
[student@idm ~]$ exit
logout
Connection to idm closed.