summaryrefslogtreecommitdiff
path: root/README.markdown
blob: 8c97a7c9ebd798a399afe92696989c5ce5afd652 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Augeas Puppet module

## Usage

  include augeas

## Description

This module does 4 things:
 
* lets you force the augeas version by defining $augeas_version, otherwise puppet will
   only ensure the packages are present;
* lets you force the ruby library version by defining $augeas_ruby_version, otherwise puppet will
   only ensure the libaugeas-ruby version will be installed according to internal critera;
* provides an `augeas()` master-side function to manipulate strings using Augeas;
* lets you deploy an augeas lens and any associated test files, running unit tests and not installing if they fail:

Parameters:

- *ensure*: present/absent
- *lens_source*: the source for the lens
- *test_source*: optionally, the source for the test file.
- *stock_since*: optionally, indicate in which version of Augeas
  the lens became stock, so it will not be deployed above that version.

Example usage:

     augeas::lens { 'networkmanager':
      lens_source => 'puppet:///modules/networkmanager/lenses/networkmanager.aug',
      test_source => 'puppet:///modules/networkmanager/lenses/test_networkmanager.aug',
      stock_since => '1.0.0',
     }