Skip to content
Alternative Augeas-based providers for Puppet
Ruby CSS Puppet Shell Makefile
Latest commit bbfc6ff Dec 11, 2014 @raphink raphink Release 2.1.3
Failed to load latest commit information.
augeas @ 97e2a1c Test against several Augeas versions Mar 16, 2014
docs Add docs for ssh_config Nov 17, 2014
manifests Add ssh_config type Nov 17, 2014
spec Fix shellvar support specs with new composite namevar Nov 17, 2014
.coveralls.yml Add Coveralls support Aug 6, 2014
.fixtures.yml Cleanup things that went into the core repository Aug 7, 2014
.gitignore Ignore .ruby-gemset May 5, 2014
.gitmodules Change Augeas repo to GitHub for speed, better CI output Dec 1, 2012
.travis.sh Add augeas 1.2 and 1.3 PPAs Dec 11, 2014
.travis.yml Retry Travis build steps Jun 11, 2014
.yardopts Add YARD documentation to provider/type mixins Jun 29, 2013
CHANGELOG.md Release 2.1.3 Dec 11, 2014
CONTRIBUTING.md
Gemfile Disable coveralls for Ruby 1.8 builds Aug 6, 2014
Gemfile.lock Release 2.1.1 Nov 17, 2014
LICENSE Rename 'licence' so Puppet Forge finds it Feb 9, 2013
README.md Add Puppet forge badge Nov 17, 2014
Rakefile Add augeasproviders::instances class. Fixes #78 Apr 16, 2014
metadata.json Release 2.1.3 Dec 11, 2014

README.md

Puppet Forge Build Status Coverage Status

augeasproviders: alternative Augeas-based providers for Puppet

This module provides is a meta module which gathers all official augeasproviders modules as dependencies. Augeasproviders modules provide alternative Augeas-based providers for Puppet providers around config files, using the Augeas configuration library to read and modify them.

The advantage of using Augeas over the default Puppet parsedfile implementations is that Augeas will go to great lengths to preserve file formatting and comments, while also failing safely when needed.

Requirements

Ensure both Augeas and ruby-augeas 0.3.0+ bindings are installed and working as normal.

See Puppet/Augeas pre-requisites.

Classes

augeasproviders::instances

This class allows the types provided by this module to be defined using the classes' parameters or top-scope variables.

NOTE: The classes' parameters take presedence over the top-scope variables.

Set the sysctl entry net.ipv4.ip_forward to 1:

class { 'augeasproviders::instances':
  sysctl_hash => { 'net.ipv4.ip_forward' => { 'value' => '1' } },
}

The following example is the same as above but using a top-scope variable.

node 'foo.example.com' {
  $augeasproviders_sysctl_hash = {
    'net.ipv4.ip_forward' => { 'value' => '1' },
  }

  include augeasproviders::instances
}

Parameters

TYPE_hash

All types have a TYPE_hash parameter, where TYPE is the resource type. These parameters accept a Hash to define that type's resources.

resource_defaults

A Hash that contains the default values used to create each resource. See manifests/params.pp for the format used.

Variables

augeasproviders_TYPE_hash

All types have a augeasproviders_TYPE_hash variable, where TYPE is the resource type. These variables accept a Hash to define that type's resources.

Development documentation

See docs/ (run make) or augeasproviders.com.

Issues

Please file any issues or suggestions on GitHub.

Something went wrong with that request. Please try again.