Permalink
Browse files

Load Version module on Debian so IfVersion works

  • Loading branch information...
1 parent ebb94d8 commit da2892f5ad53c9320f2bc6d8065b70a2ce1c31c0 @GregSutcliffe committed Jun 19, 2013
Showing with 14 additions and 0 deletions.
  1. +14 −0 manifests/config.pp
View
@@ -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: {}
+ }
+
}

0 comments on commit da2892f

Please sign in to comment.