<commit_before>#puppet-consul
[![Build Status](https://travis-ci.org/solarkennedy/puppet-consul.png)](https://travis-ci.org/solarkennedy/puppet-consul)

##Installation

###What This Module Affects

* Installs the consul daemon (via url or package)
* Optionally installs a user to run it under
* Installs a configuration file (/etc/consul/config.json)
* Manages the consul service via upstart

##Usage

```puppet
file '/opt/consul/':
  ensure => 'directory',
  owner  => 'consul',
  group  => 'root',
} ->
class { 'consul':
  config_hash => {
    {
      'datacenter' => 'east-aws',
      'data_dir'   => '/opt/consul',
      'log_level'  => 'INFO',
      'node_name'  => 'foobar',
      'server'     =>true
    }
  }
}
```

##Limitations

This module requires upstart to manage the service. Patches welcome! (with tests)

##Development
Open an [issue](https://github.com/solarkennedy/puppet-consul/issues) or 
[fork](https://github.com/solarkennedy/puppet-consul/fork) and open a 
[Pull Request](https://github.com/solarkennedy/puppet-consul/pulls)
<commit_msg>Spruced up the readme with an example<commit_after>#puppet-consul
[![Build Status](https://travis-ci.org/solarkennedy/puppet-consul.png)](https://travis-ci.org/solarkennedy/puppet-consul)

##Installation

###What This Module Affects

* Installs the consul daemon (via url or package)
* Optionally installs a user to run it under
* Installs a configuration file (/etc/consul/config.json)
* Manages the consul service via upstart

##Usage

```puppet
file { '/opt/consul/':
  ensure => 'directory',
  owner  => 'consul',
  group  => 'root',
} ->
class { 'consul':
  config_hash => {
    {
      'datacenter' => 'east-aws',
      'data_dir'   => '/opt/consul',
      'log_level'  => 'INFO',
      'node_name'  => 'foobar',
      'server'     =>true
    }
  }
}
```

##Limitations

This module requires upstart to manage the service. Patches welcome! (with tests)

##Development
Open an [issue](https://github.com/solarkennedy/puppet-consul/issues) or 
[fork](https://github.com/solarkennedy/puppet-consul/fork) and open a 
[Pull Request](https://github.com/solarkennedy/puppet-consul/pulls)

{'fraction_non_alphanumeric': 0.15875232774674117, 'fraction_numerical': 0.0, 'mean_word_length': 3.796875, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 23, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, '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': '5125339', 'n_tokens_mistral': 795, 'n_tokens_neox': 776, 'n_words': 170}