quota: Support unified limits options
Depends-on: https://review.opendev.org/924025 Change-Id: I0f749c25451ca7da82a1195265bc84450338c0eb
This commit is contained in:
parent
143ba1e0bf
commit
b7a90e0cf9
manifests
releasenotes/notes
spec/classes
@ -54,7 +54,16 @@
|
||||
# Defaults to $facts['os_service_default']
|
||||
#
|
||||
# [*count_usage_from_placement*]
|
||||
# (optional Enable the counting of quota usage from the placement service.
|
||||
# (optional) Enable the counting of quota usage from the placement service.
|
||||
# Defaults to $facts['os_service_default']
|
||||
#
|
||||
# [*unified_limits_resource_strategy*]
|
||||
# (optional) Specify the semantics of the ``unified_limits_resource_list``.
|
||||
# Defaults to $facts['os_service_default']
|
||||
#
|
||||
# [*unified_limits_resource_list*]
|
||||
# (optional) Specify a list of resources to require or ignore registered
|
||||
# limits.
|
||||
# Defaults to $facts['os_service_default']
|
||||
#
|
||||
class nova::quota(
|
||||
@ -71,6 +80,8 @@ class nova::quota(
|
||||
$server_group_members = $facts['os_service_default'],
|
||||
$recheck_quota = $facts['os_service_default'],
|
||||
$count_usage_from_placement = $facts['os_service_default'],
|
||||
$unified_limits_resource_strategy = $facts['os_service_default'],
|
||||
$unified_limits_resource_list = $facts['os_service_default'],
|
||||
) {
|
||||
|
||||
include nova::deps
|
||||
@ -89,5 +100,7 @@ class nova::quota(
|
||||
'quota/server_group_members': value => $server_group_members;
|
||||
'quota/recheck_quota': value => $recheck_quota;
|
||||
'quota/count_usage_from_placement': value => $count_usage_from_placement;
|
||||
'quota/unified_limits_resource_strategy': value => $unified_limits_resource_strategy;
|
||||
'quota/unified_limits_resource_list': value => join(any2array($unified_limits_resource_list), ',');
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,7 @@
|
||||
---
|
||||
features:
|
||||
- |
|
||||
The following parameters have been added to the ``nova::quota`` class.
|
||||
|
||||
- ``unified_limits_resource_strategy``
|
||||
- ``unified_limits_resource_list``
|
@ -20,6 +20,8 @@ describe 'nova::quota' do
|
||||
:server_group_members => '<SERVICE DEFAULT>',
|
||||
:recheck_quota => '<SERVICE DEFAULT>',
|
||||
:count_usage_from_placement => '<SERVICE DEFAULT>',
|
||||
:unified_limits_resource_strategy => '<SERVICE DEFAULT>',
|
||||
:unified_limits_resource_list => '<SERVICE DEFAULT>',
|
||||
}
|
||||
end
|
||||
|
||||
@ -56,6 +58,8 @@ describe 'nova::quota' do
|
||||
:server_group_members => 20,
|
||||
:recheck_quota => true,
|
||||
:count_usage_from_placement => false,
|
||||
:unified_limits_resource_strategy => 'require',
|
||||
:unified_limits_resource_list => 'servers',
|
||||
})
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user