Operations grimoire/Legacy archive/Puppet manual: Difference between revisions
From Nasqueron Agora
(Created page with "== Architecture == * A configuration files repository on Gerrit, managed like an open source project with a Git repository. * A server which send configuration files to cl...") |
(Link to http://docs.puppetlabs.com/guides/installation.html) |
||
Line 22: | Line 22: | ||
* puppet-lint <file> | * puppet-lint <file> | ||
* Add ''<nowiki>require 'puppet-lint/tasks/puppet-lint'</nowiki>'' to Rakefile and run the command ''rake lint''. Useful for Jenkins. | * Add ''<nowiki>require 'puppet-lint/tasks/puppet-lint'</nowiki>'' to Rakefile and run the command ''rake lint''. Useful for Jenkins. | ||
== Useful links == | |||
* [http://docs.puppetlabs.com/guides/installation.html Installation guide] |
Revision as of 23:32, 27 October 2012
Architecture
- A configuration files repository on Gerrit, managed like an open source project with a Git repository.
- A server which send configuration files to clients. This is currently installed on Grip.
- The others servers are puppetized and received their configuration like Warg.
The goal of the game is you wipe a server, you have it reinstalled automatically as it were with all services fully operational.
It means each time you deploy manually anything on the servers, you have then to create a Puppet manifest.
Prepare the server
On FreeBSD, you'll find 5 Puppet related ports:
- /usr/ports/net-mgmt/nagios-check_puppet - a Nagios plugin to check if puppetd and puppetmasterd are alive and to check if state.yaml is up to date
- /usr/ports/sysutils/puppet - Puppet 3.x (currently 3.0.1)
- /usr/ports/sysutils/puppet-lint - Puppet Linter
- /usr/ports/sysutils/puppet26 - Puppet 2.6.x (currently 2.6.17)
- /usr/ports/sysutils/puppet27 - Puppet 2.7.x (currently 2.7.19)
We use sysutils/puppet and sysutils/puppet-lint.
Linting configuration files
- puppet-lint <file>
- Add require 'puppet-lint/tasks/puppet-lint' to Rakefile and run the command rake lint. Useful for Jenkins.