Re: [Puppet Users] howto trigger action on another client

Ohad Levy
Mon, 27 Jun 2011 06:55:14 -0000

On Fri, Jun 24, 2011 at 11:14 AM, Andreas Kuntzagk
<andreas.kuntzagk@mdc-berlin.de> wrote:
> Hi,
>
> I want to automate installation of GridEngine with puppet. GE comes with
> some prepared script for automatic installation.
> Unfortunately this is to be run on the GE master to install the executions
> host (=clients).  (This then will run some commands on the exec host via
> ssh)
> So from puppet''s perspective if an agent on an execution host
notices that
> GE is not installed but should it has to tell the agent on the GE master to
> run the install script.
> Is there an easy (puppet) way to do it?
> My idea is to have the exec host write its name into a file
> "hosts_to_install" on a common NFS and have the master check that
file. But
> maybe there are better ways.
> Does anybody here has some other GE related recipes?
>
> regards, Andreas
>
and another idea, if you are using foreman[1], you can collect all
hosts which are member of the GE group.
You could also ask for their facts, so you could build a meaningful GE
configuration.

see this puppet function [2]

Ohad

[1] - http://theforeman.org
[2] -
https://github.com/ohadlevy/puppet-foreman/blob/master/foreman/lib/puppet/parser/functions/foreman.rb

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