27654f3e17
This patch is aim to unify format of the documentations in all ceilometer classes. Change-Id: I8b617a14146a90758fa6b8898637206bff6d2f29
33 lines
866 B
Puppet
33 lines
866 B
Puppet
# == Class: ceilometer::db::sync
|
|
#
|
|
# Class to execute ceilometer dbsync
|
|
#
|
|
# === Parameters:
|
|
#
|
|
# [*extra_params*]
|
|
# (Optional) String of extra command line parameters
|
|
# to append to the ceilometer-dbsync command.
|
|
# Defaults to undef.
|
|
#
|
|
class ceilometer::db::sync(
|
|
$extra_params = undef,
|
|
) {
|
|
|
|
include ::ceilometer::params
|
|
|
|
Package<| tag == 'ceilometer-package' |> ~> Exec['ceilometer-dbsync']
|
|
Exec['ceilometer-dbsync'] ~> Service <| tag == 'ceilometer-service' |>
|
|
|
|
Ceilometer_config<||> -> Exec['ceilometer-dbsync']
|
|
Ceilometer_config<| title == 'database/connection' |> ~> Exec['ceilometer-dbsync']
|
|
|
|
exec { 'ceilometer-dbsync':
|
|
command => "${::ceilometer::params::dbsync_command} ${extra_params}",
|
|
path => '/usr/bin',
|
|
user => $::ceilometer::params::user,
|
|
refreshonly => true,
|
|
logoutput => on_failure,
|
|
}
|
|
|
|
}
|