David Moreau Simard 824147d470 Revert "Fix upgrade command"
They changed their mind and are back to an upgrade
without 'head' as per https://review.openstack.org/#/c/485495/

This reverts commit 3653345f1cb1a3663dfb28473caa80643027be5c.

Change-Id: I2b33771899659bb7b32fce02eaa0ddcfb6656ad0
2017-07-21 04:13:33 +00:00

34 lines
917 B
Puppet

#
# 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'
#
class watcher::db::upgrade(
$extra_params = '--config-file /etc/watcher/watcher.conf',
) {
include ::watcher::deps
exec { 'watcher-db-manage-upgrade':
command => "watcher-db-manage ${extra_params} upgrade",
path => '/usr/bin',
user => 'watcher',
refreshonly => true,
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'],
}
}