summaryrefslogtreecommitdiffstats
path: root/salt/profile/netcup_failover/init.sls
diff options
context:
space:
mode:
authorGeorg Pfuetzenreuter2023-02-08 21:19:37 +0100
committerGeorg Pfuetzenreuter2023-02-12 05:24:27 +0100
commitf08bda4256f7c71899c45ea8b5ad73c67f77ae9a (patch)
tree68f92157398a85aa0d0313a717ac61ea4944cbb4 /salt/profile/netcup_failover/init.sls
parent303b06ae8cae4167bca6bafca71d226b32379941 (diff)
downloadsalt-f08bda4256f7c71899c45ea8b5ad73c67f77ae9a.tar.gz
salt-f08bda4256f7c71899c45ea8b5ad73c67f77ae9a.tar.bz2
salt-f08bda4256f7c71899c45ea8b5ad73c67f77ae9a.zip
Add netcup_failover profile
Profile managing a Netcup IP address failover script for use with keepalived. Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
Diffstat (limited to 'salt/profile/netcup_failover/init.sls')
-rw-r--r--salt/profile/netcup_failover/init.sls10
1 files changed, 10 insertions, 0 deletions
diff --git a/salt/profile/netcup_failover/init.sls b/salt/profile/netcup_failover/init.sls
new file mode 100644
index 0000000..c4d5679
--- /dev/null
+++ b/salt/profile/netcup_failover/init.sls
@@ -0,0 +1,10 @@
+include:
+ - profile.keepalived_script_user
+
+/usr/local/bin/failover:
+ file.managed:
+ - user: keepalived_script
+ - group: wheel
+ - mode: 750
+ - template: jinja
+ - source: salt://{{ slspath }}/files/failover.sh.j2