Hi, On 02/11/2013 02:12 PM, Jamie Cressey wrote: > > Is there a way to create a list such as ; > name1:username1:emailaddress1 > name2:username2:emailaddress2
classic use case for defined types. http://docs.puppetlabs.com/guides/language_guide.html#defined-resource-types Your type will look like this: my_nagios_contact($email) { @@nagios_contact { $name: ... } } And used like http://docs.puppetlabs.com/references/2.7.latest/function.html#createresources create_resources(my_nagios_contact, $contacts) where $contacts is a suitable hash. Same structure for contactgroups. It may be hard to find one single datastructure to hold both contacts and contactgroups, but that would not lend itself to the problem at hand very well, anyway. HTH, Felix -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.