diff --git a/manifests/quota.pp b/manifests/quota.pp index 9ef53d539..5f6fcc5da 100644 --- a/manifests/quota.pp +++ b/manifests/quota.pp @@ -72,6 +72,11 @@ # (optional) Number of packet_filters allowed per tenant, -1 for unlimited. # Defaults to '100'. # +# [*quota_loadbalancer*] +# (optional) Number of loadbalancers allowed per tenant. +# A negative value means unlimited. +# Defaults to $::os_service_default. +# # [*quota_pool*] # (optional) Number of pools allowed per tenant. # A negative value means unlimited. @@ -101,6 +106,7 @@ class neutron::quota ( $quota_member = $::os_service_default, $quota_network_gateway = 5, $quota_packet_filter = 100, + $quota_loadbalancer = $::os_service_default, $quota_pool = $::os_service_default, $quota_vip = $::os_service_default, ) { @@ -124,6 +130,7 @@ class neutron::quota ( 'quotas/quota_member': value => $quota_member; 'quotas/quota_network_gateway': value => $quota_network_gateway; 'quotas/quota_packet_filter': value => $quota_packet_filter; + 'quotas/quota_loadbalancer': value => $quota_loadbalancer; 'quotas/quota_pool': value => $quota_pool; 'quotas/quota_vip': value => $quota_vip; } diff --git a/releasenotes/notes/add-quota-loadbalancer-option-a0e2d83e03a5b98e.yaml b/releasenotes/notes/add-quota-loadbalancer-option-a0e2d83e03a5b98e.yaml new file mode 100644 index 000000000..aab509735 --- /dev/null +++ b/releasenotes/notes/add-quota-loadbalancer-option-a0e2d83e03a5b98e.yaml @@ -0,0 +1,3 @@ +--- +features: + - Adds ability to set loadbalancer quota diff --git a/spec/classes/neutron_quota_spec.rb b/spec/classes/neutron_quota_spec.rb index 3ae6d5a4f..077ce4b09 100644 --- a/spec/classes/neutron_quota_spec.rb +++ b/spec/classes/neutron_quota_spec.rb @@ -51,6 +51,7 @@ describe 'neutron::quota' do :quota_member => -1, :quota_network_gateway => 5, :quota_packet_filter => 100, + :quota_loadbalancer => 10, :quota_pool => 10, :quota_vip => 10 })