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