Running own scripts in Foreman

Hi! Im currently using (and start learning) about Foreman and I want to
know if it is possible to run my own scripts to execute specific actions
after and event such as an update of some packages in the servers.
I've read about Foreman Hooks but I don't know if this could help with my
problem. I want to run my own scripts to check if everything is OK after
the Foreman executes actions on the servers.
I know that this might seem simple but as I said Im currently learning
about this topic. Thank you!

Foreman generally doesn't execute actions directly on servers
(excepting the new remote_execution plugin, of course). Usually, we
leave system configuration to Puppet, and since you (as the admin)
would supply the puppet modules, you have the control of what's being
configured on the hosts.

You can indeed use the foreman_hooks plugn to execute scripts, but
these are usually triggered at the time of creation/destruction of the
host, rather than during it's normal lifetime. In addition,
foreman_hooks scripts are executed on the Foreman server, not on the
host, which may not be what you're looking for.

··· On 24 September 2015 at 00:39, Carlos Mata wrote: > Hi! Im currently using (and start learning) about Foreman and I want to know > if it is possible to run my own scripts to execute specific actions after > and event such as an update of some packages in the servers. > I've read about Foreman Hooks but I don't know if this could help with my > problem. I want to run my own scripts to check if everything is OK after > the Foreman executes actions on the servers. > I know that this might seem simple but as I said Im currently learning about > this topic. Thank you!


Greg