It feels like `tidy` is not working 100% reliable (at least my experience - one example: https://ask.puppet.com/question/32226/resource-tidy-does-not-notify-exec-resource-at-all/) in puppet version 3.8.6 (this is the version which comes with RHEL satellite and unfortunatelly we cannot update it)
So I decided to keep it very simple and use `file` `ensure` `absent` to delete some files and it will be notified by an `exec`.
Therefor I created the following little block:
file {
default:
ensure => absent,
require => Exec[''],
refreshonly => true,
;
['', '', '', '...']:
# use all defaults above
;
}
when I parse my class files with `puppet parser validate *` I got the following message:
Error: Could not parse for environment : Syntax error at ':'; expected '}' at
I wanted to go for a resource with multiple bodies, but I don't see any mistake.
I followed this doc: https://puppet.com/docs/puppet/5.1/lang_resources_advanced.html#multiple-resource-bodies
Not sure if this is not fully supported under 3.8 but I did not found the lang reference for this specific version. The oldest is 4.6.
Thanks for any tip in advance.
↧