Daniel Pawlik 812594b6d9 puppet-watcher: Initial commit
This is the initial commit for puppet-watcher.
It has been automatically generated using cookiecutter[1] and msync[2]

[1] https://github.com/openstack/puppet-openstack-cookiecutter
[2] https://github.com/openstack/puppet-modulesync-configs

Change-Id: I72a2df77b202c994b24887062544918903f3631b
2016-06-02 14:30:22 +00:00

24 lines
592 B
Puppet

#
# Class to execute watcher-manage db_sync
#
# == Parameters
#
# [*extra_params*]
# (optional) String of extra command line parameters to append
# to the watcher-dbsync command.
# Defaults to undef
#
class watcher::db::sync(
$extra_params = undef,
) {
exec { 'watcher-db-sync':
command => "watcher-manage db_sync ${extra_params}",
path => '/usr/bin',
user => 'watcher',
refreshonly => true,
subscribe => [Package['watcher'], Watcher_config['database/connection']],
}
Exec['watcher-manage db_sync'] ~> Service<| title == 'watcher' |>
}