Merge "Use httpd::mod instead of httpd_mod"

This commit is contained in:
Jenkins 2015-12-21 18:18:57 +00:00 committed by Gerrit Code Review
commit c71d6b4496
5 changed files with 50 additions and 22 deletions

View File

@ -14,9 +14,11 @@ class openstack_project::cacti (
include ::httpd
httpd_mod { 'rewrite':
if ! defined(Httpd::Mod['rewrite']) {
httpd::mod { 'rewrite':
ensure => present,
}
}
package { 'cacti':
ensure => present,

View File

@ -144,9 +144,11 @@ class openstack_project::eavesdrop (
require => Class['statusbot'],
}
httpd_mod { 'headers':
if ! defined(Httpd::Mod['headers']) {
httpd::mod { 'headers':
ensure => present,
}
}
class { 'project_config':
url => $project_config_repo,

View File

@ -70,15 +70,23 @@ class openstack_project::grafana (
template => 'openstack_project/grafana.vhost.erb',
}
httpd_mod { 'rewrite':
if ! defined(Httpd::Mod['rewrite']) {
httpd::mod { 'rewrite':
ensure => present,
}
httpd_mod { 'proxy':
}
if ! defined(Httpd::Mod['proxy']) {
httpd::mod { 'proxy':
ensure => present,
}
httpd_mod { 'proxy_http':
}
if ! defined(Httpd::Mod['proxy_http']) {
httpd::mod { 'proxy_http':
ensure => present,
}
}
class { '::project_config':
url => $project_config_repo,

View File

@ -31,15 +31,23 @@ class openstack_project::static (
include ::httpd
include ::httpd::mod::wsgi
httpd_mod { 'rewrite':
if ! defined(Httpd::Mod['rewrite']) {
httpd::mod { 'rewrite':
ensure => present,
}
httpd_mod { 'proxy':
}
if ! defined(Httpd::Mod['proxy']) {
httpd::mod { 'proxy':
ensure => present,
}
httpd_mod { 'proxy_http':
}
if ! defined(Httpd::Mod['proxy_http']) {
httpd::mod { 'proxy_http':
ensure => present,
}
}
if ! defined(File['/srv/static']) {
file { '/srv/static':

View File

@ -26,15 +26,23 @@ class openstack_project::status (
include ::httpd
httpd_mod { 'rewrite':
if ! defined(Httpd::Mod['rewrite']) {
httpd::mod { 'rewrite':
ensure => present,
}
httpd_mod { 'proxy':
}
if ! defined(Httpd::Mod['proxy']) {
httpd::mod { 'proxy':
ensure => present,
}
httpd_mod { 'proxy_http':
}
if ! defined(Httpd::Mod['proxy_http']) {
httpd::mod { 'proxy_http':
ensure => present,
}
}
file { '/srv/static':
ensure => directory,