salt-common/sls/rsyncd/init.sls
Antsiferov Grigory 9dafba9fb6 sls/gentoo-mirror: moved to common;
sls/rsyncd: moved to common;
sls/ssl: pki templates were moved to common;
2016-09-17 23:15:37 +03:00

28 lines
442 B
YAML

# -*- mode: yaml -*-
rsync:
pkg.latest:
- name: 'net-misc/rsync'
/etc/rsyncd.conf:
file.managed:
- source: salt://rsyncd/rsyncd.conf
- mode: 644
- user: root
- group: root
/etc/rsyncd.d/:
file.directory:
- create: True
- mode: 755
- user: root
- group: root
rsyncd:
service.running:
- enable: True
- watch:
- pkg: rsync
- file: /etc/rsyncd.conf
- file: /etc/rsyncd.d/