1 # == Class: nova::quota
3 # Class for overriding the default quota settings.
8 # (optional) Number of instances
12 # (optional) Number of cores
16 # (optional) Ram in MB
20 # (optional) Deprecated. This parameter does nothing and will be removed.
24 # (optional) Deprecated. This parameter does nothing and will be removed.
27 # [*quota_floating_ips*]
28 # (optional) Number of floating IPs
32 # (optional) Number of fixed IPs (this should be at least the number of instances allowed)
35 # [*quota_metadata_items*]
36 # (optional) Number of metadata items per instance
39 # [*quota_max_injected_files*]
40 # (optional) Deprecated. Use quota_injected_files instead
43 # [*quota_max_injected_file_content_bytes*]
44 # (optional) Deprecated. Use quota_injected_file_content_bytes instead
47 # [*quota_max_injected_file_path_bytes*]
48 # (optional) Deprecated. Use quota_injected_file_path_bytes instead
51 # [*quota_injected_files*]
52 # (optional) Number of files that can be injected per instance
55 # [*quota_injected_file_content_bytes*]
56 # (optional) Maximum size in bytes of injected files
59 # [*quota_injected_file_path_bytes*]
60 # (optional) Deprecated. Use quota_injected_file_path_length instead
63 # [*quota_injected_file_path_length*]
64 # (optional) Maximum size in bytes of injected file path
67 # [*quota_security_groups*]
68 # (optional) Number of security groups
71 # [*quota_security_group_rules*]
72 # (optional) Number of security group rules
76 # (optional) Number of key pairs
79 # [*reservation_expire*]
80 # (optional) Time until reservations expire in seconds
84 # (optional) Count of reservations until usage is refreshed
88 # (optional) Number of seconds between subsequent usage refreshes
92 # (optional) Driver to use for quota checks
93 # Defaults to 'nova.quota.DbQuotaDriver'
96 $quota_instances = 10,
99 $quota_floating_ips = 10,
100 $quota_fixed_ips = -1,
101 $quota_metadata_items = 128,
102 $quota_injected_files = 5,
103 $quota_injected_file_content_bytes = 10240,
104 $quota_injected_file_path_length = 255,
105 $quota_security_groups = 10,
106 $quota_security_group_rules = 20,
107 $quota_key_pairs = 100,
108 $reservation_expire = 86400,
111 $quota_driver = 'nova.quota.DbQuotaDriver',
112 # DEPRECATED PARAMETERS
113 $quota_volumes = undef,
114 $quota_gigabytes = undef,
115 $quota_max_injected_files = undef,
116 $quota_injected_file_path_bytes = undef,
117 $quota_max_injected_file_content_bytes = undef,
118 $quota_max_injected_file_path_bytes = undef
122 warning('The quota_volumes parameter is deprecated and has no effect.')
125 if $quota_gigabytes {
126 warning('The quota_gigabytes parameter is deprecated and has no effect.')
129 if $quota_max_injected_files {
130 warning('The quota_max_injected_files parameter is deprecated, use quota_injected_files instead.')
131 $quota_injected_files_real = $quota_max_injected_files
133 $quota_injected_files_real = $quota_injected_files
136 if $quota_max_injected_file_content_bytes {
137 warning('The quota_max_injected_file_content_bytes is deprecated, use quota_injected_file_content_bytes instead.')
138 $quota_injected_file_content_bytes_real = $quota_max_injected_file_content_bytes
140 $quota_injected_file_content_bytes_real = $quota_injected_file_content_bytes
143 if $quota_max_injected_file_path_bytes {
144 fail('The quota_max_injected_file_path_bytes parameter is deprecated, use quota_injected_file_path_length instead.')
147 if $quota_injected_file_path_bytes {
148 warning('The quota_injected_file_path_bytes parameter is deprecated, use quota_injected_file_path_length instead.')
149 $quota_injected_file_path_length_real = $quota_injected_file_path_bytes
151 $quota_injected_file_path_length_real = $quota_injected_file_path_length
155 'DEFAULT/quota_instances': value => $quota_instances;
156 'DEFAULT/quota_cores': value => $quota_cores;
157 'DEFAULT/quota_ram': value => $quota_ram;
158 'DEFAULT/quota_floating_ips': value => $quota_floating_ips;
159 'DEFAULT/quota_fixed_ips': value => $quota_fixed_ips;
160 'DEFAULT/quota_metadata_items': value => $quota_metadata_items;
161 'DEFAULT/quota_injected_files': value => $quota_injected_files_real;
162 'DEFAULT/quota_injected_file_content_bytes': value => $quota_injected_file_content_bytes_real;
163 'DEFAULT/quota_injected_file_path_length': value => $quota_injected_file_path_length_real;
164 'DEFAULT/quota_security_groups': value => $quota_security_groups;
165 'DEFAULT/quota_security_group_rules': value => $quota_security_group_rules;
166 'DEFAULT/quota_key_pairs': value => $quota_key_pairs;
167 'DEFAULT/reservation_expire': value => $reservation_expire;
168 'DEFAULT/until_refresh': value => $until_refresh;
169 'DEFAULT/max_age': value => $max_age;
170 'DEFAULT/quota_driver': value => $quota_driver