]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/roles/manifests/static_mirror.pp
Create srv/static.d.o on mirrors
[dsa-puppet.git] / modules / roles / manifests / static_mirror.pp
1 class roles::static_mirror inherits roles::static_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         "/srv/static.debian.org":
18             ensure  => directory,
19             owner   => staticsync,
20             group   => staticsync,
21             mode    => '02755'
22             ;
23         "/etc/cron.d/puppet-static-mirror":
24             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",
25             ;
26
27         #"/etc/apache2/sites-available/dist.torproject.org":
28         #    source  => "puppet:///modules/roles/static-mirroring/vhost/dist.torproject.org",
29         #    require => Package["apache2"],
30         #    notify  => Exec["reload-apache2"],
31         #    ;
32         #"/etc/apache2/sites-available/www.torproject.org":
33         #    source  => "puppet:///modules/roles/static-mirroring/vhost/www.torproject.org",
34         #    require => Package["apache2"],
35         #    notify  => Exec["reload-apache2"],
36         #    ;
37     }
38
39     #apache2::activate_apache_site {
40     #    "10-dist.torproject.org":
41     #        site => "dist.torproject.org",
42     #        require => File['/etc/ssl/certs/apache-wildcard.torproject.org.pem'];
43     #    "10-www.torproject.org":
44     #        site => "www.torproject.org",
45     #        require => File['/etc/ssl/certs/apache-wildcard.torproject.org.pem'];
46     #}
47 }
48 # vim:set et:
49 # vim:set sts=4 ts=4:
50 # vim:set shiftwidth=4: