]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/roles/manifests/static_mirror.pp
static mirroring system
[dsa-puppet.git] / modules / roles / manifests / static_mirror.pp
1 class roles::static_mirror inherits roles::mirror_base {
2     file {
3         '/etc/ssh/userkeys/staticsync':
4             content => template('roles/static-mirror-authorized_keys.erb'),
5             ;
6         '/usr/local/bin/static-mirror-run':
7             source  => "puppet:///modules/roles/static-mirroring/static-mirror-run",
8             mode => 555,
9             ;
10         '/usr/local/bin/static-mirror-ssh-wrap':
11             source  => "puppet:///modules/roles/static-mirroring/static-mirror-ssh-wrap",
12             mode => 555,
13             ;
14     }
15
16     file {
17         "/etc/cron.d/puppet-static-mirror":
18             content => "PATH=/usr/local/bin:/usr/bin:/bin\n@reboot staticsync sleep 60; static-mirror-run --one-stage /srv/static.debian.org bizet.debian.org:-live- > /dev/null\n",
19             ;
20
21         #"/etc/apache2/sites-available/dist.torproject.org":
22         #    source  => "puppet:///modules/roles/static-mirroring/vhost/dist.torproject.org",
23         #    require => Package["apache2"],
24         #    notify  => Exec["reload-apache2"],
25         #    ;
26         #"/etc/apache2/sites-available/www.torproject.org":
27         #    source  => "puppet:///modules/roles/static-mirroring/vhost/www.torproject.org",
28         #    require => Package["apache2"],
29         #    notify  => Exec["reload-apache2"],
30         #    ;
31     }
32
33     #apache2::activate_apache_site {
34     #    "10-dist.torproject.org":
35     #        site => "dist.torproject.org",
36     #        require => File['/etc/ssl/certs/apache-wildcard.torproject.org.pem'];
37     #    "10-www.torproject.org":
38     #        site => "www.torproject.org",
39     #        require => File['/etc/ssl/certs/apache-wildcard.torproject.org.pem'];
40     #}
41 }
42 # vim:set et:
43 # vim:set sts=4 ts=4:
44 # vim:set shiftwidth=4: