Expose policy_default_rule
The option has been managed by the underlying puppet-oslo module but
has not been configurable. This introduces the parameter to customize
the option.
Change-Id: I010ef8ed814af439621cf944eb62426d7adb5d6f
Takashi Kajinami
1 year, 3 months ago
31 | 31 |
# (Optional) Path to the gnocchi policy.yaml file
|
32 | 32 |
# Defaults to /etc/gnocchi/policy.yaml
|
33 | 33 |
#
|
|
34 |
# [*policy_default_rule*]
|
|
35 |
# (Optional) Default rule. Enforced when a requested rule is not found.
|
|
36 |
# Defaults to $::os_service_default.
|
|
37 |
#
|
34 | 38 |
# [*policy_dirs*]
|
35 | 39 |
# (Optional) Path to the gnocchi policy folder
|
36 | 40 |
# Defaults to $::os_service_default
|
|
45 | 49 |
$enforce_new_defaults = $::os_service_default,
|
46 | 50 |
$policies = {},
|
47 | 51 |
$policy_path = '/etc/gnocchi/policy.yaml',
|
|
52 |
$policy_default_rule = $::os_service_default,
|
48 | 53 |
$policy_dirs = $::os_service_default,
|
49 | 54 |
$purge_config = false,
|
50 | 55 |
) {
|
|
82 | 87 |
enforce_scope => $enforce_scope,
|
83 | 88 |
enforce_new_defaults => $enforce_new_defaults,
|
84 | 89 |
policy_file => $policy_path,
|
|
90 |
policy_default_rule => $policy_default_rule,
|
85 | 91 |
policy_dirs => $policy_dirs,
|
86 | 92 |
}
|
87 | 93 |
|
|
0 |
---
|
|
1 |
features:
|
|
2 |
- |
|
|
3 |
The new ``gnocchi::policy::policy_default_rule`` parameter has been added.
|
8 | 8 |
:enforce_scope => false,
|
9 | 9 |
:enforce_new_defaults => false,
|
10 | 10 |
:policy_path => '/etc/gnocchi/policy.yaml',
|
|
11 |
:policy_default_rule => 'default',
|
11 | 12 |
:policy_dirs => '/etc/gnocchi/policy.d',
|
12 | 13 |
:policies => {
|
13 | 14 |
'context_is_admin' => {
|
|
36 | 37 |
:enforce_scope => false,
|
37 | 38 |
:enforce_new_defaults => false,
|
38 | 39 |
:policy_file => '/etc/gnocchi/policy.yaml',
|
|
40 |
:policy_default_rule => 'default',
|
39 | 41 |
:policy_dirs => '/etc/gnocchi/policy.d',
|
40 | 42 |
)
|
41 | 43 |
end
|