
Apply the same logic to cinder::db::sync and cinder::api that the one applied to the other modules[1] [1] https://review.openstack.org/#/q/status:open+branch:master+topic:db_sync,n,z Change-Id: I4dead2a5e7fca97621ea185ed76de751c2ee0d01
23 lines
593 B
Puppet
23 lines
593 B
Puppet
#
|
|
# Class to execute cinder dbsync
|
|
#
|
|
class cinder::db::sync {
|
|
|
|
include ::cinder::params
|
|
|
|
Package <| tag == 'cinder-package' |> ~> Exec['cinder-manage db_sync']
|
|
Exec['cinder-manage db_sync'] ~> Service <| tag == 'cinder-service' |>
|
|
|
|
Cinder_config <||> ~> Exec['cinder-manage db_sync']
|
|
Cinder_config <| title == 'database/connection' |> ~> Exec['cinder-manage db_sync']
|
|
|
|
exec { 'cinder-manage db_sync':
|
|
command => $::cinder::params::db_sync_command,
|
|
path => '/usr/bin',
|
|
user => 'cinder',
|
|
refreshonly => true,
|
|
logoutput => 'on_failure',
|
|
}
|
|
|
|
}
|