ZhongShengping c7b3b489e6 Increase the setting log level
Increase the setting log level in the synchronization database.

Change-Id: Idfbcec022b629f66df9a52c84700f5b67a70cbcf
Closes-Bug: #1683567
2017-04-18 10:57:54 +08:00

34 lines
777 B
Puppet

#
# Class to execute barbican-db-manage upgrade
#
# == Parameters
#
# [*extra_params*]
# (optional) String of extra command line parameters to append
# to the barbican-db-manage command.
# Defaults to undef
#
class barbican::db::sync(
$extra_params = undef,
) {
include ::barbican::deps
exec { 'barbican-db-manage':
command => "barbican-manage db upgrade ${extra_params}",
path => ['/bin', '/usr/bin', ],
user => 'barbican',
refreshonly => true,
try_sleep => 5,
tries => 10,
logoutput => on_failure,
subscribe => [
Anchor['barbican::install::end'],
Anchor['barbican::config::end'],
Anchor['barbican::dbsync::begin']
],
notify => Anchor['barbican::dbsync::end'],
}
}