forked from redhat-openstack/openstack-puppet-modules
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
proxy_html needs to load libxml2 library before loading module in Debian
Allow passing list of files to load before loading the module to apache::mod libxml2 path in i686 hardwaremodel is /usr/lib/i386-linux-gnu/libxml2.so.2 Add acceptance tests for proxy_html and debian 7.3
- Loading branch information
Carlos Sanchez
committed
Mar 12, 2014
1 parent
f30d212
commit eee54e9
Showing
8 changed files
with
115 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
require 'spec_helper_acceptance' | ||
|
||
describe 'apache::mod::proxy_html class', :unless => UNSUPPORTED_PLATFORMS.include?(fact('osfamily')) do | ||
case fact('osfamily') | ||
when 'Debian' | ||
service_name = 'apache2' | ||
when 'RedHat' | ||
service_name = 'httpd' | ||
when 'FreeBSD' | ||
service_name = 'apache22' | ||
end | ||
|
||
context "default proxy_html config" do | ||
if fact('osfamily') == 'RedHat' | ||
it 'adds epel' do | ||
pp = "class { 'epel': }" | ||
apply_manifest(pp, :catch_failures => true) | ||
end | ||
end | ||
|
||
it 'succeeds in puppeting proxy_html' do | ||
pp= <<-EOS | ||
class { 'apache': } | ||
class { 'apache::mod::proxy': } | ||
class { 'apache::mod::proxy_http': } | ||
class { 'apache::mod::proxy_html': } | ||
EOS | ||
apply_manifest(pp, :catch_failures => true) | ||
end | ||
|
||
describe service(service_name) do | ||
it { should be_enabled } | ||
it { should be_running } | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
HOSTS: | ||
debian-73-i386: | ||
roles: | ||
- master | ||
platform: debian-7-i386 | ||
box : debian-73-i386-virtualbox-nocm | ||
box_url : http://puppet-vagrant-boxes.puppetlabs.com/debian-73-i386-virtualbox-nocm.box | ||
hypervisor : vagrant | ||
CONFIG: | ||
log_level: debug | ||
type: git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
HOSTS: | ||
debian-73-x64: | ||
roles: | ||
- master | ||
platform: debian-7-amd64 | ||
box : debian-73-x64-virtualbox-nocm | ||
box_url : http://puppet-vagrant-boxes.puppetlabs.com/debian-73-x64-virtualbox-nocm.box | ||
hypervisor : vagrant | ||
CONFIG: | ||
log_level: debug | ||
type: git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<% if @loadfiles -%> | ||
<% Array(@loadfiles).each do |loadfile| -%> | ||
LoadFile <%= loadfile %> | ||
<% end -%> | ||
|
||
<% end -%> | ||
LoadModule <%= @_id %> <%= @_path %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters