Clean up direct dependencies on puppetlabs-apache

This change removes direct reference to some classes in
puppetlabs-apache. Details are explained below.

- The api class doesn't need access to anything defined in
  apache::params

- The following classes are included by the openstacklib::wsgi::apache
  resource type, and current inclusions are just redundant.

Change-Id: Ie0c61d21b5a64210c79765dc3ebd3c39d4d98c5d
This commit is contained in:
Takashi Kajinami
2021-12-08 22:03:06 +09:00
parent 1b1401ec4f
commit c0075580a5
4 changed files with 0 additions and 18 deletions

View File

@@ -103,7 +103,6 @@ class aodh::api (
tag => 'aodh-service',
}
} elsif $service_name == 'httpd' {
include apache::params
Service <| title == 'httpd' |> { tag +> 'aodh-service' }
if $api_service_name != 'httpd' {

View File

@@ -146,11 +146,6 @@ class aodh::wsgi::apache (
$ssl_real = pick($ssl, true)
include aodh::deps
include apache
include apache::mod::wsgi
if $ssl_real {
include apache::mod::ssl
}
# TODO(tkajinam): Remove the following compat codes in W-cycle.
if $wsgi_script_dir == undef {

View File

@@ -1,10 +1,6 @@
{
"author": "OpenStack Contributors",
"dependencies": [
{
"name": "puppetlabs/apache",
"version_requirement": ">=5.0.0"
},
{
"name": "puppetlabs/inifile",
"version_requirement": ">=2.0.0 <6.0.0"

View File

@@ -6,8 +6,6 @@ describe 'aodh::wsgi::apache' do
context 'with default parameters' do
it { is_expected.to contain_class('aodh::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('aodh_wsgi').with(
:bind_port => 8042,
:group => 'aodh',
@@ -50,8 +48,6 @@ describe 'aodh::wsgi::apache' do
end
it { is_expected.to contain_class('aodh::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('aodh_wsgi').with(
:bind_host => '10.42.51.1',
:bind_port => 12345,
@@ -95,15 +91,11 @@ describe 'aodh::wsgi::apache' do
case facts[:osfamily]
when 'Debian'
{
:httpd_service_name => 'apache2',
:httpd_ports_file => '/etc/apache2/ports.conf',
:wsgi_script_path => '/usr/lib/cgi-bin/aodh',
:wsgi_script_source => '/usr/share/aodh/app.wsgi'
}
when 'RedHat'
{
:httpd_service_name => 'httpd',
:httpd_ports_file => '/etc/httpd/conf/ports.conf',
:wsgi_script_path => '/var/www/cgi-bin/aodh',
:wsgi_script_source => '/usr/bin/aodh-api'
}