
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
24 lines
565 B
Puppet
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',
|
|
}
|
|
}
|