summaryrefslogtreecommitdiff
path: root/manifests/config
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2013-12-28 17:26:14 +0100
committermh <mh@immerda.ch>2013-12-28 17:26:14 +0100
commit26e498007ae101aba154acc8435729768e9590ff (patch)
tree0eefb408589499a168a3c9713acf62b8dad05acf /manifests/config
parentc3a52f63c2a97b8d6135bd3131b36550d97d388a (diff)
reduce dependency on lsb modules, rather use the builtin facts
Diffstat (limited to 'manifests/config')
-rw-r--r--manifests/config/file.pp30
1 files changed, 16 insertions, 14 deletions
diff --git a/manifests/config/file.pp b/manifests/config/file.pp
index 308da68..29e6736 100644
--- a/manifests/config/file.pp
+++ b/manifests/config/file.pp
@@ -25,10 +25,12 @@ define apache::config::file(
default => $destination
}
file{"apache_${name}":
- ensure => $ensure,
- path => $real_destination,
- notify => Service[apache],
- owner => root, group => 0, mode => 0644;
+ ensure => $ensure,
+ path => $real_destination,
+ notify => Service[apache],
+ owner => root,
+ group => 0,
+ mode => '0644';
}
if $ensure == 'present' {
case $content {
@@ -37,10 +39,10 @@ define apache::config::file(
'absent' => [
"puppet:///modules/site_apache/${confdir}/${::fqdn}/${name}",
"puppet:///modules/site_apache/${confdir}/${apache::cluster_node}/${name}",
- "puppet:///modules/site_apache/${confdir}/${::operatingsystem}.${::lsbdistcodename}/${name}",
+ "puppet:///modules/site_apache/${confdir}/${::operatingsystem}.${::operatingsystemmajrelease}/${name}",
"puppet:///modules/site_apache/${confdir}/${::operatingsystem}/${name}",
"puppet:///modules/site_apache/${confdir}/${name}",
- "puppet:///modules/apache/${confdir}/${::operatingsystem}.${::lsbdistcodename}/${name}",
+ "puppet:///modules/apache/${confdir}/${::operatingsystem}.${::operatingsystemmajrelease}/${name}",
"puppet:///modules/apache/${confdir}/${::operatingsystem}/${name}",
"puppet:///modules/apache/${confdir}/${name}"
],
@@ -55,14 +57,14 @@ define apache::config::file(
'absent': {
$real_source = $source ? {
'absent' => [
- "puppet://${server}/modules/site-apache/${confdir}/${fqdn}/${name}",
- "puppet://${server}/modules/site-apache/${confdir}/${apache_cluster_node}/${name}",
- "puppet://${server}/modules/site-apache/${confdir}/${operatingsystem}.${lsbdistcodename}/${name}",
- "puppet://${server}/modules/site-apache/${confdir}/${operatingsystem}/${name}",
- "puppet://${server}/modules/site-apache/${confdir}/${name}",
- "puppet://${server}/modules/apache/${confdir}/${operatingsystem}.${lsbdistcodename}/${name}",
- "puppet://${server}/modules/apache/${confdir}/${operatingsystem}/${name}",
- "puppet://${server}/modules/apache/${confdir}/${name}"
+ "puppet:///modules/site-apache/${confdir}/${::fqdn}/${name}",
+ "puppet:///modules/site-apache/${confdir}/${apache::cluster_node}/${name}",
+ "puppet:///modules/site-apache/${confdir}/${::operatingsystem}.${::operatingsystemmajrelease}/${name}",
+ "puppet:///modules/site-apache/${confdir}/${::operatingsystem}/${name}",
+ "puppet:///modules/site-apache/${confdir}/${name}",
+ "puppet:///modules/apache/${confdir}/${::operatingsystem}.${::operatingsystemmajrelease}/${name}",
+ "puppet:///modules/apache/${confdir}/${::operatingsystem}/${name}",
+ "puppet:///modules/apache/${confdir}/${name}"
],
default => $source,
}