summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorng <ng+gitlab@immerda.ch>2015-11-28 09:22:57 +0000
committerng <ng+gitlab@immerda.ch>2015-11-28 09:22:57 +0000
commit465abc11546ea02664a957aed4672fd1311a22a9 (patch)
treec64ead2eb8f3cfb78d71471acbe144df243f119f /manifests
parentfcd2a84e535e5d280d5299a8ff489920e1ea2305 (diff)
parentce46bcb833032440103ea9a7e0eb49c5a2cd093e (diff)
Merge branch 'modalias_apache2.4' into 'master'
[bug] Use guess_apache_version() to query apache version Using $::apache_version won't work because the facts are evaluated before compiling the catalog and with this, before the installation of apache. so on an install from scratch, this fact won't contain anything. See merge request !5
Diffstat (limited to 'manifests')
-rw-r--r--manifests/module/alias.pp2
1 files changed, 1 insertions, 1 deletions
diff --git a/manifests/module/alias.pp b/manifests/module/alias.pp
index 26d9f4a..33d26ef 100644
--- a/manifests/module/alias.pp
+++ b/manifests/module/alias.pp
@@ -7,7 +7,7 @@ class apache::module::alias ( $ensure = present )
# from 2.4, /etc/apache2/mods-enabled/alias.conf contains the "Require"
# directive which needs "authz_core" mod enabled
- if ( versioncmp($::apache_version, '2.4') >= 0 ) {
+ if ( guess_apache_version() == '2.4') {
class { 'authz_core': ensure => $ensure }
}