- '2a01:3f0:0:28::25'
postgres::backup_cluster::db_backup_role: 'debian-backup'
postgres::backup_server::globals::backup_unix_user: 'debbackup'
+webserver::defaultpage::defaultdomain: 'default.debian.org'
# bacula
#
bacula::email_all: 'bacula-reports@admin.debian.org'
+# Install default website content
#
-class webserver::defaultpage {
- file { [ '/srv/www', '/srv/www/default.debian.org', '/srv/www/default.debian.org/htdocs', '/srv/www/default.debian.org/htdocs-disabled' ]:
- ensure => directory,
- mode => '0755',
- }
+# @param defaultdomain domain name of the default page, to create directory under /srv/www
+class webserver::defaultpage (
+ String $defaultdomain,
+) {
+ file { [ '/srv/www', "/srv/www/${defaultdomain}", "/srv/www/${defaultdomain}/htdocs", "/srv/www/${defaultdomain}/htdocs-disabled" ]:
+ ensure => directory,
+ mode => '0755',
+ }
- file { '/srv/www/default.debian.org/htdocs/index.html':
- content => template('webserver/default-index.html'),
- }
+ file { "/srv/www/${defaultdomain}/htdocs/index.html":
+ content => template('webserver/default-index.html'),
+ }
- file { '/srv/www/default.debian.org/htdocs-disabled/index.html':
- content => template('webserver/disabled-index.html'),
- }
+ file { "/srv/www/${defaultdomain}/htdocs-disabled/index.html":
+ content => template('webserver/disabled-index.html'),
+ }
}