Matt Delves wrote: > Hey Folks, > I've run into a bit of a snag in setting up the manifests. What I want > to do is use an array of hashes as variables in a template. > > An extract of node is: > -- > $security_access = [{:type => "+", :group => "allowdpeople" :rule => > "ALL"}, {:type => "-", :group => "disallowedpeople", :rule => "ALL"}] > > $allow_groups = "allowedpeople"
Is there any reason you're not writing that as a define: security_access { [ "access 010", "ssh 010" ]: type => '+', group => 'allowedpeople', rule => 'all'; [ "access 020", "ssh 020" ]: type => '-', group => 'disallowedpeople', rule => 'all'; } (or similar, depending on what it should actually do)? Regards, DavidS --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---