Version information
Start using this module
Add this module to your Puppetfile:
mod 'objectiflibre-puppet', '0.0.21'
Learn more about managing modules with a PuppetfileDocumentation
Puppet module
This module provides classes for managing the puppet agent and puppet master. It will setup passenger and apache on the puppetmaster. Please note this will not setup puppetdb. This can be configured using the puppetdb module http://forge.puppetlabs.com/puppetlabs/puppetdb. Storedconfigs with puppetdb will only work on puppet versions newer than 2.7.12.
Note
This module is a fork of http://forge.puppetlabs.com/stephenrjohnson/puppet
Prerequisites
If you are using a RedHat based OS you also need to have the EPEL repo configured as this module requires the passenger apache module.
Requires the following modules from puppetforge: stdlib, apache, concat, inifile
Usage Note
If you are using this module to install a puppetmaster and serving the manifest of the machine. You may have issues with it halting the puppet master if it is running through webrick. In which case run a single puppet run using
puppet apply -e "class{'puppet::repo::puppetlabs': } Class['puppet::repo::puppetlabs'] -> Package <| |> class { 'puppetdb': } class { 'puppet::master': storeconfigs => true }"
Master
class { 'puppetdb': }
class { 'puppet::master':
storeconfigs => true,
}
Master environments
puppet::masterenv {'dev':
modulepath => '/etc/puppet/evn/dev/modules',
manifest => '/etc/puppet/env/dev/site.pp',
}
puppet::masterenv {'production':
modulepath => '/etc/puppet/evn/production/modules',
manifest => '/etc/puppet/env/production/site.pp',
}
Agent
class { 'puppet::agent':
puppet_server => master.puppetlabs.vm,
environment => production,
splay => true,
}
Testing
Install gems:
bundle install --path vendor/bundle
Lint and rspec-puppet:
bundle exec rake lint
bundle exec rake spec
If you have a working Vagrant setup you can run the rspec-system tests:
bundle exec rake spec:system
To use different base boxes than the default pass the name of the box to
the rake command with the RSPEC_SET
environment variable (check out
.nodelist.yml for box names):
RSPEC_SET=centos-64-x64 bundle exec rake spec:system
2012-08-28 - Stephen Johnson stephen@pupppetlabs.com - 0.0.2
- Revert inifile updating sheel scripts as it adds spaces 2012-08-31 - Stephen Johnson stephen@puppetlabs.com - 0.0.3
- Fix reporting and add more spec tests 2012-09-05 - Stephen Johnson stephen@puppetlabs.com - 0.0.4
- Add pluginsync support
- Fix issue with inherited file permissions
- Cleanup code to use resource defaults 2013-03-22 Stephen Johnson stephen@puppetlabs.com - 0.0.5
- Updated dependencies 2013-03-29 Stephen Johnson stephen@puppetlabs.com - 0.0.7
- Added redhat support 2013-05-01 Stephen Johnson stephen@puppetlabs.com - 0.0.8
- Fix puppet site references 2013-05-12 Stephen Johnson stephen@puppetlabs.com - 0.0.9
- Add srv record support to client 2013-07-22 Stephen Johnson steve@thatbytes.co.uk - 0.0.14
- Added support of version 0.8.0 of Apache module 2013-07-22 Stephen Johnson steve@thatbytes.co.uk - 0.0.15
- Use puppetlabs inifile 2013-10-04 Stephen Johnson steve@thatbytes.co.uk - 0.0.16
- Identation fixes
- Also add puppetmaster-common to get round version issue
- Add spec tests for puppetmaster-common 2013-10-04 Stephen Johnson steve@thatbytes.co.uk - 0.0.17
- Fix for puppetmaster-common not being in redhat repo 2013-10-27 Stephen Johnson steve@thatbytes.co.uk - 0.0.18
- Add RedHat spec tests
- Add ServerSpec test
- Fix issues with external run type for agent
- Remove dependencies on MIT Gpg Server 2013-11-10 Stephen Johnson steve@thatbytes.co.uk - 0.0.19
- Support configuring storeconfigs on an external puppetdb server 2014-02-28 Stephen Johnson steve@thatbytes.co.uk - 0.0.20
- fix directory and file permissions
- add parameter for changing hiera_config value
- fix apache_custom_fragment template for apache2.4 2014-04-07 Guillaume Espanel guillaume.espanel@objectif-libre.com - 0.0.21
- add parmaeters for changing certificates path and ca behavior
Dependencies
- puppetlabs/inifile (>= 1.0.0)
- puppetlabs/apache (>= 0.8.0)
- puppetlabs/puppetdb (>= 2.0.0)