3a2a519bb2
Change-Id: Id33f4d13a4547734f36a6437e0d0e6b1db37a9a1
40 lines
843 B
Puppet
40 lines
843 B
Puppet
# == Class: gnocchi
|
|
#
|
|
# Full description of class gnocchi here.
|
|
#
|
|
# === Parameters
|
|
#
|
|
# [*package_ensure*]
|
|
# (optional) The state of gnocchi packages
|
|
# Defaults to 'present'
|
|
#
|
|
# [*database_connection*]
|
|
# (optional) Connection url for the gnocchi database.
|
|
# Defaults to undef.
|
|
#
|
|
# [*purge_config*]
|
|
# (optional) Whether to set only the specified config options
|
|
# in the gnocchi config.
|
|
# Defaults to false.
|
|
#
|
|
class gnocchi (
|
|
$package_ensure = 'present',
|
|
$database_connection = undef,
|
|
$purge_config = false,
|
|
) inherits gnocchi::params {
|
|
|
|
include gnocchi::deps
|
|
include gnocchi::db
|
|
|
|
package { 'gnocchi':
|
|
ensure => $package_ensure,
|
|
name => $::gnocchi::params::common_package_name,
|
|
tag => ['openstack', 'gnocchi-package'],
|
|
}
|
|
|
|
resources { 'gnocchi_config':
|
|
purge => $purge_config,
|
|
}
|
|
|
|
}
|