Puppet Class: watcher::db::upgrade
- Defined in:
- manifests/db/upgrade.pp
Overview
Class to execute watcher-db-manage upgrade It’s because watcher-db-manage doesn’t support sync db.
Parameters
- extra_params
-
(Optional) String of extra command line parameters to append to the watcher-db-manage upgrade command. Defaults to ‘–config-file /etc/watcher/watcher.conf’
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'manifests/db/upgrade.pp', line 12
class watcher::db::upgrade(
$extra_params = '--config-file /etc/watcher/watcher.conf',
) {
include watcher::deps
include watcher::params
exec { 'watcher-db-manage-upgrade':
command => "watcher-db-manage ${extra_params} upgrade",
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::end'],
Anchor['watcher::db::upgrade::begin']
],
notify => Anchor['watcher::db::upgrade::end'],
}
}
|