Ales Komarek | f933a5c | 2014-04-02 11:13:37 +0200 | [diff] [blame] | 1 | uid = <your-user-name> |
| 2 | gid = <your-user-name> |
| 3 | log file = /var/log/rsyncd.log |
| 4 | pid file = /var/run/rsyncd.pid |
| 5 | address = 127.0.0.1 |
| 6 | |
| 7 | |
| 8 | {%- for server in servers %} |
| 9 | [{{ server.name}}] |
| 10 | max connections = {{ server.max_connections }} |
| 11 | path = /srv/1/node/ {{ server.device }} |
| 12 | read only = {{ server.read_only }} |
| 13 | lock file = /var/lock/{{ server.name }}.lock |
| 14 | |
| 15 | {%- endfor %} |
| 16 | |
| 17 | {# |
| 18 | [account6022] |
| 19 | max connections = 25 |
| 20 | path = /srv/2/node/ |
| 21 | read only = false |
| 22 | lock file = /var/lock/account6022.lock |
| 23 | |
| 24 | [account6032] |
| 25 | max connections = 25 |
| 26 | path = /srv/3/node/ |
| 27 | read only = false |
| 28 | lock file = /var/lock/account6032.lock |
| 29 | |
| 30 | [account6042] |
| 31 | max connections = 25 |
| 32 | path = /srv/4/node/ |
| 33 | read only = false |
| 34 | lock file = /var/lock/account6042.lock |
| 35 | |
| 36 | [container6011] |
| 37 | max connections = 25 |
| 38 | path = /srv/1/node/ |
| 39 | read only = false |
| 40 | lock file = /var/lock/container6011.lock |
| 41 | |
| 42 | [container6021] |
| 43 | max connections = 25 |
| 44 | path = /srv/2/node/ |
| 45 | read only = false |
| 46 | lock file = /var/lock/container6021.lock |
| 47 | |
| 48 | [container6031] |
| 49 | max connections = 25 |
| 50 | path = /srv/3/node/ |
| 51 | read only = false |
| 52 | lock file = /var/lock/container6031.lock |
| 53 | |
| 54 | [container6041] |
| 55 | max connections = 25 |
| 56 | path = /srv/4/node/ |
| 57 | read only = false |
| 58 | lock file = /var/lock/container6041.lock |
| 59 | |
| 60 | [object6010] |
| 61 | max connections = 25 |
| 62 | path = /srv/1/node/ |
| 63 | read only = false |
| 64 | lock file = /var/lock/object6010.lock |
| 65 | |
| 66 | [object6020] |
| 67 | max connections = 25 |
| 68 | path = /srv/2/node/ |
| 69 | read only = false |
| 70 | lock file = /var/lock/object6020.lock |
| 71 | |
| 72 | [object6030] |
| 73 | max connections = 25 |
| 74 | path = /srv/3/node/ |
| 75 | read only = false |
| 76 | lock file = /var/lock/object6030.lock |
| 77 | |
| 78 | [object6040] |
| 79 | max connections = 25 |
| 80 | path = /srv/4/node/ |
| 81 | read only = false |
| 82 | lock file = /var/lock/object6040.lock |
| 83 | #} |