[Puppet Users] Re: ERB / Tagging...

2010-08-09 Thread CraftyTech
Donavan, Thanks for the explanation. I now have a better understanding of how the Host resource works. Cheers, Henry On Aug 7, 3:20 pm, donavan wrote: > On Aug 6, 8:50 am, CraftyTech wrote: > > > So, should the exporting > > of the necessary values be done in the same class as the colle

[Puppet Users] Re: ERB / Tagging...

2010-08-07 Thread donavan
On Aug 6, 8:50 am, CraftyTech wrote: > So, should the exporting > of the necessary values be done in the same class as the collection, > or should I just outline it on my default node definition.  Here's > what I have so far (and it's not working): Your example is pretty close. I don't see an obv

[Puppet Users] Re: ERB / Tagging...

2010-08-06 Thread CraftyTech
Can anyone share how they do their /etc/hosts population from storeconfigs? Thanks, On Aug 6, 11:50 am, CraftyTech wrote: > Sounds pretty interesting, specially since I always had store configs > running...  I'm now able to circle back to this issue and re-focus on > automatically generating my

[Puppet Users] Re: ERB / Tagging...

2010-08-06 Thread CraftyTech
Sounds pretty interesting, specially since I always had store configs running... I'm now able to circle back to this issue and re-focus on automatically generating my /etc/hosts file. So, should the exporting of the necessary values be done in the same class as the collection, or should I just ou

Re: [Puppet Users] Re: ERB / Tagging...

2010-07-12 Thread Jeff McCune
As Patrick mentions, one solution i recommend is to enable storeconfigs and have each node export a host entry for itself tagged with the tag you want other hosts to collect. For example, each node may export it's host entry with: @@host { "$fqdn": ip_address => $ipaddress, tags => "webserver" }

Re: [Puppet Users] Re: ERB / Tagging...

2010-07-12 Thread Patrick Mohr
Take a look at http://docs.puppetlabs.com/guides/exported_resources.html. I think this will give you what you want. It will only work if you turn on storeconfigs. On Jul 12, 2010, at 5:43 AM, CraftyTech wrote: > Thanks for the feedback Jeff. Interesting feature that I had > unfortunately ov

[Puppet Users] Re: ERB / Tagging...

2010-07-12 Thread CraftyTech
Thanks for the feedback Jeff. Interesting feature that I had unfortunately overlooked until now, but the basic question still remains; how would I then generate specific hostfiles based on nodes of the same tag? For instance, a web server to only have host entries for items tagged webserver only,

Re: [Puppet Users] Re: ERB / Tagging...

2010-07-01 Thread Dan Carley
On 1 July 2010 18:17, jb wrote: > This also vexes me, I also would love to use 'all_tags', but it's not > consistent. The issues is best described in the following bug, I > believe: > > http://projects.puppetlabs.com/issues/3049 Good call. I wasn't aware there was an existing ticket for it. F

[Puppet Users] Re: ERB / Tagging...

2010-07-01 Thread jb
This also vexes me, I also would love to use 'all_tags', but it's not consistent. The issues is best described in the following bug, I believe: http://projects.puppetlabs.com/issues/3049 On Jun 30, 10:59 am, Dan Carley wrote: > On 30 June 2010 18:40, CraftyTech wrote: > > > Hello All, > > >

[Puppet Users] Re: ERB / Tagging...

2010-06-30 Thread CraftyTech
Interesting.. Thanks for the feedback. I think that a custom fact is the way to go then...I'll do some experimenting, and I'll post the results in case someone else can benefit from topic... Cheers, Henry On Jun 30, 1:59 pm, Dan Carley wrote: > On 30 June 2010 18:40, CraftyTech wrote: > > > H