Add Apache 2.4 syntax

Change-Id: I5b7f86820a7570856541ba868800c60d7f41346e
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2016-05-25 20:47:33 -04:00
parent 8f76ea753d
commit e1db3a5db0
No known key found for this signature in database
GPG Key ID: 611A80832067AF38
2 changed files with 11 additions and 0 deletions

View File

@ -1,6 +1,14 @@
class meetbot {
include ::httpd
# The Apache mod_version module only needs to be enabled on Ubuntu 12.04
# as it comes compiled and enabled by default on newer OS, including CentOS
if !defined(Httpd::Mod['version']) and $::operatingsystem == 'Ubuntu' and $::operatingsystemrelease == '12.04' {
httpd::mod { 'version':
ensure => present
}
}
vcsrepo { '/opt/meetbot':
ensure => latest,
provider => git,

View File

@ -20,6 +20,9 @@ NameVirtualHost <%= @vhost_name %>:<%= @port %>
AllowOverride None
Order allow,deny
allow from all
<IfVersion >= 2.4>
Require all granted
</IfVersion>
</Directory>
<%= @vhost_extra %>