summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralex <alex@pdp7.net>2023-02-05 22:06:38 +0100
committeralex <alex@pdp7.net>2023-02-05 22:06:38 +0100
commit61eacfd860766bb1cbaf6bf1d55857be0b15c323 (patch)
treed93fdadc1f331052f99cedff34858886eacefc5f
parent8558812069fefd7efdeeab2f10beb1662e7ed13f (diff)
Improve replica docs
-rw-r--r--personal_infra/setup_ipa_replicas.md21
1 files changed, 19 insertions, 2 deletions
diff --git a/personal_infra/setup_ipa_replicas.md b/personal_infra/setup_ipa_replicas.md
index 683c956f..95c9321b 100644
--- a/personal_infra/setup_ipa_replicas.md
+++ b/personal_infra/setup_ipa_replicas.md
@@ -1,7 +1,24 @@
-Update and reboot all IPA servers
-https://lists.fedorahosted.org/archives/list/freeipa-users@lists.fedorahosted.org/thread/2WMK5QOAI4TYF23UKODW3M6WB65BJCHT/
+Update and reboot all IPA servers: https://lists.fedorahosted.org/archives/list/freeipa-users@lists.fedorahosted.org/thread/2WMK5QOAI4TYF23UKODW3M6WB65BJCHT/
+If the host has a firewall (e.g. physical or virtual, not LXC container):
+
+```
firewall-cmd --permanent --add-port={80/tcp,443/tcp,389/tcp,636/tcp,88/tcp,88/udp,464/tcp,464/udp,53/
firewall-cmd --reload
+```
+
+Join the server to IPA:
+
+```
ipa-client-install -p principal --domain=ipa.pdp7.net -W --mkhomedir --ntp-pool=pool.ntp.org --force-join
+```
+
+Replace `--ntp-pool` with `-N` if this is a host without clock (e.g. an LXC container).
+Remove `--force-join` if you have never added this host to IPA.
+
+```
ipa-replica-install --ip-address=thishostaddress -n ipa.pdp7.net -P alex --setup-ca --setup-dns --forwarder=upstreamdnsforthishost
+```
+
+FreeIPA doesn't seem to like having different versions. When updating, when you add a new server with a new version, remove the rest of servers.
+You might have issues joining new replicas otherwise.