summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2015-11-16 12:59:12 +0100
committervarac <varacanero@zeromail.org>2015-11-28 13:40:49 +0100
commit9a0fb40f6336d22cf37084f07c320e56bfbc3cb8 (patch)
treec73c4f51d2348bfdffa48b863787625882bc853e
parentf76a4fb59f5724c21bd660e4262a4a9a5a89efee (diff)
[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.
-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 }
}