You may want to look at utilizing mCollective to do this as it will provide a
more structured way to handle this task. In this case,
''available'' hosts would be queried and the execution would run
on hosts in parallel.
http://www.puppetlabs.com/mcollective/introduction/
Also, Puppet Commander may be of interest to you...
http://projects.puppetlabs.com/projects/mcollective-plugins/wiki/ToolPuppetcommander
-Mark
On Jan 17, 2011, at 9:49 AM, jacky wu wrote:
> I have a problem today.
> In my business, i have more than 10 linux servers , each of which runs
> a puppet client.
> on my puppet master server, sometimes , i need trigger every server to
> update from puppet master right now , so i wirte a shell script to
> traversal each server to run command "puppet kick
> node_name.example.com", but some client will cause a timeout for a
> long time. I don''t wanna wait so long time, i need the
puppet_master
> skip trigger a client_server which can not be connected. I can not
> find the way to set timeout from the "puppet" command help
manual. On
> the other hand, I found another way to trigger a client update from
> puppetlab''s online document, that is rest api "curl -k -X PUT
-H
> "Content-Type: text/pson" -d "{}"
https://puppetclient:8139/production/run/{anything}".
> I run this command on my puppet_master server, but it said "Forbidden
> request: 172.168.2.2(172.168.2.2) access to /run/puppet/ [save] at
> line 97" which said something wrong happend . But one thing surprise
> me , which is the client did updated at that time. Anyone could give
> me a suggestion ?
>
> Also i read the topic "puppetrun pings the remote host Options"
in
> this group, but that has not answer at last.
>
> --
> 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.
>
--
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.