Migrate to puppet-httpd module
puppet-httpd is the openstack-infra version of puppetlabs-apache (0.0.4) release. This patchset will remove the puppetlabs-apache namespace from -infra allowing for possible future patchsets to use newer puppetlabs-apache modules. Change-Id: Ifcc60d173430e30159aa794e5adb5ba71107e647 Depends-On: I4f4648538801a60f45b28cedc73b24d8905cfe14 Depends-On: I2ecb0f5db76d9a13ddb89293e44b2f86fad1137c Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
21783c7571
commit
abe9445fb7
@ -32,6 +32,46 @@ class openstackci::logserver (
|
||||
}
|
||||
}
|
||||
|
||||
# NOTE(pabelanger): Until we full remove puppetlabs-apache from
|
||||
# system-config, we need to do this hack to avoid a circular dependency.
|
||||
if ! defined(Class['::apache']) {
|
||||
include ::httpd
|
||||
include ::httpd::mod::wsgi
|
||||
|
||||
if ! defined(Httpd_mod['rewrite']) {
|
||||
httpd_mod { 'rewrite':
|
||||
ensure => present,
|
||||
}
|
||||
}
|
||||
|
||||
if ! defined(Httpd_mod['proxy']) {
|
||||
httpd_mod { 'proxy':
|
||||
ensure => present,
|
||||
}
|
||||
}
|
||||
|
||||
if ! defined(Httpd_mod['proxy_http']) {
|
||||
httpd_mod { 'proxy_http':
|
||||
ensure => present,
|
||||
}
|
||||
}
|
||||
|
||||
::httpd::vhost { "logs.${domain}":
|
||||
port => 80,
|
||||
priority => '50',
|
||||
docroot => '/srv/static/logs',
|
||||
require => File['/srv/static/logs'],
|
||||
template => 'openstackci/logs.vhost.erb',
|
||||
}
|
||||
|
||||
::httpd::vhost { "logs-dev.${domain}":
|
||||
port => 80,
|
||||
priority => '51',
|
||||
docroot => '/srv/static/logs',
|
||||
require => File['/srv/static/logs'],
|
||||
template => 'openstackci/logs-dev.vhost.erb',
|
||||
}
|
||||
} else {
|
||||
include apache
|
||||
include apache::mod::wsgi
|
||||
|
||||
@ -53,12 +93,6 @@ class openstackci::logserver (
|
||||
}
|
||||
}
|
||||
|
||||
if ! defined(File['/srv/static']) {
|
||||
file { '/srv/static':
|
||||
ensure => directory,
|
||||
}
|
||||
}
|
||||
|
||||
apache::vhost { "logs.${domain}":
|
||||
port => 80,
|
||||
priority => '50',
|
||||
@ -74,6 +108,13 @@ class openstackci::logserver (
|
||||
require => File['/srv/static/logs'],
|
||||
template => 'openstackci/logs-dev.vhost.erb',
|
||||
}
|
||||
}
|
||||
|
||||
if ! defined(File['/srv/static']) {
|
||||
file { '/srv/static':
|
||||
ensure => directory,
|
||||
}
|
||||
}
|
||||
|
||||
file { '/srv/static/logs':
|
||||
ensure => directory,
|
||||
|
@ -8,7 +8,7 @@
|
||||
"project_page": "http://docs.openstack.org/infra/system-config/",
|
||||
"issues_url": "https://storyboard.openstack.org/#!/project/808",
|
||||
"dependencies": [
|
||||
{ "name": "puppetlabs/apache" },
|
||||
{ "name": "openstackinfra/httpd" },
|
||||
{ "name": "openstackinfra/vcsrepo" },
|
||||
{ "name": "openstackinfra/jenkins" },
|
||||
{ "name": "openstackinfra/zuul" },
|
||||
|
Loading…
x
Reference in New Issue
Block a user