0
0
mirror of https://github.com/saltstack-formulas/rsyncd-formula.git synced 2024-12-18 04:33:19 +01:00
rsyncd-formula/rsyncd/init.sls

19 lines
405 B
Plaintext
Raw Normal View History

2015-05-02 00:06:42 +02:00
{% from "rsyncd/map.jinja" import rsyncd with context %}
2015-05-01 23:22:41 +02:00
2015-05-02 00:06:42 +02:00
rsync:
2015-05-01 23:22:41 +02:00
pkg.installed:
2015-05-02 00:06:42 +02:00
- name: {{ rsyncd.pkg }}
2015-05-01 23:22:41 +02:00
service.running:
2015-05-02 00:06:42 +02:00
- name: {{ rsyncd.service }}
2015-05-01 23:22:41 +02:00
- enable: True
2015-05-02 00:06:42 +02:00
{% if grains.os_family == 'Debian' %}
/etc/default/rsync:
file.replace:
- pattern: ^.*RSYNC_ENABLE=.*$
- repl: RSYNC_ENABLE=true
- append_if_not_found: True
- watch_in:
- service: rsync
{% endif %}