2015-05-02 00:06:42 +02:00
|
|
|
{% from "rsyncd/map.jinja" import rsyncd with context %}
|
|
|
|
include:
|
|
|
|
- rsyncd
|
|
|
|
|
|
|
|
rsyncd_config_file:
|
|
|
|
file.managed:
|
|
|
|
- name: {{ rsyncd.configfile }}
|
|
|
|
- contents_pillar: rsyncd:config
|
|
|
|
- watch_in:
|
|
|
|
- service: rsync
|
|
|
|
|
|
|
|
{% if salt['pillar.get']('rsyncd:secrets') %}
|
|
|
|
rsyncd_secrets_file:
|
|
|
|
file.managed:
|
|
|
|
- name: {{ rsyncd.secretsfile }}
|
|
|
|
- watch_in:
|
|
|
|
- service: rsync
|
|
|
|
- source: salt://rsyncd/files/secrets.jinja
|
2015-05-03 19:11:59 +02:00
|
|
|
- mode: 640
|
2015-05-02 00:06:42 +02:00
|
|
|
- template: jinja
|
|
|
|
{% endif %}
|