Hi,

I am using puppet 4.7.0 in my Puppet Server where different OS families are 
used as nodes.
I have created Puppet Manifests (Puppet Classes) where couple of them to be 
executed on windows Puppet agent nodes and others on Linux nodes.
So, to do the same, I want to define site.pp and include the manifest files 
something like mentioned below.

site.pp
===========================
node ($osfamily == 'windows') { # executing this set of puppet manifetsts 
in windows puppet agent node
   include puppetswt_dir
   include uploadfacts
   include jre
}

node $osfamily != 'windows' { # executing this set of puppet manifetsts in 
non-windows puppet agent node
   include dutdiscovery
   include collectfacts
}
============================

Can anybody please suggest me whether the above mentioned approach is 
correct or not and if not how to write the above code properly.

Thanks and Regards,
Amrit

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/c454a5c7-e4ef-4263-8169-bfb727b09a37%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to