Forge Home

puppet

Resource types for managing puppet master and agent

9,724 downloads

9,724 latest version

1.9 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

Version information

  • 0.0.21 (latest)
released Apr 7th 2014

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'objectiflibre-puppet', '0.0.21'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add objectiflibre-puppet
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install objectiflibre-puppet --version 0.0.21

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

objectiflibre/puppet — version 0.0.21 Apr 7th 2014

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