
2017-07-20 14:36:32.147635 | manifests/db/sync.pp:23:WARNING: arrow should be on the right operand's line Change-Id: Iae6545268c43952d067d1037a4d71dff6ba82bb7
41 lines
1.0 KiB
Puppet
41 lines
1.0 KiB
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':
|
|
require => Exec['mistral-db-sync'],
|
|
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'],
|
|
}
|
|
|
|
}
|