96040df940
Since gnocchi is the default backend, We might want to be able to override this option and let it skip by default for compatibility. let user set it via extra_params. Change-Id: I23e43552e14ced5a7da5e16ef323df3b1ec6722d
36 lines
934 B
Puppet
36 lines
934 B
Puppet
# == Class: ceilometer::db::sync
|
|
#
|
|
# Class to execute ceilometer database schema creation
|
|
#
|
|
# === Parameters:
|
|
#
|
|
# [*extra_params*]
|
|
# (Optional) String of extra command line parameters
|
|
# to append to the ceilometer-upgrade command.
|
|
# Defaults to '--skip-gnocchi-resource-types'.
|
|
#
|
|
class ceilometer::db::sync(
|
|
$extra_params = '--skip-gnocchi-resource-types',
|
|
) {
|
|
|
|
include ::ceilometer::deps
|
|
include ::ceilometer::params
|
|
|
|
exec { 'ceilometer-upgrade':
|
|
command => "${::ceilometer::params::dbsync_command} ${extra_params}",
|
|
path => '/usr/bin',
|
|
user => $::ceilometer::params::user,
|
|
refreshonly => true,
|
|
try_sleep => 5,
|
|
tries => 10,
|
|
logoutput => on_failure,
|
|
subscribe => [
|
|
Anchor['ceilometer::install::end'],
|
|
Anchor['ceilometer::config::end'],
|
|
Anchor['ceilometer::dbsync::begin']
|
|
],
|
|
notify => Anchor['ceilometer::dbsync::end'],
|
|
}
|
|
|
|
}
|