puppet-nova/manifests/quota.pp
Michael Chapman d83eb8c677 Make parameter doc RDoc compatible
This patch fixes the parameter documentation in
generic_service, network, objectstore, params,
qpid and quota to conform with the style guide and
support autogenerating parameter documentation.

Change-Id: I43faab3c59a25bf233e985d75f906a4ba026f440
2013-12-17 11:14:36 +11:00

110 lines
3.4 KiB
Puppet

# == Class: nova::quota
#
# Class for overriding the default quota settings.
#
# === Parameters:
#
# [*quota_instances*]
# (optional) Number of instances
# Defaults to 10
#
# [*quota_cores*]
# (optional) Number of cores
# Defaults to 20
#
# [*quota_ram*]
# (optional) Ram in MB
# Defaults to 51200
#
# [*quota_volumes*]
# (optional) Number of volumes
# Defaults to 10
#
# [*quota_gigabytes*]
# (optional) Amount of ephemeral disk storage in GB
# Defaults to 1000
#
# [*quota_floating_ips*]
# (optional) Number of floating IPs
# Defaults to 10
#
# [*quota_metadata_items*]
# (optional) Number of metadata items per instance
# Defaults to 128
#
# [*quota_max_injected_files*]
# (optional) Number of files that can be injected per instance
# Defaults to 5
#
# [*quota_max_injected_file_content_bytes*]
# (optional) Maximum size in bytes of injected files
# Defaults to 10240
#
# [*quota_max_injected_file_path_bytes*]
# (optional) Maximum size in bytes of injected file path
# Defaults to 255
#
# [*quota_security_groups*]
# (optional) Number of security groups
# Defaults to 10
#
# [*quota_security_group_rules*]
# (optional) Number of security group rules
# Defaults to 20
#
# [*quota_key_pairs*]
# (optional) Number of key pairs
# Defaults to 10
#
# [*reservation_expire*]
# (optional) Time until reservations expire in seconds
# Defaults to 86400
#
# [*max_age*]
# (optional) Number of seconds between subsequent usage refreshes
# Defaults to 0
#
# [*quota_driver*]
# (optional) Driver to use for quota checks
# Defaults to 'nova.quota.DbQuotaDriver'
#
class nova::quota(
$quota_instances = 10,
$quota_cores = 20,
$quota_ram = 51200,
$quota_volumes = 10,
$quota_gigabytes = 1000,
$quota_floating_ips = 10,
$quota_metadata_items = 128,
$quota_max_injected_files = 5,
$quota_max_injected_file_content_bytes = 10240,
$quota_max_injected_file_path_bytes = 255,
$quota_security_groups = 10,
$quota_security_group_rules = 20,
$quota_key_pairs = 10,
$reservation_expire = 86400,
$max_age = 0,
$quota_driver = 'nova.quota.DbQuotaDriver'
) {
nova_config {
'DEFAULT/quota_instances': value => $quota_instances;
'DEFAULT/quota_cores': value => $quota_cores;
'DEFAULT/quota_ram': value => $quota_ram;
'DEFAULT/quota_volumes': value => $quota_volumes;
'DEFAULT/quota_gigabytes': value => $quota_gigabytes;
'DEFAULT/quota_floating_ips': value => $quota_floating_ips;
'DEFAULT/quota_metadata_items': value => $quota_metadata_items;
'DEFAULT/quota_max_injected_files': value => $quota_max_injected_files;
'DEFAULT/quota_max_injected_file_content_bytes': value => $quota_max_injected_file_content_bytes;
'DEFAULT/quota_max_injected_file_path_bytes': value => $quota_max_injected_file_path_bytes;
'DEFAULT/quota_security_groups': value => $quota_security_groups;
'DEFAULT/quota_security_group_rules': value => $quota_security_group_rules;
'DEFAULT/quota_key_pairs': value => $quota_key_pairs;
'DEFAULT/reservation_expire': value => $reservation_expire;
'DEFAULT/max_age': value => $max_age;
'DEFAULT/quota_driver': value => $quota_driver
}
}