Skip to content

Commit 618d6cf

Browse files
committed
config_validate_cmd: Switch datatype to absolute path
Optional doesn't make sense here because we cannot pass undef when the parameter has a default value. And the resources require an absolute path.
1 parent 0d623eb commit 618d6cf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

REFERENCE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ Default value: `'0644'`
116116

117117
##### <a name="-keepalived--config_validate_cmd"></a>`config_validate_cmd`
118118

119-
Data type: `Variant[String, Undef]`
119+
Data type: `Stdlib::Absolutepath`
120120

121121
Input for the `validate_cmd` param of the keepalived.conf concat fragment.
122122

manifests/init.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
Stdlib::Absolutepath $config_dir = '/etc/keepalived',
6767
Stdlib::Filemode $config_dir_mode = '0755',
6868
Stdlib::Filemode $config_file_mode = '0644',
69-
Variant[String, Undef] $config_validate_cmd = '/usr/sbin/keepalived -l -t -f %',
69+
Stdlib::Absolutepath $config_validate_cmd = '/usr/sbin/keepalived -l -t -f %',
7070

7171
Array[Stdlib::Absolutepath] $include_external_conf_files = [],
7272

0 commit comments

Comments
 (0)