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: > https://puppetlabs.com/blog/facter-part-1-facter-101/ > > > On Tue, Mar 19, 2013 at 5:26 AM, Dragos R <[email protected] > <javascript:>>wrote: > >> 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 while keeping a simple >> configuration ? >> >> >> Thank you, >> >> Dragos >> >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Puppet Users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To post to this group, send email to [email protected]<javascript:> >> . >> Visit this group at http://groups.google.com/group/puppet-users?hl=en. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > > > -- > GVoice: 707.410.0371 > LinkedIn: http://www.linkedin.com/in/brendanobra > > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
