Include nova::workarounds for all nova services
nova::workarounds is used for config options in the [workarounds] section in nova.conf. Right now it is just included for the conductor and compute services as the two existing params only apply to these services. However workaround config params can apply to any or all nova services so it should be included for all services. Change-Id: Ie27fb87f1446d1570e0eb7608812ddfa70b7f91f
This commit is contained in:
parent
9f26045197
commit
8bcd0c74df
@ -328,7 +328,6 @@ class nova::compute (
|
||||
|
||||
include nova::deps
|
||||
include nova::params
|
||||
include nova::workarounds
|
||||
|
||||
$cpu_shared_set_real = pick(join(any2array($cpu_shared_set), ','), $::os_service_default)
|
||||
$cpu_dedicated_set_real = pick(join(any2array($cpu_dedicated_set), ','), $::os_service_default)
|
||||
|
@ -38,7 +38,6 @@ class nova::conductor(
|
||||
include nova::deps
|
||||
include nova::db
|
||||
include nova::params
|
||||
include nova::workarounds
|
||||
include nova::availability_zone
|
||||
|
||||
nova::generic_service { 'conductor':
|
||||
|
@ -522,6 +522,7 @@ class nova(
|
||||
) inherits nova::params {
|
||||
|
||||
include nova::deps
|
||||
include nova::workarounds
|
||||
|
||||
# maintain backward compatibility
|
||||
include nova::db
|
||||
|
@ -6,6 +6,9 @@ describe 'nova' do
|
||||
|
||||
context 'with default parameters' do
|
||||
|
||||
it { is_expected.to contain_class('nova::deps') }
|
||||
it { is_expected.to contain_class('nova::workarounds') }
|
||||
|
||||
it 'installs packages' do
|
||||
is_expected.to contain_package('python-nova').with(
|
||||
:ensure => 'present',
|
||||
@ -116,6 +119,9 @@ describe 'nova' do
|
||||
}
|
||||
end
|
||||
|
||||
it { is_expected.to contain_class('nova::deps') }
|
||||
it { is_expected.to contain_class('nova::workarounds') }
|
||||
|
||||
it 'installs packages' do
|
||||
is_expected.to contain_package('nova-common').with('ensure' => '2012.1.1-15.el6')
|
||||
is_expected.to contain_package('python-nova').with('ensure' => '2012.1.1-15.el6')
|
||||
|
Loading…
Reference in New Issue
Block a user