ensure => absent,
}
- if has_role('popcon') {
- $memlimit = 512 * 1024 * 1024
- } else {
- $memlimit = $rlimitmem
- }
-
apache2::config { 'resource-limits':
content => template('apache2/resource-limits.erb'),
}
class roles::popcon {
- ssl::service { 'popcon.debian.org':
- notify => Exec['service apache2 reload'],
- key => true,
- }
+ class { 'apache2':
+ rlimitmem => 512 * 1024 * 1024,
+ }
- include apache2::ssl
- apache2::site { 'popcon.debian.org':
- site => 'popcon.debian.org',
- source => 'puppet:///modules/roles/popcon/popcon.debian.org.conf',
- }
+ include apache2::ssl
+
+ ssl::service { 'popcon.debian.org':
+ notify => Exec['service apache2 reload'],
+ key => true,
+ }
+ apache2::site { 'popcon.debian.org':
+ site => 'popcon.debian.org',
+ source => 'puppet:///modules/roles/popcon/popcon.debian.org.conf',
+ }
}