]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/roles/manifests/static_mirror.pp
senfl is our first static source
[dsa-puppet.git] / modules / roles / manifests / static_mirror.pp
1 class roles::static_mirror inherits roles::static_source {
2     file {
3         '/usr/local/bin/static-mirror-run':
4             source  => "puppet:///modules/roles/static-mirroring/static-mirror-run",
5             mode => 555,
6             ;
7
8         "/srv/static.debian.org":
9             ensure  => directory,
10             owner   => staticsync,
11             group   => staticsync,
12             mode    => '02755'
13             ;
14         "/etc/cron.d/puppet-static-mirror":
15             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",
16             ;
17
18         #"/etc/apache2/sites-available/dist.torproject.org":
19         #    source  => "puppet:///modules/roles/static-mirroring/vhost/dist.torproject.org",
20         #    require => Package["apache2"],
21         #    notify  => Exec["reload-apache2"],
22         #    ;
23         #"/etc/apache2/sites-available/www.torproject.org":
24         #    source  => "puppet:///modules/roles/static-mirroring/vhost/www.torproject.org",
25         #    require => Package["apache2"],
26         #    notify  => Exec["reload-apache2"],
27         #    ;
28     }
29
30     #apache2::activate_apache_site {
31     #    "10-dist.torproject.org":
32     #        site => "dist.torproject.org",
33     #        require => File['/etc/ssl/certs/apache-wildcard.torproject.org.pem'];
34     #    "10-www.torproject.org":
35     #        site => "www.torproject.org",
36     #        require => File['/etc/ssl/certs/apache-wildcard.torproject.org.pem'];
37     #}
38 }
39 # vim:set et:
40 # vim:set sts=4 ts=4:
41 # vim:set shiftwidth=4: