- Puppet defaults to using a pull model, nodes pull their configs
- Implement Puppet where pulling is not an option (DMZ)
- SSH key access to the target node as root
- puppet and rsync installed on the remote node and local node
- puppet version 2.7.0 or newer
- Alternate site.pp (site-push.pp)
- Generates facts on target node and fetches
- Compiles the catalog on the master
- Pushes files from the File[] resource and replaces puppet:/// paths
- Modifies catalog to replace the File[] source statements
- Pushes catalog to target node
- Applies catalog
Install git with apt, yum, whatever your flavor
yum install git
git clone git://github.com/tomas-edwardsson/puppet-push.git
make rpm
and install that, or
make install
edit /etc/puppet-push.conf
PUPPET_VAR_DIR="/var/lib/puppet"
PUPPET_MODULE_DIR=/etc/puppet/modules/production
REMOTE_SSH_USER=root
VERBOSE=0
We need a alternative site.pp (eg. /etc/puppet/manifests/site-push.pp) if you are using a filebucket server for the pull based hosts.
Containing:
filebucket { local:
server => false,
path => "/var/lib/puppet/clientbucket",
}
File { backup => local }
puppet-push <nodename>
This is an ALPHA, I have only run it on a few nodes and it may break something.
GPLv3
Pall Valmundsson [email protected]
Tomas Edwardsson [email protected]
Sponsored by the Icelandic National Hospital