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
@ -40,8 +40,8 @@
|
||||
class horizon::policy(
|
||||
# common parameters
|
||||
$file_mode = '0640',
|
||||
$file_format = 'yaml',
|
||||
$purge_config = false,
|
||||
Enum['yaml'] $file_format = 'yaml',
|
||||
Boolean $purge_config = false,
|
||||
# service specific parameters
|
||||
Hash $cinder_policies = {},
|
||||
Hash $glance_policies = {},
|
||||
|
@ -16,7 +16,7 @@
|
||||
# Defaults to '0640'
|
||||
#
|
||||
# [*file_format*]
|
||||
# (Optional) Format for file contents. Valid values
|
||||
# (Optional) Format for file contents. Valid value is 'yaml'
|
||||
# Defaults to 'yaml'.
|
||||
#
|
||||
# [*purge_config*]
|
||||
@ -28,8 +28,8 @@ define horizon::policy::base(
|
||||
String[1] $policy_file = $name,
|
||||
Hash $policies = {},
|
||||
$file_mode = '0640',
|
||||
$file_format = 'yaml',
|
||||
$purge_config = false,
|
||||
Enum['yaml'] $file_format = 'yaml',
|
||||
Boolean $purge_config = false,
|
||||
) {
|
||||
include horizon::deps
|
||||
include horizon::params
|
||||
|
Loading…
Reference in New Issue
Block a user