On 11 Mar 2011, at 14:39, Felix Frank wrote: > A sane approach here might be the following: > > class motd::motd($os,$region) { > file "/etc/motd": > owner => root, group => sys, mode => 0644, > content => template("motd/motd.$operatingsystem.erb"), > } > } > > Then instantiate the motd::motd class from wherever you want with the > appropriate info. I hope you'll manage to save yourself from the messy > include something::$somefact, but if you're not as cowardly as me, you > may as well keep using them.
Thanks Felix. I realised the error of my ways shortly after posting. What I'm trying to do, probably wrongly, is set up some 'globals' so I don't have to keep calling them. This might not be all that clever though. Cheers for your thoughts though, it's appreciated. --Mark -- 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.