Merge "Decouple $sync_db from $enabled"
This commit is contained in:
commit
83c2fbb14c
@ -172,7 +172,6 @@ class cinder::api (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if $enabled {
|
|
||||||
if $sync_db {
|
if $sync_db {
|
||||||
Cinder_config<||> ~> Exec['cinder-manage db_sync']
|
Cinder_config<||> ~> Exec['cinder-manage db_sync']
|
||||||
|
|
||||||
@ -186,6 +185,8 @@ class cinder::api (
|
|||||||
before => Service['cinder-api'],
|
before => Service['cinder-api'],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if $enabled {
|
||||||
if $manage_service {
|
if $manage_service {
|
||||||
$ensure = 'running'
|
$ensure = 'running'
|
||||||
}
|
}
|
||||||
|
@ -183,7 +183,7 @@ describe 'cinder::api' do
|
|||||||
is_expected.to contain_service('cinder-api').with_ensure('stopped')
|
is_expected.to contain_service('cinder-api').with_ensure('stopped')
|
||||||
end
|
end
|
||||||
it 'should contain db_sync exec' do
|
it 'should contain db_sync exec' do
|
||||||
is_expected.to_not contain_exec('cinder-manage db_sync')
|
is_expected.to contain_exec('cinder-manage db_sync')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -194,6 +194,9 @@ describe 'cinder::api' do
|
|||||||
it 'should not change the state of the service' do
|
it 'should not change the state of the service' do
|
||||||
is_expected.to contain_service('cinder-api').without_ensure
|
is_expected.to contain_service('cinder-api').without_ensure
|
||||||
end
|
end
|
||||||
|
it 'should contain db_sync exec' do
|
||||||
|
is_expected.to contain_exec('cinder-manage db_sync')
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
describe 'with ratelimits' do
|
describe 'with ratelimits' do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user