|
I ran into a bit of the same thing trying to send around file resource defaults via class parameter.
-
https://docs.puppet.com/puppet/latest/lang_resources_advanced.html#setting-attributes-from-a-hash
$file = { 'group' => 'groupname', 'mode' => '0640', 'notify' => Service[$service], 'owner' => 'root', 'require' => Package[$package], }
class { '::myclass::backend': file => $file, toggle => true, }
Part of the "Error while evaluating a Resource Statement":
parameter 'file' entry 'notify' expects a Data value, got Type
parameter 'file' entry 'require' expects a Data value, got Tuple
And the line/character is the start of the resource-style class declaration.
|