8aee1f413f
1) Add deps to all that is needed. 2) Fix hooks for external install & svc management. 3) Update releated spec tests. Change-Id: Id3e0594631579c316c721dd53b0579808571ee95
31 lines
821 B
Puppet
31 lines
821 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,
|
|
subscribe => [
|
|
Anchor['watcher::install::end'],
|
|
Anchor['watcher::config::end'],
|
|
Anchor['watcher::db::create_schema::begin']
|
|
],
|
|
notify => Anchor['watcher::db::create_schema::end'],
|
|
}
|
|
|
|
}
|