# Ensure we have the minimum augeas version required by shorewall module
package {
'libaugeas0':
- ensure => $lsbdistcodename ? {
+ ensure => $::lsbdistcodename ? {
'squeeze' => '0.10.0-1~bpo60+3',
default => installed,
};
'augeas-tools':
- ensure => $lsbdistcodename ? {
+ ensure => $::lsbdistcodename ? {
'squeeze' => '0.10.0-1~bpo60+3',
default => installed,
},
# 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", ]
}
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", ]
}
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", ]
}
# 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',
}
# 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,
}
}
owner => root,
group => root,
mode => 0644,
- source => [ "puppet:///modules/site_nodo/X11/xorg.conf/${hostname}.${lsbdistcodename}",
- "puppet:///modules/site_nodo/X11/xorg.conf/${hostname}",
+ source => [ "puppet:///modules/site_nodo/X11/xorg.conf/${::hostname}.${::lsbdistcodename}",
+ "puppet:///modules/site_nodo/X11/xorg.conf/${::hostname}",
"puppet:///modules/site_nodo/X11/xorg.conf.default" ],
}
}