aboutsummaryrefslogtreecommitdiffstats
path: root/inventory-example/40-groups
diff options
context:
space:
mode:
authorStonewall Jackson <stonewall@sacredheartsc.com>2023-03-09 07:05:07 -0500
committerStonewall Jackson <stonewall@sacredheartsc.com>2023-03-09 07:14:48 -0500
commit79794a00ef832365959404ca8499a545b6202d7c (patch)
tree45ccfb6abfcc6e24f290c79de3869410f4cc6c2a /inventory-example/40-groups
parent0a41c066909d8ff76f0306ea8450ecbfb48a5b6d (diff)
downloadselfhosted-79794a00ef832365959404ca8499a545b6202d7c.tar.gz
selfhosted-79794a00ef832365959404ca8499a545b6202d7c.zip
dnf_automatic: don't automatically restart services on ipa servers
Turns out that restarting individual units on a freeipa server can leave it in a bad state. Systemd isn't smart enough to restart things in the right order - you have to use `ipactl restart`. There's probably a way to make the daemon restart script smarter with regard to IPA hosts, but since an IPA outage is incredibly disruptive, I'm just disabling auto-restart on IPA hosts for now.
Diffstat (limited to 'inventory-example/40-groups')
-rw-r--r--inventory-example/40-groups10
1 files changed, 8 insertions, 2 deletions
diff --git a/inventory-example/40-groups b/inventory-example/40-groups
index 0b3f935..4e10ce7 100644
--- a/inventory-example/40-groups
+++ b/inventory-example/40-groups
@@ -43,10 +43,16 @@ proxmox_bios = seabios
[freeipa_master:vars]
# The initial FreeIPA installation requires an upstream DNS server to bootstrap itself.
proxmox_nameservers = '{{ freeipa_dns_forwarders }}'
-# Update the FreeIPA master every _other_ day. If there's a botched automatic
-# update, we don't want to take the entire domain down overnight.
+# Don't update all freeipa servers at once
dnf_automatic_on_calendar = '*-*-1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31 04:00:00'
+[freeipa_replicas:vars]
+# Don't update all freeipa servers at once
+dnf_automatic_on_calendar = '*-*-2,4,6,8,10,12,14,16,18,20,22,24,26,28,30 04:00:00'
+
+[freeipa_servers:vars]
+dnf_automatic_restart = False
+
[git_servers:vars]
apache_gssapi = True