puppet-zaqar/manifests/db/sync.pp
Tobias Urdin ce76a91f62 Convert all class usage to relative names
Change-Id: Ieb9a1d2c1dcef360ca7a323fe4f6cdbb61feecfe
2019-12-08 23:26:05 +01:00

26 lines
576 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',
}
}