Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Load Version module on Debian so IfVersion works

  • Loading branch information...
commit da2892f5ad53c9320f2bc6d8065b70a2ce1c31c0 1 parent ebb94d8
@GregSutcliffe authored
Showing with 14 additions and 0 deletions.
  1. +14 −0 manifests/config.pp
View
14 manifests/config.pp
@@ -31,4 +31,18 @@
require => Class['apache::install'],
}
+ # Ensure the Version module is loaded as we need it in the Foreman vhosts
+ # RedHat distros come with this enabled, so it's just Debian that needs hand-holding
+ case $::osfamily {
+ Debian: {
+ exec { 'enable-version':
+ command => '/usr/sbin/a2enmod version',
+ creates => '/etc/apache2/mods-enabled/version.load',
+ notify => Service['httpd'],
+ require => Class['apache::install'],
+ }
+ }
+ default: {}
+ }
+
}
Please sign in to comment.
Something went wrong with that request. Please try again.