
This adds defined anchor points for external modules to hook into the software install, config and service dependency chain. This allows external modules to manage software installation (virtualenv, containers, etc) and service management (pacemaker) without needing rely on resources that may change or be renamed. Change-Id: If4f585264f5f5a15549855d97b532866d91f5215
23 lines
451 B
Puppet
23 lines
451 B
Puppet
#
|
|
# Class to execute "zaqar-manage db_sync
|
|
#
|
|
class zaqar::db::sync {
|
|
|
|
include ::zaqar::deps
|
|
|
|
exec { 'zaqar-manage db_sync':
|
|
path => '/usr/bin',
|
|
user => 'zaqar',
|
|
refreshonly => true,
|
|
try_sleep => 5,
|
|
tries => 10,
|
|
subscribe => [
|
|
Anchor['zaqar::install::end'],
|
|
Anchor['zaqar::config::end'],
|
|
Anchor['zaqar::dbsync::begin']
|
|
],
|
|
notify => Anchor['zaqar::dbsync::end'],
|
|
}
|
|
|
|
}
|