Hi all,
I am thinking...the way to push one/more configuration updates to
bunch of hosts...As i read puppet documentation
Group A Group B
host-a-1 host-b-1
host-a-2 host-b-2
host-a-3 host-b-3
I can do like this as per docs
----------site.pp--------------
node host-a-1,host-a-2,host-a-3 {
include sendmail-a-group.cf
include ldap.conf
}
node host-b-1,host-b-2,host-b-3 {
include sendmail-b-group.cf
include ldap.conf
}
--------------------------------------------
but when i want to push updates to all member of Group-A and Group-B i
have to run long command like
#puppetrun --host host-b-1 --host host-b-2 --host host-b-3
same for Group A...
anything like I can define number of hosts for 1 group and i push
updates to group name so ( command ill be small ) ...
Group B {
host-b-1
host-b-2
host-b-3
}
And #puppetrun {groupB} ( just imagine...)
Regards
Vipul Ramani
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
On 6/12/2008 12:31 PM, Vipul Ramani wrote:> but when i want to push updates to all member of Group-A and Group-B i > have to run long command like > #puppetrun --host host-b-1 --host host-b-2 --host host-b-3dsh [1] plus passwordless ssh logins for root from the puppetmaster? I use it as follows: gold:~# dsh -g pe1850 -M \ "puppetd -vt --factsync --server gold.cae.tntech.edu" where /etc/dsh/group/pe1850 contains the hostnames in that group of systems. [1] http://www.netfort.gr.jp/~dancer/software/dsh.html.en -- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi Mike, really interstering ..i m using puppet on solaris .. let me try ... !!! On Jun 12, 11:03 am, Mike Renfro <ren...@tntech.edu> wrote:> On 6/12/2008 12:31 PM, Vipul Ramani wrote: > > > but when i want to push updates to all member of Group-A and Group-B i > > have to run long command like > > #puppetrun --host host-b-1 --host host-b-2 --host host-b-3 > > dsh [1] plus passwordless ssh logins for root from the puppetmaster? > > I use it as follows: > > gold:~# dsh -g pe1850 -M \ > "puppetd -vt --factsync --server gold.cae.tntech.edu" > > where /etc/dsh/group/pe1850 contains the hostnames in that group of systems. > > [1]http://www.netfort.gr.jp/~dancer/software/dsh.html.en > > -- > Mike Renfro / R&D Engineer, Center for Manufacturing Research, > 931 372-3601 / Tennessee Technological University--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Pierre Gambarotto
2008-Jun-13 06:45 UTC
[Puppet Users] Re: Group based push using puppetrun
From the manpage of puppetrunner, you can specify a tag or/and a class
IF you store your nodes in an LDAP server.
---
The most common usage would be to specify a class of hosts and a set
of tags, and +puppetrun+ would look up in LDAP all of the hosts
matching that class, then con-
nect to each host and trigger a run of all of the objects with the
specified tags.
---
Somebody already did that ?
Pierre
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---