Re: [Puppet Users] OS specific configuration

2013-03-20 Thread Dragos R
Thanks Peter and Brendan, Indeed Facter is what I needed. I worked the "case" example from here http://docs.puppetlabs.com/learning/variables.html and it seems to be working smooth. Now I understand why it takes so much to run the agent: facter running before fetching catalogs. regards On Tues

Re: [Puppet Users] OS specific configuration

2013-03-19 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > Does Facter need direct connection to clients ? If yes I cannot use > it since my clients are behind firewalls/routers. facter runs on the clients before the client asks (with the gathered facts) the master for the catalog. In your manifests you ca

Re: [Puppet Users] OS specific configuration

2013-03-19 Thread Dragos R
Thanks Brendan, Does Facter need direct connection to clients ? If yes I cannot use it since my clients are behind firewalls/routers. Is there another way except Facter ? On Tuesday, March 19, 2013 2:49:54 PM UTC+2, Brendan O'Bra wrote: > > I think the "operatingsystem" fact is what you want: >

Re: [Puppet Users] OS specific configuration

2013-03-19 Thread Brendan O'Bra
I think the "operatingsystem" fact is what you want: https://puppetlabs.com/blog/facter-part-1-facter-101/ On Tue, Mar 19, 2013 at 5:26 AM, Dragos R wrote: > Beginner question: > > I have a very simple configuration in site.pp for all agents. > > Is it possible to split actions based on operati

[Puppet Users] OS specific configuration

2013-03-19 Thread Dragos R
Beginner question: I have a very simple configuration in site.pp for all agents. Is it possible to split actions based on operating system. I am interested into running certain commands only on Windows 7, some on Windows Xp and some on Mac OS X agents. Is there a simple way of achieving this wh