Skip to content

Instantly share code, notes, and snippets.

@dogukancagatay
Last active May 28, 2024 10:33
Show Gist options
  • Save dogukancagatay/96376d4055dcf3ebeea8b87043251826 to your computer and use it in GitHub Desktop.
Save dogukancagatay/96376d4055dcf3ebeea8b87043251826 to your computer and use it in GitHub Desktop.
Setup FreeIPA

Setup master

hostnamectl set-hostname ipa.example.local
echo "192.168.2.85 ipa.example.local" | sudo tee -a /etc/hosts
yum module list idm
yum module info idm:DL1
yum install -y @idm:DL1
yum install -y freeipa-server freeipa-server-dns
ipa-server-install --unattended --realm=EXAMPLE.LOCAL --no-host-dns --no-ntp --no-ssh --no-sshd --ds-password=admin123 --admin-password=admin123 --setup-dns --forwarder=1.1.1.1

References

Add replica server

On master

ipa dnszone-add --name-from-ip=192.168.2.0/21
ipa dnsrecord-add 168.192.in-addr.arpa 85.2 --ptr-rec ipa.example.local
ipa dnsrecord-add 168.192.in-addr.arpa 86.2 --ptr-rec portia02.example.local
ipa hostgroup-add-member ipaservers --hosts portia02.example.local

On replica

ipa-client-install --domain=example.local --realm=EXAMPLE.LOCAL --server=ipa.example.local
ipa-replica-install --setup-dns --forwarder=1.1.1.1
@vahidrad
Copy link

Great

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment