c5b3ed6b77
Working spec tests + cleanups |
||
---|---|---|
files | ||
lib/puppet | ||
manifests | ||
spec | ||
templates | ||
tests | ||
.fixtures.yml | ||
.gitignore | ||
.travis.yml | ||
CHANGELOG | ||
CONTRIBUTING.md | ||
CONTRIBUTORS | ||
Gemfile | ||
Gemfile.lock | ||
Guardfile | ||
LICENSE | ||
Modulefile | ||
README.markdown | ||
Rakefile | ||
metadata.json |
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 Open an issue or fork and open a Pull Request