1e1be4fb56
Change-Id: Ib509c510e3e5ed19fbb1b5f68a060cde02d82eab
40 lines
1.1 KiB
Puppet
40 lines
1.1 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,
|
|
) {
|
|
|
|
include cinder::deps
|
|
|
|
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;
|
|
}
|
|
}
|