Run db_sync when heat-common is upgraded
The other packages appear to already have this, but heat-common isn't triggering a db sync, and at least on Ubuntu, if this package is upgraded first, all the others get pulled in also. When that happens, Puppet doesn't trigger a notification for the other packages and the db sync is never run. Change-Id: I454220ee6c501c416b60564fd3b1f00fdecfd296
This commit is contained in:
parent
01004884a1
commit
bfa9f0aa3e
@ -521,6 +521,7 @@ class heat(
|
|||||||
user => 'heat',
|
user => 'heat',
|
||||||
refreshonly => true,
|
refreshonly => true,
|
||||||
logoutput => on_failure,
|
logoutput => on_failure,
|
||||||
|
subscribe => Package['heat-common'],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -122,6 +122,11 @@ describe 'heat' do
|
|||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it 'has db_sync enabled' do
|
||||||
|
is_expected.to contain_exec('heat-dbsync').with(
|
||||||
|
:subscribe => 'Package[heat-common]',
|
||||||
|
)
|
||||||
|
end
|
||||||
|
|
||||||
it 'configures debug and verbose' do
|
it 'configures debug and verbose' do
|
||||||
is_expected.to contain_heat_config('DEFAULT/debug').with_value( params[:debug] )
|
is_expected.to contain_heat_config('DEFAULT/debug').with_value( params[:debug] )
|
||||||
|
Loading…
Reference in New Issue
Block a user