<commit_before>Augeas_file resource type
=========================

[![Puppet Forge Version](http://img.shields.io/puppetforge/v/camptocamp/augeas_file.svg)](https://forge.puppetlabs.com/camptocamp/augeas_file)
[![Puppet Forge Downloads](http://img.shields.io/puppetforge/dt/camptocamp/augeas_file.svg)](https://forge.puppetlabs.com/camptocamp/augeas_file)
[![Build Status](https://img.shields.io/travis/camptocamp/puppet-augeas_file/master.svg)](https://travis-ci.org/camptocamp/puppet-augeas_file)


# Usage

```puppet
file { '/etc/apt/sources.list.d/jessie.list':
  ensure => file,
  owner  => 'root',
  group  => 'root',
} ->
augeas_file { '/etc/apt/sources.list.d/jessie.list':
  lens    => 'Aptsources.lns',
  base    => '/usr/share/doc/apt/examples/sources.list',
  changes => ['setm ./*[distribution] distribution jessie'],
}
```

```puppet
file { '/var/www/blog/conf/userdir.conf':
  ensure => file,
  owner  => 'root',
  group  => 'root',
} ->
augeas_file { '/var/www/blog/conf/userdir.conf':
  base    => '/usr/share/doc/apache2.2-common/examples/apache2/extra/httpd-userdir.conf',
  lens    => 'Httpd.lns',<commit_msg>www-data<commit_after>Augeas_file resource type
=========================

[![Puppet Forge Version](http://img.shields.io/puppetforge/v/camptocamp/augeas_file.svg)](https://forge.puppetlabs.com/camptocamp/augeas_file)
[![Puppet Forge Downloads](http://img.shields.io/puppetforge/dt/camptocamp/augeas_file.svg)](https://forge.puppetlabs.com/camptocamp/augeas_file)
[![Build Status](https://img.shields.io/travis/camptocamp/puppet-augeas_file/master.svg)](https://travis-ci.org/camptocamp/puppet-augeas_file)


# Usage

```puppet
file { '/etc/apt/sources.list.d/jessie.list':
  ensure => file,
  owner  => 'root',
  group  => 'root',
} ->
augeas_file { '/etc/apt/sources.list.d/jessie.list':
  lens    => 'Aptsources.lns',
  base    => '/usr/share/doc/apt/examples/sources.list',
  changes => ['setm ./*[distribution] distribution jessie'],
}
```

```puppet
file { '/var/www/blog/conf/userdir.conf':
  ensure => file,
  owner  => 'www-data',
  group  => 'root',
} ->
augeas_file { '/var/www/blog/conf/userdir.conf':
  base    => '/usr/share/doc/apache2.2-common/examples/apache2/extra/httpd-userdir.conf',
  lens    => 'Httpd.lns',
{'fraction_non_alphanumeric': 0.21868083222664897, 'fraction_numerical': 0.0026560424966799467, 'mean_word_length': 4.342789598108747, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 29, 'https://': 8, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4452841', 'n_tokens_mistral': 933, 'n_tokens_neox': 884, 'n_words': 93}