diff --git a/manifests/init.pp b/manifests/init.pp index a0e18fe..b7b6284 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -8,13 +8,13 @@ class lodgeit { 'python-simplejson', 'python-pygments'] - include apache + include ::httpd include pip - a2mod { 'proxy': + httpd_mod { 'proxy': ensure => present, } - a2mod { 'proxy_http': + httpd_mod { 'proxy_http': ensure => present, } diff --git a/manifests/site.pp b/manifests/site.pp index 026a584..234006e 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -9,9 +9,9 @@ define lodgeit::site( $vhost_name="paste.${name}.org", $image='') { - include apache + include ::httpd - apache::vhost::proxy { $vhost_name: + ::httpd::vhost::proxy { $vhost_name: port => 80, dest => "http://localhost:${port}", require => File["/srv/lodgeit/${name}"], @@ -21,7 +21,7 @@ define lodgeit::site( ensure => present, content => template('lodgeit/upstart.erb'), replace => true, - require => Package[$::apache::params::apache_name], + require => Class['httpd'], notify => Service["${name}-paste"], } @@ -66,6 +66,6 @@ define lodgeit::site( service { "${name}-paste": ensure => running, provider => upstart, - require => Service[$::apache::params::apache_name], + require => Class['httpd'], } }