puppet-cinder/manifests/quota.pp
Alex Schultz a21a3ee581 Move default values to $::os_service_default
This change updates the values that are currently defined but are the
service defaults to use the $::os_service_default fact.

The volume/ and backend/ values will be updated in a follow on patch.

Change-Id: I2a78f0966be5f18835b06be31d69e8c09e217b32
2015-10-29 09:32:46 -05:00

38 lines
1.0 KiB
Puppet

# == Class: cinder::quota
#
# Setup and configure Cinder quotas.
#
# === Parameters
#
# [*quota_volumes*]
# (Optional) Number of volumes allowed per project.
# Defaults to $::os_service_default
#
# [*quota_snapshots*]
# (Optional) Number of volume snapshots allowed per project.
# Defaults to $::os_service_default
#
# [*quota_gigabytes*]
# (Optional) Number of volume gigabytes (snapshots are also included)
# allowed per project.
# Defaults to $::os_service_default.
#
# [*quota_driver*]
# (Optional) Default driver to use for quota checks.
# Defaults to $::os_service_default.
#
class cinder::quota (
$quota_volumes = $::os_service_default,
$quota_snapshots = $::os_service_default,
$quota_gigabytes = $::os_service_default,
$quota_driver = $::os_service_default,
) {
cinder_config {
'DEFAULT/quota_volumes': value => $quota_volumes;
'DEFAULT/quota_snapshots': value => $quota_snapshots;
'DEFAULT/quota_gigabytes': value => $quota_gigabytes;
'DEFAULT/quota_driver': value => $quota_driver;
}
}