On Wed, Mar 7, 2012 at 7:53 AM, Peter Berghold <salty.cowd...@gmail.com> wrote: > I have been using the Dashboard facility for assigning string values to keys > with great glee. It solves a number of support issues that I was dealing > with in a very neat fashion. > > I did a google search on "puppet dashboard arrays" and found that there had > been some discussion about this and a feature request made but I didn't get > the impression that there was ever a resolution. > > Is there a way of encoding > > $domains = { "domain.tld" => { users => [ "tom" , "dick" , "harry" , > "sally" }, > "otherdomain.tld" => { users=> [ "spot", "jane", > "dick"] } > } > > from dashboard and if so how?
Since dashboard only handles string, the only way I can think of is to represent the array/hash data as yaml or json in dashboard and convert the string back using a puppet function such as parsejson/parseyaml in stdlib. At the moment, there's also additional escape characters that's needs to be dealt with (a bug I think), so "[\"foo\"]" is returned as "[\\\"foo\\\"]". Thanks, Nan -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.