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: Iff6874b4c9f41c974b03accfbbf7eef6d047fa9b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2015-07-14 15:42:20 -04:00
parent 5311568c74
commit 909e6c2a7d
2 changed files with 7 additions and 7 deletions

View File

@ -8,13 +8,13 @@ class lodgeit {
'python-simplejson', 'python-simplejson',
'python-pygments'] 'python-pygments']
include apache include ::httpd
include pip include pip
a2mod { 'proxy': httpd_mod { 'proxy':
ensure => present, ensure => present,
} }
a2mod { 'proxy_http': httpd_mod { 'proxy_http':
ensure => present, ensure => present,
} }

View File

@ -9,9 +9,9 @@ define lodgeit::site(
$vhost_name="paste.${name}.org", $vhost_name="paste.${name}.org",
$image='') { $image='') {
include apache include ::httpd
apache::vhost::proxy { $vhost_name: ::httpd::vhost::proxy { $vhost_name:
port => 80, port => 80,
dest => "http://localhost:${port}", dest => "http://localhost:${port}",
require => File["/srv/lodgeit/${name}"], require => File["/srv/lodgeit/${name}"],
@ -21,7 +21,7 @@ define lodgeit::site(
ensure => present, ensure => present,
content => template('lodgeit/upstart.erb'), content => template('lodgeit/upstart.erb'),
replace => true, replace => true,
require => Package[$::apache::params::apache_name], require => Class['httpd'],
notify => Service["${name}-paste"], notify => Service["${name}-paste"],
} }
@ -66,6 +66,6 @@ define lodgeit::site(
service { "${name}-paste": service { "${name}-paste":
ensure => running, ensure => running,
provider => upstart, provider => upstart,
require => Service[$::apache::params::apache_name], require => Class['httpd'],
} }
} }