Files
puppet-nova/manifests/quota.pp
newptone 2f8ad2e6f1 fix Duplicate definition in quota.pp
fix the Duplicate definition: Nova_config[reservation_expire]
2012-12-10 10:50:39 +08:00

41 lines
1.5 KiB
Puppet

# class for overriding the default quota settings.
class nova::quota(
$quota_instances = 10,
$quota_cores = 20,
$quota_rams = 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 {
'quota_instances': value => $quota_instances;
'quota_cores': value => $quota_cores;
'quota_rams': value => $quota_rams;
'quota_volumes': value => $quota_volumes;
'quota_gigabytes': value => $quota_gigabytes;
'quota_floating_ips': value => $quota_floating_ips;
'quota_metadata_items': value => $quota_metadata_items;
'quota_max_injected_files': value => $quota_max_injected_files;
'quota_max_injected_file_content_bytes': value => $quota_max_injected_file_content_bytes;
'quota_max_injected_file_path_bytes': value => $quota_max_injected_file_path_bytes;
'quota_security_groups': value => $quota_security_groups;
'quota_security_group_rules': value => $quota_security_group_rules;
'quota_key_pairs': value => $quota_key_pairs;
'reservation_expire': value => $reservation_expire;
'max_age': value => $max_age;
'quota_driver': value => $quota_driver
}
}