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 
> report on things like OS version, RAM, etc.  This is all so nice that 
> we'd like to extend it to auditing our Windows infrastructure. 
> However, at this point in time, we have no need to apply any manifests 
> to those Windows servers, and they're all Linux-centric anyway. 
>
> I've installed the puppet agent on a Windows server but when it starts 
> it obviously tries to apply all the manifests the ENC tells it to 
> (there's a default set of classes that all servers up until now have 
> applied).  I think the correct way to tackle this is to have the first 
> run of the agent use the 'noop' parameter, that way the cert exchange 
> will take place, and the facts will be populated, but no classes will 
> be applied.  On subsequent runs, the ENC can use the aforementioned 
> inventory service to inspect the 'operatingsystem' fact to determine 
> whether or not to apply any classes. 
>

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 stale facts (from a previous run) to your ENC.

The old-school way of accessing node facts from an ENC was to load the 
master's YAML-formatted fact cache.  You could fall back to that if the 
inventory service really doesn't meet your first-run needs.


John

-- 
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/-/u7fssAmrISYJ.
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.

Reply via email to