diff options
Diffstat (limited to 'modules/apache/manifests/base.pp')
-rw-r--r-- | modules/apache/manifests/base.pp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/modules/apache/manifests/base.pp b/modules/apache/manifests/base.pp index 18c9a8bf..d56e9100 100644 --- a/modules/apache/manifests/base.pp +++ b/modules/apache/manifests/base.pp @@ -11,9 +11,13 @@ class apache::base { alias => 'apache-server', } - # only needed on mga1 and mga2 - if ($::lsbdistrelease == '1') or ($::lsbdistrelease == '2') { + if versioncmp($::lsbdistrelease, '2') <= 0 { + $conf_d = '/etc/httpd/conf.d' + + # only needed on mga1 and mga2 package { $apache::var::pkg_conf: } + } else { + $conf_d = '/etc/httpd/conf/conf.d' } service { 'httpd': @@ -27,7 +31,7 @@ class apache::base { } apache::config { - '/etc/httpd/conf.d/customization.conf': + "${conf_d}/customization.conf": content => template('apache/customization.conf'), require => Package[$apache::var::pkg_conf]; '/etc/httpd/conf/vhosts.d/00_default_vhosts.conf': |