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:
Takashi Kajinami 2024-09-30 12:28:12 +09:00
parent 1a1b7cc080
commit 2238cf2347
3 changed files with 3 additions and 3 deletions

View File

@ -54,7 +54,7 @@
define openstacklib::policy (
Stdlib::Absolutepath $policy_path = $name,
Openstacklib::Policies $policies = {},
$file_mode = '0640',
Stdlib::Filemode $file_mode = '0640',
$file_user = undef,
$file_group = undef,
Enum['yaml'] $file_format = 'yaml',

View File

@ -40,7 +40,7 @@ define openstacklib::policy::base (
Stdlib::Absolutepath $file_path,
String[1] $key = $name,
String $value = '',
$file_mode = '0640',
Stdlib::Filemode $file_mode = '0640',
$file_user = undef,
$file_group = undef,
Enum['yaml'] $file_format = 'yaml',

View File

@ -31,7 +31,7 @@
#
define openstacklib::policy::default (
Stdlib::Absolutepath $file_path = $name,
$file_mode = '0640',
Stdlib::Filemode $file_mode = '0640',
$file_user = undef,
$file_group = undef,
Enum['yaml'] $file_format = 'yaml',