Re: [Puppet Users] Re: Using templates from a custom type

2010-02-18 Thread Grant McLean
On Thu, 2010-02-18 at 15:36 +0100, Peter Meier wrote: > On Thu, 2010-02-18 at 05:59 -0800, jcbollinger wrote: > >On Feb 17, 10:07 pm, Grant McLean wrote: > > > I'm playing around with writing a custom resource type for managing my > > > Apache configs a

Re: [Puppet Users] Re: Using templates from a custom type

2010-02-18 Thread Grant McLean
On Thu, 2010-02-18 at 05:53 -0800, jcbollinger wrote: > On Feb 17, 10:07 pm, Grant McLean wrote: > > It would appear that if I refer to the template from a .pp file I would > > do something like: > > > > content => template("eec-mike/mikeapache.erb") &

[Puppet Users] Using templates from a custom type

2010-02-17 Thread Grant McLean
Hi Puppet-People I'm playing around with writing a custom resource type for managing my Apache configs and I would like to use templates. I happened across Puppet::Util::ResourceTemplate, which seems to do the tricky stuff but the bit I'm struggling with is getting the template across from the pu