OLD | NEW |
1 class filtermaster { | 1 class filtermaster { |
2 Cron { | 2 Cron { |
3 environment => ['MAILTO=admins@adblockplus.org', 'PYTHONPATH=/opt/sitescript
s'], | 3 environment => ['MAILTO=admins@adblockplus.org', 'PYTHONPATH=/opt/sitescript
s'], |
4 } | 4 } |
5 | 5 |
6 class {'ssh': | 6 concat::fragment {'sshd_user_rsync': |
7 custom_configuration => ' | 7 target => 'sshd_config', |
8 MaxSessions 50 | 8 content => ' |
9 MaxStartups 50 | 9 Match User rsync |
10 | 10 AllowTcpForwarding no |
11 Match User rsync | 11 X11Forwarding no |
12 AllowTcpForwarding no | 12 AllowAgentForwarding no |
13 X11Forwarding no | 13 GatewayPorts no |
14 AllowAgentForwarding no | 14 ForceCommand rsync --server --sender -vltprz --delete-excluded . /home/r
sync/generated/data/ |
15 GatewayPorts no | 15 ' |
16 ForceCommand rsync --server --sender -vltprz --delete-excluded . /home/rsy
nc/generated/data/' | |
17 } | 16 } |
18 | 17 |
19 user {'rsync': | 18 user {'rsync': |
20 ensure => present, | 19 ensure => present, |
21 comment => 'Filter list mirror user', | 20 comment => 'Filter list mirror user', |
22 home => '/home/rsync', | 21 home => '/home/rsync', |
23 managehome => true | 22 managehome => true |
24 } | 23 } |
25 | 24 |
26 file {'/home/rsync/update_repos.sh': | 25 file {'/home/rsync/update_repos.sh': |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 User['rsync'], | 125 User['rsync'], |
127 File['/home/rsync/update_repos.sh'] | 126 File['/home/rsync/update_repos.sh'] |
128 ], | 127 ], |
129 minute => '8-58/10' | 128 minute => '8-58/10' |
130 } | 129 } |
131 | 130 |
132 class {'sitescripts': | 131 class {'sitescripts': |
133 sitescriptsini_source => 'puppet:///modules/filtermaster/sitescripts' | 132 sitescriptsini_source => 'puppet:///modules/filtermaster/sitescripts' |
134 } | 133 } |
135 } | 134 } |
OLD | NEW |