2016-07-03 17:38:21 +00:00
|
|
|
#
|
|
|
|
# Class to execute watcher-db-manage create_schema
|
|
|
|
#
|
|
|
|
# == Parameters
|
|
|
|
#
|
|
|
|
# [*extra_params*]
|
2018-12-13 17:10:02 +08:00
|
|
|
# (Optional) String of extra command line parameters to append
|
2016-07-03 17:38:21 +00:00
|
|
|
# to the watcher-db-manage create_schema command.
|
2024-03-05 12:32:55 +09:00
|
|
|
# Defaults to ''
|
2016-07-03 17:38:21 +00:00
|
|
|
#
|
|
|
|
class watcher::db::create_schema(
|
2024-03-05 12:32:55 +09:00
|
|
|
$extra_params = '',
|
2016-07-03 17:38:21 +00:00
|
|
|
) {
|
2016-12-01 17:54:42 +08:00
|
|
|
|
2019-12-08 23:25:42 +01:00
|
|
|
include watcher::deps
|
2022-02-21 01:49:40 +09:00
|
|
|
include watcher::params
|
2016-12-01 17:54:42 +08:00
|
|
|
|
2016-07-03 17:38:21 +00:00
|
|
|
exec { 'watcher-db-manage-create_schema':
|
|
|
|
command => "watcher-db-manage ${extra_params} create_schema",
|
|
|
|
path => '/usr/bin',
|
2022-02-21 01:49:40 +09:00
|
|
|
user => $::watcher::params::user,
|
2016-07-03 17:38:21 +00:00
|
|
|
refreshonly => true,
|
2018-03-16 11:21:20 +08:00
|
|
|
try_sleep => 5,
|
|
|
|
tries => 10,
|
2017-04-18 11:39:41 +08:00
|
|
|
logoutput => on_failure,
|
2016-07-03 17:38:21 +00:00
|
|
|
subscribe => [
|
|
|
|
Anchor['watcher::install::end'],
|
|
|
|
Anchor['watcher::config::end'],
|
|
|
|
Anchor['watcher::db::create_schema::begin']
|
|
|
|
],
|
|
|
|
notify => Anchor['watcher::db::create_schema::end'],
|
2018-03-12 16:33:11 +08:00
|
|
|
tag => 'openstack-db',
|
2016-07-03 17:38:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|