Kenneth Holter
2010-Apr-08 11:48 UTC
[Puppet Users] How to set variables for groups of computers
Hi. I''m in need of setting a few variables for groups of nodes/computers, and could use some advice on how to set this up. I''m just about to start using a extlookup.rb setup, which in the default setup enables me to set variables based on facter information (plus the "common" default file). I need, however, to set variables based on wether a computer belongs to group "testbed-1", "testbed-2", "qass-1", and so forth. How have others implemented this type of thing - have you used extlookup.rb, or some other method of grouping computers? I guess I could on a per node basis (in nodes.pp) set "$computer_group = testbed-1" and so forth, but I''m sure there are better ways of defining which group a computer belongs to. Best regards, Kenneth Holter -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Dan Bode
2010-Apr-08 11:51 UTC
Re: [Puppet Users] How to set variables for groups of computers
On Thu, Apr 8, 2010 at 4:48 AM, Kenneth Holter <kenneho.ndu@gmail.com>wrote:> Hi. > > > I''m in need of setting a few variables for groups of nodes/computers, and > could use some advice on how to set this up. I''m just about to start using a > extlookup.rb setup, which in the default setup enables me to set variables > based on facter information (plus the "common" default file). I need, > however, to set variables based on wether a computer belongs to > group "testbed-1", "testbed-2", "qass-1", and so forth. How have others > implemented this type of thing - have you used extlookup.rb, or some other > method of grouping computers? I guess I could on a per node basis (in > nodes.pp) set "$computer_group = testbed-1" and so forth, but I''m sure there > are better ways of defining which group a computer belongs to. >this is one of the basic functions of an external node classifier. Check out the Puppet Dashboard.> > Best regards, > Kenneth Holter > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Ohad Levy
2010-Apr-08 12:13 UTC
Re: [Puppet Users] How to set variables for groups of computers
Hi, http://theforeman.org/projects/foreman/wiki/External_Nodes#Host-Groups Hopefully this helps :) Ohad On Thu, Apr 8, 2010 at 7:48 PM, Kenneth Holter <kenneho.ndu@gmail.com>wrote:> Hi. > > > I''m in need of setting a few variables for groups of nodes/computers, and > could use some advice on how to set this up. I''m just about to start using a > extlookup.rb setup, which in the default setup enables me to set variables > based on facter information (plus the "common" default file). I need, > however, to set variables based on wether a computer belongs to > group "testbed-1", "testbed-2", "qass-1", and so forth. How have others > implemented this type of thing - have you used extlookup.rb, or some other > method of grouping computers? I guess I could on a per node basis (in > nodes.pp) set "$computer_group = testbed-1" and so forth, but I''m sure there > are better ways of defining which group a computer belongs to. > > > Best regards, > Kenneth Holter > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.