Re: [Puppet Users] Re: Identifying host OS in an ENC

2012-07-05 Thread jcbollinger
On Thursday, July 5, 2012 11:26:48 AM UTC-5, Matthew Burgess wrote: > > On Thu, Jul 5, 2012 at 4:56 PM, jcbollinger wrote: > > > Are you sure a Puppet run needs to have already completed before the > facts > > are available from the inventory service? That would be surprising. > Also > > m

Re: [Puppet Users] Re: Identifying host OS in an ENC

2012-07-05 Thread Matthew Burgess
On Thu, Jul 5, 2012 at 4:56 PM, jcbollinger wrote: > Are you sure a Puppet run needs to have already completed before the facts > are available from the inventory service? That would be surprising. Also > most unfortunate, inasmuch as it implies that the inventory service would be > serving sta

[Puppet Users] Re: Identifying host OS in an ENC

2012-07-05 Thread jcbollinger
On Wednesday, July 4, 2012 8:20:51 AM UTC-5, Matthew Burgess wrote: > > Hi all, > > We have a mixed Linux and Windows environment and have so far just > been using Puppet on our Linux servers. Having configured the > inventory service, we've got an auditing script that uses the data to > rep

[Puppet Users] Re: Identifying host OS in an ENC

2012-07-05 Thread ad
Hey Matt, I'm not exactly sure how you have things setup now, but the operating system fact is baked into factor and will be available on the first run. Rather than having the ENC supply your default classes, you could do so in your site.pp. Here's how I do it: stage { 'first': before => Stage['m