From 9a0fb40f6336d22cf37084f07c320e56bfbc3cb8 Mon Sep 17 00:00:00 2001 From: varac Date: Mon, 16 Nov 2015 12:59:12 +0100 Subject: [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. --- manifests/module/alias.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } } -- cgit v1.2.3