unicamp renumbering
[mirror/dsa-puppet.git] / modules / salsa / manifests / web.pp
1 #
2 class salsa::web inherits salsa {
3         include apache2
4         include apache2::proxy_http
5         include apache2::rewrite
6         include apache2::ssl
7
8         ssl::service { [
9                 'salsa.debian.org',
10                 'signup.salsa.debian.org',
11                 'webhook.salsa.debian.org',
12                 'pages.debian.net',
13                 ]:
14                 notify  => Exec['service apache2 reload'],
15                 key => true,
16         }
17
18         apache2::site { '010-salsa.debian.org':
19                 site    => 'salsa.debian.org',
20                 content => template('salsa/apache-salsa.debian.org.conf.erb'),
21         }
22         apache2::site { '010-signup.salsa.debian.org':
23                 site    => 'signup.salsa.debian.org',
24                 content => template('salsa/apache-signup.salsa.debian.org.conf.erb'),
25         }
26         apache2::site { '010-webhook.salsa.debian.org':
27                 site    => 'webhook.salsa.debian.org',
28                 content => template('salsa/apache-webhook.salsa.debian.org.conf.erb'),
29         }
30         apache2::site { '010-pages.debian.net':
31                 site    => 'pages.debian.net',
32                 content => template('salsa/apache-pages.debian.net.conf.erb'),
33         }
34 }