A Puppet module to manage the config and jobs of Consul Template from Hashicorp
Перейти к файлу
Marco Wessel 4cfe688180 Debian Jessie+ uses systemd 2015-04-30 19:35:03 +02:00
files Initial commit 2015-01-23 13:08:00 +00:00
lib/puppet Massive cleanup; working spec tests! 2015-01-30 10:40:29 +00:00
manifests Debian Jessie+ uses systemd 2015-04-30 19:35:03 +02:00
spec Fixed test fixtures config 2015-02-25 11:31:56 +00:00
templates Fixed variable lookup in upstart template 2015-02-24 13:39:55 +00:00
tests Massive cleanup; working spec tests! 2015-01-30 10:40:29 +00:00
.fixtures.yml Fixed test fixtures config 2015-02-25 11:31:56 +00:00
.gitignore Massive cleanup; working spec tests! 2015-01-30 10:40:29 +00:00
.travis.yml Massive cleanup; working spec tests! 2015-01-30 10:40:29 +00:00
CHANGELOG Massive cleanup; working spec tests! 2015-01-30 10:40:29 +00:00
CONTRIBUTING.md Massive cleanup; working spec tests! 2015-01-30 10:40:29 +00:00
CONTRIBUTORS Massive cleanup; working spec tests! 2015-01-30 10:40:29 +00:00
Gemfile Massive cleanup; working spec tests! 2015-01-30 10:40:29 +00:00
Gemfile.lock Massive cleanup; working spec tests! 2015-01-30 10:40:29 +00:00
Guardfile Massive cleanup; working spec tests! 2015-01-30 10:40:29 +00:00
LICENSE Initial commit 2015-01-23 13:08:00 +00:00
Modulefile Update the version of concat to use, does not work with v1.0.0 2015-02-24 14:39:13 +00:00
README.markdown Added link to contribution guide in readme 2015-02-25 11:39:33 +00:00
Rakefile Massive cleanup; working spec tests! 2015-01-30 10:40:29 +00:00
metadata.json Update the version of concat to use, does not work with v1.0.0 2015-02-24 14:39:13 +00:00

README.markdown

#consul_template for Puppet

##Installation

###What This Module Affects

  • Installs the consul-template binary (via url or package)
  • Optionally installs a user to run it under
  • Installs a configuration file (/etc/consul-template/config.json)
  • Manages the consul-template service via upstart, sysv, or systemd

##Usage

include consul_template

Watch files

To declare a file that you wish to populate from Consul key-values, you use the watch define. This requires a source .ctmpl file and the file on-disk that you want to update.

consul_template::watch { 'common':
    template    => 'data/common.json.ctmpl.erb',
    destination => '/tmp/common.json',
    command     => 'true',
}

##Limitations

Depends on the JSON gem, or a modern ruby.

##Development See the contributing guide

Open an issue or fork and open a Pull Request