Working on migrating my manifests to work with Puppet 4.0. Currently on 3.8 and have started to experiment with the future parser (probably not so much future anymore).
I am stuck on an error that is being reported.
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Evaluation Error: Error while evaluating a Function Call, ensure parameter must be specified at /etc/puppet/environments/sandbox/modules/sudo/manifests/init.pp:51:2 on node op1227
The code is a simple check and fail if not met
if ! ($ensure in [ 'present', 'absent' ]) {
fail("sudo 'ensure' parameter must be set to either 'absent' or 'present'")
}
It isn't liking something about the function call fail.
Any help would be appreciated.
Thanks