puppet-cinder/manifests/quota.pp
Gael Chamoulaud 7e5cd1d265 Add puppet-lint-param-docs plugins to puppet-lint
- This puppet-lint plugin checks if all parameters are documented\
- Fix some unaligned arrows
- Remove trailing whitespace!
- Add missing doc
- https://github.com/domcleal/puppet-lint-param-docs

Change-Id: I8f089eceb3ce3532d763807e5e412d1cc1d07b6b
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2014-12-02 09:32:19 +01:00

38 lines
958 B
Puppet

# == Class: cinder::quota
#
# Setup and configure Cinder quotas.
#
# === Parameters
#
# [*quota_volumes*]
# (Optional) Number of volumes allowed per project.
# Defaults to '10'.
#
# [*quota_snapshots*]
# (Optional) Number of volume snapshots allowed per project.
# Defaults to '10'.
#
# [*quota_gigabytes*]
# (Optional) Number of volume gigabytes (snapshots are also included)
# allowed per project.
# Defaults to 1000.
#
# [*quota_driver*]
# (Optional) Default driver to use for quota checks.
# Defaults to 'cinder.quota.DbQuotaDriver'.
#
class cinder::quota (
$quota_volumes = 10,
$quota_snapshots = 10,
$quota_gigabytes = 1000,
$quota_driver = 'cinder.quota.DbQuotaDriver'
) {
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;
}
}