Allow setting default rbac_policy quota

Change-Id: I1c0d079226e5a1fdbc08954a0c6535dc1320a05c
This commit is contained in:
Adrian Smith 2021-02-11 15:02:56 +11:00
parent 135713be4d
commit 8b0ded9563
3 changed files with 13 additions and 1 deletions

View File

@ -55,6 +55,11 @@
# A negative value means unlimited.
# Defaults to $::os_service_default.
#
# [*quota_rbac_policy*]
# (optional) Number of rbac policies allowed per tenant.
# A negative value means unlimited.
# Defaults to $::os_service_default.
#
# DEPRECATED PARAMETERS
#
# [*quota_loadbalancer*]
@ -104,6 +109,8 @@ class neutron::quota (
$quota_network_gateway = 5,
$quota_packet_filter = 100,
$quota_vip = $::os_service_default,
# rbac extension
$quota_rbac_policy = $::os_service_default,
# DEPRECATED PARAMETERS
$quota_loadbalancer = undef,
$quota_pool = undef,
@ -140,5 +147,6 @@ class neutron::quota (
'quotas/quota_network_gateway': value => $quota_network_gateway;
'quotas/quota_packet_filter': value => $quota_packet_filter;
'quotas/quota_vip': value => $quota_vip;
'quotas/quota_rbac_policy': value => $quota_rbac_policy;
}
}

View File

@ -0,0 +1,3 @@
---
features:
- Adds ability to set rbac_policy quota

View File

@ -41,7 +41,8 @@ describe 'neutron::quota' do
:quota_security_group_rule => 200,
:quota_network_gateway => 5,
:quota_packet_filter => 100,
:quota_vip => 10
:quota_vip => 10,
:quota_rbac_policy => 10
})
end