Installs Puppet agent:
- Optional class to run Puppet from Cron - puppet::cron
- Optional Class to run Puppet as a daemon - puppet::daemon
Optional support for install Puppet server (puppet::server)
- Configurable support for static or git-backed dynamic environments (requires puppet-git module)
- Storeconfig options (off, ActiveRecord or PuppetDB)
- Passenger support (requires puppet-apache and puppet-passenger modules)
git clone git://github.com/theforeman/puppet-puppet.git
Only really tested on RedHat and Debian. Patches welcome for other OSes :)
This is a parameterized class, but the defaults should get you going:
Standalone agent:
echo include puppet | puppet --modulepath /path_to/extracted_tarball
Agent and cron (or daemon):
echo include puppet, puppet::cron | puppet --modulepath /path_to/extracted_tarball
Agent and server:
echo include puppet, puppet::server | puppet --modulepath /path_to/extracted_tarball
As a parameterized class, all the configurable options can be overridden from your wrapper classes or even your ENC (if it supports param classes). For example:
# You want to use git?
class { '::puppet::server': git_repo => true }
# You need need your own template for puppet.conf?
class { '::puppet::server':
agent_template => 'puppetagent/puppet.conf.core.erb',
master_template => 'puppetserver/puppet.conf.master.erb',
}
class { '::puppet':
agent_template => 'puppetagent/puppet.conf.core.erb',
}
# Maybe you're using gitolite, new hooks, and a different port?
class { '::puppet::server':
port => 8141,
git_repo => true,
git_repo_path => '/var/lib/gitolite/repositories/puppet.git',
post_hook_name => 'post-receive.puppet',
post_hook_content => 'puppetserver/post-hook.puppet',
}
Look in init.pp for what can be configured this way, see Contributing if anything doesn't work.
To use this in standalone mode, edit a file (e.g. install.pp), put in a class resource, as per the examples above, and the execute puppet apply:
cat > install.pp <<EOF
class { '::puppet': }
class { '::puppet::server': git_repo => true }
EOF
puppet apply install.pp --modulepath /path_to/extracted_tarball
- Fork the project
- Commit and push until you are happy with your contribution
See http://theforeman.org or at #theforeman irc channel on freenode
Copyright (c) 2010-2012 Ohad Levy
This program and entire repository is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.