summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2015-11-16 12:59:12 +0100
committervarac <varacanero@zeromail.org>2015-11-27 23:45:14 +0100
commit885263681f44d8103efef86a9492c770252b3b05 (patch)
tree87042eb41fa9e8f125ac1078a78421ae67798747
parent8fb31b7d15263ef044a57d50a172295bbf6465a9 (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 }
}