updated rsync state

This commit is contained in:
Paul 2023-01-04 23:34:26 +01:00
parent dcaa6a715d
commit 74af25f096
2 changed files with 7 additions and 5 deletions

View File

@ -3,6 +3,7 @@ rsync:
enabled: true
config:
global:
address: 127.0.0.1
uid: 'root'
gid: 'root'
use chroot: 'no'
@ -10,7 +11,7 @@ rsync:
syslog facility: 4
pid file: '/var/run/rsyncd.pid'
sections:
- name: 'tmp'
- name: 'tmppath'
settings:
path: '/tmp'
path: '/tmp/tmppath'
read only: 'yes'

View File

@ -1,7 +1,8 @@
## {{ salt['pillar.get']('salt_managed', default='Salt Managed') }}
{%- from "rsync/map.jinja" import rsync with context %}
{% for key, value in rsync.config.global.items() %}
{{ key }} = {{ value }}
[global]
{%- for key, value in rsync.config.global.items() %}
{{ key }} = {{ value }}
{%- endfor %}
{% for section in rsync.config.sections -%}
@ -9,4 +10,4 @@
{%- for key, value in section.settings.items() %}
{{ key }} = {{ value }}
{%- endfor %}
{%- endfor %}
{%- endfor %}