up2date
This commit is contained in:
@@ -28,6 +28,11 @@ icingaweb2_vhost:
|
|||||||
- watch_by:
|
- watch_by:
|
||||||
- service: nginx
|
- service: nginx
|
||||||
|
|
||||||
|
/etc/icinga2/conf.d:
|
||||||
|
git.cloned:
|
||||||
|
- name: ssh://keiran5@git.keiran.us:9022/config-mgmt/icinga2-conf.d.git
|
||||||
|
- target: /etc/icinga2/conf.d
|
||||||
|
|
||||||
# icingacli setup config directory
|
# icingacli setup config directory
|
||||||
# icingacli setup token create
|
# icingacli setup token create
|
||||||
# icingacli setup token show
|
# icingacli setup token show
|
||||||
|
|||||||
7
restic/client.sls
Normal file
7
restic/client.sls
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{% from "restic/map.jinja" import url with context %}
|
||||||
|
|
||||||
|
'download restic':
|
||||||
|
cmd.run:
|
||||||
|
- name: 'wget {{url}} -O - | bzip2 -cd > /bin/restic ; chmod +x /bin/restic'
|
||||||
|
- unless: stat /bin/restic
|
||||||
|
|
||||||
6
restic/map.jinja
Normal file
6
restic/map.jinja
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
|
||||||
|
{% if salt.grains.get('cpuarch').startswith('arm') %}
|
||||||
|
{% set url = 'https://github.com/restic/restic/releases/download/v0.9.6/restic_0.9.6_linux_arm.bz2' %}
|
||||||
|
{% else %}
|
||||||
|
{% set url = 'https://github.com/restic/restic/releases/download/v0.9.6/restic_0.9.6_linux_amd64.bz2' %}
|
||||||
|
{% endif %}
|
||||||
@@ -25,10 +25,10 @@
|
|||||||
valid users = %S
|
valid users = %S
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% for name, path in salt.pillar.get('samba:shares', {}).items() %}
|
{% for name, conf in salt.pillar.get('samba:shares', {}).items() %}
|
||||||
[{{ name }}]
|
[{{ name }}]
|
||||||
path = {{ path }}
|
path = {{ conf['path'] }}
|
||||||
valid users = @sambashare
|
valid users = {{ conf['users'] }}
|
||||||
read only = yes
|
read only = {{ conf['readonly'] }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user