I've got this in a YAML file:
volumes:
- {id: 1, hostname: hsync00, iport: 20011, mount: "x", newusers: false }
and I'm using extlookup to load it:
class platform::test {
$config = extlookup("volumes", "NA", "config/volumes")
platform::do_something { $config: }
}
I'm then passing that array to do_something, so that it will run the
definition once for each item in the array:
define platform::do_something {
notice ("data = ${name['id']}")
}
However, this is giving me the error:
SSep 22 13:41:09 test02 puppet-agent[29875]: Could not retrieve
catalog from remote server: Could not intern from pson: Could not
convert from pson: Could not find relationship target
"Platform::Do_something[mountxid1newusersfalsehostnamehsync00iport20011]"
I've played around with the yaml data, shortened it, added quotes,
removed quotes etc and sometimes it seems to work, and other times it
doesn't. Is there maybe a limit to the length of the $name field that
I am hitting?
Doug.
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.