OLD | NEW |
1 class downloadserver { | 1 class downloadserver { |
2 user {'stats': | 2 user {'stats': |
3 ensure => present, | 3 ensure => present, |
4 home => '/home/stats', | 4 home => '/home/stats', |
5 managehome => true | 5 managehome => true |
6 } | 6 } |
7 | 7 |
8 file {'/home/stats/.ssh': | 8 file {'/home/stats/.ssh': |
9 ensure => directory, | 9 ensure => directory, |
10 owner => stats, | 10 owner => stats, |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 require => Nginx::Hostconfig['downloads.adblockplus.org'], | 89 require => Nginx::Hostconfig['downloads.adblockplus.org'], |
90 source => 'puppet:///modules/downloadserver/logrotate' | 90 source => 'puppet:///modules/downloadserver/logrotate' |
91 } | 91 } |
92 | 92 |
93 cron {'mirror': | 93 cron {'mirror': |
94 ensure => present, | 94 ensure => present, |
95 command => 'hg pull -q -u -R /var/www/downloads/', | 95 command => 'hg pull -q -u -R /var/www/downloads/', |
96 user => hg, | 96 user => hg, |
97 minute => '*/10' | 97 minute => '*/10' |
98 } | 98 } |
| 99 |
| 100 user {'rsync': |
| 101 ensure => present, |
| 102 home => '/home/rsync', |
| 103 managehome => true |
| 104 } |
| 105 |
| 106 file {'/home/rsync/.ssh': |
| 107 ensure => directory, |
| 108 require => User['rsync'], |
| 109 owner => rsync, |
| 110 mode => 0600; |
| 111 } |
| 112 |
| 113 file {'/home/rsync/.ssh/known_hosts': |
| 114 ensure => file, |
| 115 owner => rsync, |
| 116 mode => 0444, |
| 117 source => 'puppet:///modules/downloadserver/known_hosts' |
| 118 } |
| 119 |
| 120 file {'/home/rsync/.ssh/id_rsa': |
| 121 ensure => file, |
| 122 owner => rsync, |
| 123 mode => 0400, |
| 124 source => 'puppet:///modules/private/rsync@downloads.adblockplus.org' |
| 125 } |
| 126 |
| 127 file {'/home/rsync/.ssh/id_rsa.pub': |
| 128 ensure => file, |
| 129 owner => rsync, |
| 130 mode => 0400, |
| 131 source => 'puppet:///modules/private/rsync@downloads.adblockplus.org.pub' |
| 132 } |
| 133 |
| 134 cron {'mirror-devbuilds': |
| 135 ensure => present, |
| 136 require => [File['/home/rsync/.ssh/known_hosts'], |
| 137 File['/home/rsync/.ssh/id_rsa'], |
| 138 Exec['fetch_downloads']] |
| 139 command => 'rsync -e ssh -ltprz rsync@adblockplus.org:. /var/www/downloads/d
evbuilds', |
| 140 user => rsync, |
| 141 hour => '*', |
| 142 minute => '4-54/10' |
| 143 } |
99 } | 144 } |
OLD | NEW |