I encountered a misleading error when passing invalid parameters to resource_record:
Error: Failed to apply catalog: Parameter record failed on Resource_record[xxxxx]: Validate method failed for class record: uninitialized constant Util at /path/to/my/manifest.pp:48
I encountered a misleading error when passing invalid parameters to
resource_record
:It seems that the recommended way to bubble up validation failures is
raise ArgumentError
: https://docs.puppetlabs.com/guides/custom_types.html#validation-and-munging