From 674ef361f17eaab6df3b5397459579c9bf25b02d Mon Sep 17 00:00:00 2001
From: Jeremy Stanley <fungi@yuggoth.org>
Date: Sat, 5 Sep 2015 19:30:05 +0000
Subject: [PATCH] Use httpd module instead of apache

OpenStack Infra currently uses a fork of puppetlabs/apache called
openstackinfra/httpd.

Change-Id: I470d7f5ebeee9949f6dd58d48a580d94866df0fd
---
 manifests/apache/http.pp  | 16 ++++++++--------
 manifests/apache/https.pp | 16 ++++++++--------
 2 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/manifests/apache/http.pp b/manifests/apache/http.pp
index 488bf20..432550b 100644
--- a/manifests/apache/http.pp
+++ b/manifests/apache/http.pp
@@ -31,15 +31,15 @@ class refstack::apache::http () {
   $server_admin           = $::refstack::params::server_admin
 
   # Install apache
-  include ::apache
-  include ::apache::params
-  include ::apache::mod::wsgi
+  include ::httpd
+  include ::httpd::params
+  include ::httpd::mod::wsgi
 
   # Create a copy of the wsgi file with apache user permissions.
   file { '/etc/refstack/app.wsgi':
     ensure  => present,
-    owner   => $::apache::params::user,
-    group   => $::apache::params::group,
+    owner   => $::httpd::params::user,
+    group   => $::httpd::params::group,
     mode    => '0644',
     source  => "${src_www_root}/refstack/api/app.wsgi",
     require => [
@@ -51,8 +51,8 @@ class refstack::apache::http () {
   # Synchronize the app directory and the apache directory.
   file { $install_www_root:
     ensure  => directory,
-    owner   => $::apache::params::user,
-    group   => $::apache::params::group,
+    owner   => $::httpd::params::user,
+    group   => $::httpd::params::group,
     source  => "${src_www_root}/refstack-ui/app",
     recurse => true,
     purge   => true,
@@ -61,7 +61,7 @@ class refstack::apache::http () {
   }
 
   # Set up RefStack as HTTP.
-  apache::vhost { $hostname:
+  httpd::vhost { $hostname:
     port     => 80,
     docroot  => $install_www_root,
     priority => '50',
diff --git a/manifests/apache/https.pp b/manifests/apache/https.pp
index ccd0070..eb9d40b 100644
--- a/manifests/apache/https.pp
+++ b/manifests/apache/https.pp
@@ -38,15 +38,15 @@ class refstack::apache::https () {
   $resolved_ssl_ca        = $::refstack::params::resolved_ssl_ca
 
   # Install apache
-  include ::apache
-  include ::apache::params
-  include ::apache::mod::wsgi
+  include ::httpd
+  include ::httpd::params
+  include ::httpd::mod::wsgi
 
   # Create a copy of the wsgi file with apache user permissions.
   file { '/etc/refstack/app.wsgi':
     ensure  => present,
-    owner   => $::apache::params::user,
-    group   => $::apache::params::group,
+    owner   => $::httpd::params::user,
+    group   => $::httpd::params::group,
     mode    => '0644',
     source  => "${src_www_root}/refstack/api/app.wsgi",
     require => [
@@ -88,8 +88,8 @@ class refstack::apache::https () {
   # Synchronize the app directory and the apache directory.
   file { $install_www_root:
     ensure  => directory,
-    owner   => $::apache::params::user,
-    group   => $::apache::params::group,
+    owner   => $::httpd::params::user,
+    group   => $::httpd::params::group,
     source  => "${src_www_root}/refstack-ui/app",
     recurse => true,
     purge   => true,
@@ -98,7 +98,7 @@ class refstack::apache::https () {
   }
 
   # Set up RefStack as HTTPS.
-  apache::vhost { $hostname:
+  httpd::vhost { $hostname:
     port     => 443,
     docroot  => $install_www_root,
     priority => '50',