Skip to content
Snippets Groups Projects
Commit c147f7c9 authored by Te-Hung Tseng's avatar Te-Hung Tseng
Browse files

Reconfigured config share for backup strategy

parent 66f43353
No related branches found
No related tags found
1 merge request!3Reconfigured config share for backup strategy
Pipeline #16169 passed
......@@ -35,7 +35,6 @@ Example Playbook
Role Variables
--------------
```yaml
---
# defaults file for rsync-server
rsync_server_uid: root
rsync_server_gid: root
......@@ -46,19 +45,20 @@ rsync_server_exclude_compress: "*.gz *.tgz *.zip *.z *.Z *.rpm *.deb *.bz2"
rsync_server_log_path: /var/log/rsyncd.log
rsync_server_pid_path: /var/run/rsyncd.pid
rsync_server_readonly: false
rsync_server_shares:
- name: replaceme
path: /foo/lab/bar-01
hosts_allow: 10.4.3.15, 172.30.4.0/24, learning-01.cslab.esss.lu.se
comment: dummy client to be replaced in CS-entry
read_only: false
uid: nobody
gid: 13
excludes: "lost+found/ test/ .*"
timeout: 600
- name: client2
path: /learning/lab/learning-02
hosts_allow: learning-01.cslab.esss.lu.se learning-02.cslab.esss.lu.se
rsync_server_shares: []
# - name: replaceme
# path: /foo/lab/bar-01
# hosts_allow: 10.4.3.15, 172.30.4.0/24, learning-01.cslab.esss.lu.se
# comment: dummy client to be replaced in CS-entry
# read_only: false
# uid: nobody
# gid: 13
# excludes: "lost+found/ test/ .*"
# timeout: 600
# - name: client2
# path: /learning/lab/learning-02
# hosts_allow: learning-01.cslab.esss.lu.se learning-02.cslab.esss.lu.se
License
......
......@@ -9,16 +9,16 @@ rsync_server_exclude_compress: "*.gz *.tgz *.zip *.z *.Z *.rpm *.deb *.bz2"
rsync_server_log_path: /var/log/rsyncd.log
rsync_server_pid_path: /var/run/rsyncd.pid
rsync_server_readonly: false
rsync_server_shares:
- name: replaceme
path: /foo/lab/bar-01
hosts_allow: 10.4.3.15, 172.30.4.0/24, learning-01.cslab.esss.lu.se
comment: dummy client to be replaced in CS-entry
read_only: false
uid: nobody
gid: 13
excludes: "lost+found/ test/ .*"
timeout: 600
- name: client2
path: /learning/lab/learning-02
hosts_allow: learning-01.cslab.esss.lu.se learning-02.cslab.esss.lu.se
rsync_server_shares: []
# - name: replaceme
# path: /foo/lab/bar-01
# hosts_allow: 10.4.3.15, 172.30.4.0/24, learning-01.cslab.esss.lu.se
# comment: dummy client to be replaced in CS-entry
# read_only: false
# uid: nobody
# gid: 13
# excludes: "lost+found/ test/ .*"
# timeout: 600
# - name: client2
# path: /learning/lab/learning-02
# hosts_allow: learning-01.cslab.esss.lu.se learning-02.cslab.esss.lu.se
......@@ -41,10 +41,10 @@ comment = {{ share.comment | default(share.path) }}
read only = {{ share.readonly }}
{% endif %}
{% if share.uid is defined %}
uid = {{ share.uid | default('nobody') }}
uid = {{ share.uid }}
{% endif %}
{% if share.gid is defined %}
gid = {{ share.gid | default('nobody') }}
gid = {{ share.gid }}
{% endif %}
{% if share.excludes is defined %}
exclude = {{ share.excludes }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment