Merge pull request #197 from NewpTone/quota
Update quota.pp to make all quota params configurable
This commit is contained in:
commit
2fa4e4b345
|
@ -2,25 +2,41 @@
|
|||
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_max_injected_file_path_bytes = 255,
|
||||
$quota_security_groups = 10,
|
||||
$quota_security_group_rules = 20,
|
||||
$quota_key_pairs = 10,
|
||||
$reservation_expire = 86400,
|
||||
$reservation_expire = 0,
|
||||
$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_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;
|
||||
'reservation_expire': value => $reservation_expire;
|
||||
'max_age': value => $max_age;
|
||||
'quota_driver': value => $quota_driver
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue