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 Tuesday, March 19, 2013 4:53:35 PM UTC+2, Peter Meier wrote:

 -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 can then use these facts to influence the 
 catalog that is produced for a client. 

 ~pete 

 -BEGIN PGP SIGNATURE- 
 Version: GnuPG v1.4.11 (GNU/Linux) 
 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ 

 iEYEARECAAYFAlFIe+4ACgkQbwltcAfKi3/zkACfbw8W6VG+u8xvEJHtJbQTUrgF 
 08YAn2fovAp6+gghC7o/yzZuHAwA9O70 
 =9GL+ 
 -END PGP SIGNATURE- 


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




[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 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.




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




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:
 https://puppetlabs.com/blog/facter-part-1-facter-101/


 On Tue, Mar 19, 2013 at 5:26 AM, Dragos R the...@gmail.com 
 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 puppet-users...@googlegroups.com javascript:.
 To post to this group, send email to puppet...@googlegroups.comjavascript:
 .
 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.