Merge "Clean up direct dependencies on puppetlabs-apache"
This commit is contained in:
		| @@ -123,7 +123,6 @@ class manila::api ( | |||||||
|   } elsif $service_name == 'httpd' { |   } elsif $service_name == 'httpd' { | ||||||
|     # We need to make sure manila-api/eventlet is stopped before trying to |     # We need to make sure manila-api/eventlet is stopped before trying to | ||||||
|     # start apache |     # start apache | ||||||
|     include apache::params |  | ||||||
|     service { 'manila-api': |     service { 'manila-api': | ||||||
|       ensure => 'stopped', |       ensure => 'stopped', | ||||||
|       name   => $::manila::params::api_service, |       name   => $::manila::params::api_service, | ||||||
|   | |||||||
| @@ -136,11 +136,6 @@ class manila::wsgi::apache ( | |||||||
|  |  | ||||||
|   include manila::deps |   include manila::deps | ||||||
|   include manila::params |   include manila::params | ||||||
|   include apache |  | ||||||
|   include apache::mod::wsgi |  | ||||||
|   if $ssl_real { |  | ||||||
|     include apache::mod::ssl |  | ||||||
|   } |  | ||||||
|  |  | ||||||
|   ::openstacklib::wsgi::apache { 'manila_wsgi': |   ::openstacklib::wsgi::apache { 'manila_wsgi': | ||||||
|     bind_host                   => $bind_host, |     bind_host                   => $bind_host, | ||||||
|   | |||||||
| @@ -24,10 +24,6 @@ | |||||||
|         { |         { | ||||||
|             "name": "openstack/oslo", |             "name": "openstack/oslo", | ||||||
|             "version_requirement": ">=20.0.0 <21.0.0" |             "version_requirement": ">=20.0.0 <21.0.0" | ||||||
|         }, |  | ||||||
|         { |  | ||||||
|             "name": "puppetlabs/apache", |  | ||||||
|             "version_requirement": ">=5.0.0" |  | ||||||
|         } |         } | ||||||
|     ], |     ], | ||||||
|     "description": "Installs and configures OpenStack Manila (Shared Filesystems).", |     "description": "Installs and configures OpenStack Manila (Shared Filesystems).", | ||||||
|   | |||||||
| @@ -5,9 +5,6 @@ describe 'manila::wsgi::apache' do | |||||||
|   shared_examples_for 'apache serving manila with mod_wsgi' do |   shared_examples_for 'apache serving manila with mod_wsgi' do | ||||||
|     context 'with default parameters' do |     context 'with default parameters' do | ||||||
|       it { is_expected.to contain_class('manila::params') } |       it { is_expected.to contain_class('manila::params') } | ||||||
|       it { is_expected.to contain_class('apache') } |  | ||||||
|       it { is_expected.to contain_class('apache::mod::wsgi') } |  | ||||||
|       it { is_expected.to contain_class('apache::mod::ssl') } |  | ||||||
|       it { is_expected.to contain_openstacklib__wsgi__apache('manila_wsgi').with( |       it { is_expected.to contain_openstacklib__wsgi__apache('manila_wsgi').with( | ||||||
|         :bind_port                   => 8786, |         :bind_port                   => 8786, | ||||||
|         :group                       => 'manila', |         :group                       => 'manila', | ||||||
| @@ -47,9 +44,6 @@ describe 'manila::wsgi::apache' do | |||||||
|         } |         } | ||||||
|       end |       end | ||||||
|       it { is_expected.to contain_class('manila::params') } |       it { is_expected.to contain_class('manila::params') } | ||||||
|       it { is_expected.to contain_class('apache') } |  | ||||||
|       it { is_expected.to contain_class('apache::mod::wsgi') } |  | ||||||
|       it { is_expected.to_not contain_class('apache::mod::ssl') } |  | ||||||
|       it { is_expected.to contain_openstacklib__wsgi__apache('manila_wsgi').with( |       it { is_expected.to contain_openstacklib__wsgi__apache('manila_wsgi').with( | ||||||
|         :bind_host                 => '10.42.51.1', |         :bind_host                 => '10.42.51.1', | ||||||
|         :bind_port                 => 12345, |         :bind_port                 => 12345, | ||||||
| @@ -93,15 +87,11 @@ describe 'manila::wsgi::apache' do | |||||||
|         case facts[:osfamily] |         case facts[:osfamily] | ||||||
|         when 'Debian' |         when 'Debian' | ||||||
|           { |           { | ||||||
|             :httpd_service_name => 'apache2', |  | ||||||
|             :httpd_ports_file   => '/etc/apache2/ports.conf', |  | ||||||
|             :wsgi_script_path   => '/usr/lib/cgi-bin/manila', |             :wsgi_script_path   => '/usr/lib/cgi-bin/manila', | ||||||
|             :wsgi_script_source => '/usr/bin/manila-wsgi' |             :wsgi_script_source => '/usr/bin/manila-wsgi' | ||||||
|           } |           } | ||||||
|         when 'RedHat' |         when 'RedHat' | ||||||
|           { |           { | ||||||
|             :httpd_service_name => 'httpd', |  | ||||||
|             :httpd_ports_file   => '/etc/httpd/conf/ports.conf', |  | ||||||
|             :wsgi_script_path   => '/var/www/cgi-bin/manila', |             :wsgi_script_path   => '/var/www/cgi-bin/manila', | ||||||
|             :wsgi_script_source => '/usr/bin/manila-wsgi' |             :wsgi_script_source => '/usr/bin/manila-wsgi' | ||||||
|           } |           } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zuul
					Zuul