From 885263681f44d8103efef86a9492c770252b3b05 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(-) (limited to 'manifests') 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