Takashi Kajinami 844e163656 Stop hard-coding config file for db sync
The watcher-db-manage command by default loads
/etc/watcher/watcher.conf. Removing the override allows us to use
additional paths such as watcher.conf.d in the future.

Change-Id: Ide53b1659e336f461bb5108621c31299cb211c3f
2024-03-05 12:32:55 +09:00

36 lines
892 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 ''
#
class watcher::db::create_schema(
$extra_params = '',
) {
include watcher::deps
include watcher::params
exec { 'watcher-db-manage-create_schema':
command => "watcher-db-manage ${extra_params} create_schema",
path => '/usr/bin',
user => $::watcher::params::user,
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',
}
}