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" file { "/tmp/access.conf": owner => root, group => root, mode => 0644, content => template("access.conf.erb"); "/tmp/sshd_config": owner => root, group => root, mode => 0644, content => template("sshd_config.erb"); } -- An extract of the template is: -- <% security_access.each do | access | %> <%=access[:type]%>:<%=access[:group]%>:<%=access[:rule]%> <% end %> -- What ends up happening is that Puppet complains of syntax errors. Any help in fixing this up would be greatly appreciated. Thanks, Matt Delves --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---