> > I'm missing something here: why do you not want to put the template > into the module that uses it? >
Basically, we are an ISP and have a whole bunch of different platforms with different network configurations, that also differ depending which datacentre they are in. I was hoping to have all the configuration for 'my_webserver', for example, in the class that defines that platform rather than have 100+ templates in the 'my_network' module (which then needs to be updated every time a new platform, or new network config for an existing platform, is added) Fixed the template btw Nan, the problem was that I was calling data from a hash that didn't exist: <%= hash['key1']['key2] %> This results in the 'undefined method `[]' for nil:NilClass' error ... which while correct is pretty confusing. Think it is all part of the fact that hashes are new in Puppet and (as yet) not catered for particularly well. Cheers for the debug method, will come in handy! Josh -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/noLre4R8gCIJ. 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.
