File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -216,6 +216,13 @@ Ensure there's a newline at the end of the fragments.
216216- ensure_newline => true
217217- ensure_newline => false
218218
219+ #####` validate_cmd `
220+ Ensure the destination file passes the following validation command.
221+
222+ ######Example
223+ - validate_cmd => '/usr/sbin/apache2 -t -f %'
224+ - validate_cmd => '/usr/sbin/visudo -c -f %'
225+
219226####concat::fragment
220227
221228#####` target `
Original file line number Diff line number Diff line change 6464 $replace = true ,
6565 $order = ' alpha' ,
6666 $ensure_newline = false ,
67+ $validate_cmd = undef ,
6768 $gnu = undef
6869) {
6970 validate_re($ensure , ' ^present$|^absent$' )
173174 }
174175
175176 file { $name:
176- ensure => present ,
177- owner => $owner ,
178- group => $group ,
179- mode => $mode ,
180- replace => $replace ,
181- path => $path ,
182- alias => " concat_${name} " ,
183- source => " ${fragdir} /${concat_name} " ,
184- backup => $backup ,
177+ ensure => present ,
178+ owner => $owner ,
179+ group => $group ,
180+ mode => $mode ,
181+ replace => $replace ,
182+ path => $path ,
183+ alias => " concat_${name} " ,
184+ source => " ${fragdir} /${concat_name} " ,
185+ validate_cmd => $validate_cmd ,
186+ backup => $backup ,
185187 }
186188
187189 # remove extra whitespace from string interpolation to make testing easier
You can’t perform that action at this time.
0 commit comments