d2891b9670
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: I468f796bc344f91510e977dd07cfd563174c66dd Closes-Bug: #1755102
26 lines
578 B
Puppet
26 lines
578 B
Puppet
#
|
|
# Class to execute "zaqar-sql-db-manage upgrade head"
|
|
#
|
|
class zaqar::db::sync {
|
|
|
|
include ::zaqar::deps
|
|
|
|
exec { 'zaqar-db-sync':
|
|
command => 'zaqar-sql-db-manage upgrade head',
|
|
path => '/usr/bin',
|
|
user => 'zaqar',
|
|
refreshonly => true,
|
|
try_sleep => 5,
|
|
tries => 10,
|
|
logoutput => on_failure,
|
|
subscribe => [
|
|
Anchor['zaqar::install::end'],
|
|
Anchor['zaqar::config::end'],
|
|
Anchor['zaqar::dbsync::begin']
|
|
],
|
|
notify => Anchor['zaqar::dbsync::end'],
|
|
tag => 'openstack-db',
|
|
}
|
|
|
|
}
|