Add Apache 2.4 syntax
Change-Id: I5b7f86820a7570856541ba868800c60d7f41346e Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
8f76ea753d
commit
e1db3a5db0
@ -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,
|
||||
|
@ -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 %>
|
||||
|
Loading…
x
Reference in New Issue
Block a user