Add support for [quota] recheck_quota
Change-Id: I7e1277c2def8df2512cb08021d20365ef6bc3b9f
This commit is contained in:
@@ -48,6 +48,11 @@
|
||||
# (optional) Number of servers per server group
|
||||
# Defaults to $::os_service_default
|
||||
#
|
||||
# [*recheck_quota*]
|
||||
# (optional) Recheck quota after resource creation to prevent allowing
|
||||
# quota to be exceeded.
|
||||
# Defaults to $::os_service_default
|
||||
#
|
||||
# DEPRECATED PARAMETERS
|
||||
#
|
||||
# [*reservation_expire*]
|
||||
@@ -90,6 +95,7 @@ class nova::quota(
|
||||
$key_pairs = $::os_service_default,
|
||||
$server_groups = $::os_service_default,
|
||||
$server_group_members = $::os_service_default,
|
||||
$recheck_quota = $::os_service_default,
|
||||
# DEPRECATED PARAMETERS
|
||||
$reservation_expire = undef,
|
||||
$until_refresh = undef,
|
||||
@@ -128,6 +134,7 @@ class nova::quota(
|
||||
'quota/key_pairs': value => $key_pairs;
|
||||
'quota/server_groups': value => $server_groups;
|
||||
'quota/server_group_members': value => $server_group_members;
|
||||
'quota/recheck_quota': value => $recheck_quota;
|
||||
}
|
||||
|
||||
nova_config {
|
||||
|
4
releasenotes/notes/recheck_quota-5fed41afe991bd75.yaml
Normal file
4
releasenotes/notes/recheck_quota-5fed41afe991bd75.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
---
|
||||
features:
|
||||
- |
|
||||
The new ``nova::quota::recheck_quota`` parameter has been added.
|
@@ -17,6 +17,7 @@ describe 'nova::quota' do
|
||||
:key_pairs => '<SERVICE DEFAULT>',
|
||||
:server_groups => '<SERVICE DEFAULT>',
|
||||
:server_group_members => '<SERVICE DEFAULT>',
|
||||
:recheck_quota => '<SERVICE DEFAULT>',
|
||||
}
|
||||
end
|
||||
|
||||
@@ -50,6 +51,7 @@ describe 'nova::quota' do
|
||||
:key_pairs => 200,
|
||||
:server_groups => 20,
|
||||
:server_group_members => 20,
|
||||
:recheck_quota => true,
|
||||
})
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user