Validate input for file mode
The puppetlabs-stdlib module has provided the type to validate input for file mode since 4.22.0 . Use that type definition to validate inputs at parameter input layer, instead of internal implementation layer. Change-Id: I46df56b9cc25f0dfa0129b2c50546a2f1f7f6b3f
This commit is contained in:
parent
1a1b7cc080
commit
2238cf2347
@ -54,7 +54,7 @@
|
|||||||
define openstacklib::policy (
|
define openstacklib::policy (
|
||||||
Stdlib::Absolutepath $policy_path = $name,
|
Stdlib::Absolutepath $policy_path = $name,
|
||||||
Openstacklib::Policies $policies = {},
|
Openstacklib::Policies $policies = {},
|
||||||
$file_mode = '0640',
|
Stdlib::Filemode $file_mode = '0640',
|
||||||
$file_user = undef,
|
$file_user = undef,
|
||||||
$file_group = undef,
|
$file_group = undef,
|
||||||
Enum['yaml'] $file_format = 'yaml',
|
Enum['yaml'] $file_format = 'yaml',
|
||||||
|
@ -40,7 +40,7 @@ define openstacklib::policy::base (
|
|||||||
Stdlib::Absolutepath $file_path,
|
Stdlib::Absolutepath $file_path,
|
||||||
String[1] $key = $name,
|
String[1] $key = $name,
|
||||||
String $value = '',
|
String $value = '',
|
||||||
$file_mode = '0640',
|
Stdlib::Filemode $file_mode = '0640',
|
||||||
$file_user = undef,
|
$file_user = undef,
|
||||||
$file_group = undef,
|
$file_group = undef,
|
||||||
Enum['yaml'] $file_format = 'yaml',
|
Enum['yaml'] $file_format = 'yaml',
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
#
|
#
|
||||||
define openstacklib::policy::default (
|
define openstacklib::policy::default (
|
||||||
Stdlib::Absolutepath $file_path = $name,
|
Stdlib::Absolutepath $file_path = $name,
|
||||||
$file_mode = '0640',
|
Stdlib::Filemode $file_mode = '0640',
|
||||||
$file_user = undef,
|
$file_user = undef,
|
||||||
$file_group = undef,
|
$file_group = undef,
|
||||||
Enum['yaml'] $file_format = 'yaml',
|
Enum['yaml'] $file_format = 'yaml',
|
||||||
|
Loading…
Reference in New Issue
Block a user