Puppetrun
Version 5 (Adam Heinz, 05/12/2011 05:39 pm) → Version 6/11 (Shahar Mintz, 06/13/2011 05:59 am)
h2. Overview
Foreman can execute puppetrun on selected hosts
currently foreman will execute puppetrun locally (e.g. from the machine which runs foreman), however it is planned to be able to select from which host puppetrun will be executed.
h2. Requirements
Puppetrun binary needs to be installed (defaults to /usr/bin/puppetrun) and configured correctly - e.g.
h3. on your clients
in your puppet.conf make sure you have
<pre>
listen = true
</pre>
and in your namespaceauth.conf
<pre>
[puppetrunner]
allow foreman.domain.com
</pre>
NOTE: in puppet 2.6 and greater, you will also need in your /etc/puppet/auth.conf
<pre>
path /run
method save
allow foreman.domain.com
</pre>
additionally, if you are behind a firewall, you would need to open tcp port 8139 to the client.
h3. on your foreman server
in foreman config/settings.yaml, configs/settings.yaml, make sure you have the following line:
<pre>
:puppetrun: true
</pre>
enable sudo (as puppetrun needs to be able to access your puppet certificates) - e.g:
<pre>
Defaults:foreman !requiretty
foreman ALL = NOPASSWD: /usr/sbin/puppetrun
</pre>
h2. Usage
In your host list, you will see a new option "Run", just click on it :)
