class roles::dgit_browse {
- ssl::service { 'browse.dgit.debian.org':
- notify => Exec['service apache2 reload'],
- key => true,
- }
+ include apache2
- package { 'cgit': ensure => installed, }
- package { 'python-pygments': ensure => installed, }
- package { 'python-chardet': ensure => installed, }
+ ssl::service { 'browse.dgit.debian.org':
+ notify => Exec['service apache2 reload'],
+ key => true,
+ }
- file { '/etc/cgitrc':
- source => 'puppet:///modules/roles/dgit/cgitrc',
- }
- file { '/etc/apache2/conf-enabled/cgit.conf':
- ensure => absent,
- notify => Exec['service apache2 reload'],
- }
+ package { 'cgit': ensure => installed, }
+ package { 'python-pygments': ensure => installed, }
+ package { 'python-chardet': ensure => installed, }
- apache2::site { '010-browse.dgit.debian.org':
- site => 'browse.dgit.debian.org',
- source => 'puppet:///modules/roles/dgit/browse.dgit.debian.org',
- }
+ file { '/etc/cgitrc':
+ source => 'puppet:///modules/roles/dgit/cgitrc',
+ }
+ file { '/etc/apache2/conf-enabled/cgit.conf':
+ ensure => absent,
+ notify => Exec['service apache2 reload'],
+ }
+ apache2::site { '010-browse.dgit.debian.org':
+ site => 'browse.dgit.debian.org',
+ source => 'puppet:///modules/roles/dgit/browse.dgit.debian.org',
+ }
}
class roles::dgit_git {
- ssl::service { 'git.dgit.debian.org':
- notify => Exec['service apache2 reload'],
- key => true,
- }
+ include apache2
- apache2::site { '010-git.dgit.debian.org':
- site => 'git.dgit.debian.org',
- source => 'puppet:///modules/roles/dgit/git.dgit.debian.org',
- }
+ ssl::service { 'git.dgit.debian.org':
+ notify => Exec['service apache2 reload'],
+ key => true,
+ }
+ apache2::site { '010-git.dgit.debian.org':
+ site => 'git.dgit.debian.org',
+ source => 'puppet:///modules/roles/dgit/git.dgit.debian.org',
+ }
}
}
}
- if has_role('dgit_browse') {
- include roles::dgit_browse
- }
- if has_role('dgit_git') {
- include roles::dgit_git
- }
-
if $::hostname in [lw01, lw02, lw03, lw04, lw09, lw10] {
include roles::snapshot
}