
Move all dependency tracking to an external class which simplifies the relationships and allows managing Mistral without necessarily using packages. Change-Id: If83638c6cdabc4256cd775d7a0187a5668e4d2c9
39 lines
1014 B
Puppet
39 lines
1014 B
Puppet
#
|
|
# Class to execute "mistral-db-manage 'upgrade head' and 'populate'"
|
|
#
|
|
class mistral::db::sync {
|
|
|
|
include ::mistral::deps
|
|
include ::mistral::params
|
|
|
|
exec { 'mistral-db-sync':
|
|
command => $::mistral::params::db_sync_command,
|
|
path => '/usr/bin',
|
|
user => 'mistral',
|
|
logoutput => on_failure,
|
|
refreshonly => true,
|
|
try_sleep => 5,
|
|
tries => 10,
|
|
subscribe => [
|
|
Anchor['mistral::install::end'],
|
|
Anchor['mistral::config::end'],
|
|
Anchor['mistral::dbsync::begin']
|
|
],
|
|
notify => Anchor['mistral::dbsync::end'],
|
|
} ->
|
|
exec { 'mistral-db-populate':
|
|
command => $::mistral::params::db_populate_command,
|
|
path => '/usr/bin',
|
|
user => 'mistral',
|
|
logoutput => on_failure,
|
|
refreshonly => true,
|
|
subscribe => [
|
|
Anchor['mistral::install::end'],
|
|
Anchor['mistral::config::end'],
|
|
Anchor['mistral::dbsync::begin']
|
|
],
|
|
notify => Anchor['mistral::dbsync::end'],
|
|
}
|
|
|
|
}
|