Run my script in place of ‘Run Puppet’

Hi is it possible to run my custom script in place of ‘puppet kick’ or
‘mco’.

Puppet kick is deprecated, also it does not work when the client is running
–noop. I may be missing something with my configs hence this post.

From a systems management point of view I want to make changes to systems
under my control.

Mcollective I think is overkill for my environment but I will go that way
if necessary :frowning:

To give you some background:

Running Puppet 3.x & Foreman 1.2

The Puppet clients are running in daemon mode with --noop. This is to give
me up-to-date info on the clients while not updating the config until I
choose to do so.

At the moment I am running a custom script ‘mypuppetkick’ from the
Foreman/Puppet master to run a puppet command on the remote puppet client.
Something like:

··· #

ssh $1 “/usr/bin/puppet agent --test”

It may not be pretty but it works!

Pros:It gives some security as it runs over SSH.

Cons: It is clunky to use.

I am happy to rename my script to ‘puppetrun’ if I can hack Foreman to call
it. :slight_smile:

Or if you have a better way please let me know.

Regards, Mike.

Maybe you would like to look at Foreman and Mcollective integration.
I'm running my puppet with cron and I use Mcollective to trigger puppet run
from Foreman.
I have a blogpost about that :
http://www.fitzdsl.net/en/2013/07/integration-puppet-foreman-et-mcollective/

Wish it will help.

Regards,

··· 2013/8/1 Michael Hurn

Hi is it possible to run my custom script in place of ‘puppet kick’ or
‘mco’.

Puppet kick is deprecated, also it does not work when the client is
running --noop. I may be missing something with my configs hence this post.

From a systems management point of view I want to make changes to systems
under my control.

Mcollective I think is overkill for my environment but I will go that way
if necessary :frowning:

To give you some background:

Running Puppet 3.x & Foreman 1.2

The Puppet clients are running in daemon mode with --noop. This is to give
me up-to-date info on the clients while not updating the config until I
choose to do so.

At the moment I am running a custom script ‘mypuppetkick’ from the
Foreman/Puppet master to run a puppet command on the remote puppet client.
Something like:

ssh $1 “/usr/bin/puppet agent --test”

It may not be pretty but it works!

Pros:It gives some security as it runs over SSH.

Cons: It is clunky to use.

I am happy to rename my script to ‘puppetrun’ if I can hack Foreman to
call it. :slight_smile:

Or if you have a better way please let me know.

Regards, Mike.


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/groups/opt_out.