This commit is contained in:
root
2020-05-09 13:50:53 -04:00
parent fc2ea8f76b
commit 94cf5ca183
5 changed files with 23 additions and 4 deletions

View File

@@ -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
View 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
View 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 %}

View File

@@ -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 %}

View File

@@ -10,4 +10,5 @@
- icinga2 - icinga2
- nginx - nginx
- restic.server - restic.server
- restic.client
- samba - samba