aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystems/websites.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/subsystems/websites.pp')
-rw-r--r--manifests/subsystems/websites.pp14
1 files changed, 7 insertions, 7 deletions
diff --git a/manifests/subsystems/websites.pp b/manifests/subsystems/websites.pp
index 764ed97..ba5ed32 100644
--- a/manifests/subsystems/websites.pp
+++ b/manifests/subsystems/websites.pp
@@ -20,7 +20,7 @@ class websites::setup {
# This mode will also apply to files from the source directory
mode => 0644,
# Puppet will automatically set +x for directories
- source => [ "puppet:///modules/site_apache/htdocs/$domain/images",
+ source => [ "puppet:///modules/site_apache/htdocs/${::domain}/images",
"puppet:///modules/nodo/htdocs/images", ]
}
@@ -30,7 +30,7 @@ class websites::setup {
owner => "root",
group => "root",
mode => 0644,
- source => [ "puppet:///modules/site_apache/htdocs/$domain/index.html",
+ source => [ "puppet:///modules/site_apache/htdocs/${::domain}/index.html",
"puppet:///modules/nodo/htdocs/index.html", ]
}
@@ -40,7 +40,7 @@ class websites::setup {
owner => "root",
group => "root",
mode => 0644,
- source => [ "puppet:///modules/site_apache/htdocs/$domain/missing.html",
+ source => [ "puppet:///modules/site_apache/htdocs/${::domain}/missing.html",
"puppet:///modules/nodo/htdocs/missing.html", ]
}
@@ -51,7 +51,7 @@ class websites::setup {
# Default vhost: can just be applied on the defining host
apache::site { "${apache::server_name}":
- server_alias => "$domain",
+ server_alias => "${::domain}",
docroot => "${apache::www_folder}",
mpm => false,
tag => 'all',
@@ -114,17 +114,17 @@ class websites::hosting inherits websites::setup {
}
# Remove untagged site instances
- Apache::Site <| tag != $hostname and tag != 'all' |> {
+ Apache::Site <| tag != $::hostname and tag != 'all' |> {
ensure => absent,
}
# Remove untagged database instances
- Database::Instance <| tag != $hostname and tag != 'all' |> {
+ Database::Instance <| tag != $::hostname and tag != 'all' |> {
ensure => absent,
}
# Remove untagged ikiwiki instances
- Ikiwiki::Instance <| tag != $hostname and tag != 'all' |> {
+ Ikiwiki::Instance <| tag != $::hostname and tag != 'all' |> {
ensure => absent,
}
}