From f08bda4256f7c71899c45ea8b5ad73c67f77ae9a Mon Sep 17 00:00:00 2001 From: Georg Pfuetzenreuter Date: Wed, 8 Feb 2023 21:19:37 +0100 Subject: Add netcup_failover profile Profile managing a Netcup IP address failover script for use with keepalived. Signed-off-by: Georg Pfuetzenreuter --- salt/profile/netcup_failover/init.sls | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 salt/profile/netcup_failover/init.sls (limited to 'salt/profile/netcup_failover/init.sls') 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 -- cgit v1.2.3