Enforce yaml format for policy files
Support for json format has been removed[1]. Also require boolean parameter for purge_config. [1] d689704739abac1711403b3379537e80de212d91 Change-Id: Ib243acde3d31f599efe6cbbc67bc651212d71e98
This commit is contained in:
parent
7bc0f9abc8
commit
31e1a0f087
@ -39,15 +39,15 @@
|
|||||||
#
|
#
|
||||||
class horizon::policy(
|
class horizon::policy(
|
||||||
# common parameters
|
# common parameters
|
||||||
$file_mode = '0640',
|
$file_mode = '0640',
|
||||||
$file_format = 'yaml',
|
Enum['yaml'] $file_format = 'yaml',
|
||||||
$purge_config = false,
|
Boolean $purge_config = false,
|
||||||
# service specific parameters
|
# service specific parameters
|
||||||
Hash $cinder_policies = {},
|
Hash $cinder_policies = {},
|
||||||
Hash $glance_policies = {},
|
Hash $glance_policies = {},
|
||||||
Hash $keystone_policies = {},
|
Hash $keystone_policies = {},
|
||||||
Hash $neutron_policies = {},
|
Hash $neutron_policies = {},
|
||||||
Hash $nova_policies = {},
|
Hash $nova_policies = {},
|
||||||
) {
|
) {
|
||||||
include horizon::deps
|
include horizon::deps
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
# Defaults to '0640'
|
# Defaults to '0640'
|
||||||
#
|
#
|
||||||
# [*file_format*]
|
# [*file_format*]
|
||||||
# (Optional) Format for file contents. Valid values
|
# (Optional) Format for file contents. Valid value is 'yaml'
|
||||||
# Defaults to 'yaml'.
|
# Defaults to 'yaml'.
|
||||||
#
|
#
|
||||||
# [*purge_config*]
|
# [*purge_config*]
|
||||||
@ -25,11 +25,11 @@
|
|||||||
# Defaults to false.
|
# Defaults to false.
|
||||||
#
|
#
|
||||||
define horizon::policy::base(
|
define horizon::policy::base(
|
||||||
String[1] $policy_file = $name,
|
String[1] $policy_file = $name,
|
||||||
Hash $policies = {},
|
Hash $policies = {},
|
||||||
$file_mode = '0640',
|
$file_mode = '0640',
|
||||||
$file_format = 'yaml',
|
Enum['yaml'] $file_format = 'yaml',
|
||||||
$purge_config = false,
|
Boolean $purge_config = false,
|
||||||
) {
|
) {
|
||||||
include horizon::deps
|
include horizon::deps
|
||||||
include horizon::params
|
include horizon::params
|
||||||
|
Loading…
x
Reference in New Issue
Block a user