diff options
author | Georg Pfuetzenreuter | 2023-02-08 21:19:37 +0100 |
---|---|---|
committer | Georg Pfuetzenreuter | 2023-02-12 05:24:27 +0100 |
commit | f08bda4256f7c71899c45ea8b5ad73c67f77ae9a (patch) | |
tree | 68f92157398a85aa0d0313a717ac61ea4944cbb4 /salt/profile/netcup_failover/init.sls | |
parent | 303b06ae8cae4167bca6bafca71d226b32379941 (diff) | |
download | salt-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.sls | 10 |
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 |