salt-common/sls/rsyncd/init.sls

28 lines
442 B
Plaintext
Raw Normal View History

# -*- 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/