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 <the...@gmail.com> 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 puppet-users+unsubscr...@googlegroups.com.
> To post to this group, send email to puppet-users@googlegroups.com.
> 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 puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to