Puppet Class: gnocchi::db::sync
- Defined in:
- manifests/db/sync.pp
Overview
Class to execute “gnocchi-dbsync”
- user
-
(Optional) User to run dbsync command. Defaults to ‘gnocchi’
- extra_opts
-
(Optional) String of extra command line parameters to append to the gnocchi-db-sync command. Defaults to undef
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'manifests/db/sync.pp', line 13
class gnocchi::db::sync (
$user = 'gnocchi',
$extra_opts = undef,
){
include gnocchi::deps
exec { 'gnocchi-db-sync':
command => "gnocchi-upgrade --config-file /etc/gnocchi/gnocchi.conf ${extra_opts}",
path => '/usr/bin',
refreshonly => true,
user => $user,
try_sleep => 5,
tries => 10,
logoutput => on_failure,
subscribe => [
Anchor['gnocchi::install::end'],
Anchor['gnocchi::config::end'],
Anchor['gnocchi::dbsync::begin']
],
notify => Anchor['gnocchi::dbsync::end'],
tag => 'openstack-db',
}
}
|