ZhongShengping 627b5a1ba4 Add 'openstack-db' tag to db-sync Exec resource
In order to make easy orchestration on all OpenStack db-sync, add this
tag so people can use this tag in composition layer.
A use case it to set some orchestration to make sure MySQL Galera is
ready before running any Exec with this tag.

Change-Id: I4e520669894ae44b6fe29db5f4c5e87ed4e2c9b6
Closes-Bug: #1755102
2018-03-12 16:33:08 +08:00

24 lines
565 B
Puppet

#
class manila::db::sync {
include ::manila::params
include ::manila::deps
exec { 'manila-manage db_sync':
command => $::manila::params::db_sync_command,
path => '/usr/bin',
user => 'manila',
refreshonly => true,
try_sleep => 5,
tries => 10,
logoutput => 'on_failure',
subscribe => [
Anchor['manila::install::end'],
Anchor['manila::config::end'],
Anchor['manila::dbsync::begin']
],
notify => Anchor['manila::dbsync::end'],
tag => 'openstack-db',
}
}