puppet-watcher/manifests/db/create_schema.pp
ZhongShengping 4501b1d3c7 Cleanup documentation
Make sure documentation is the same and follow
the standard which we are trying to enforce on
all modules.

Change-Id: I98543dc61ed0038bfb36c1d30a4aef800726935a
2018-12-13 17:10:02 +08:00

35 lines
931 B
Puppet

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