Make this a happier time for hiera
This commit is contained in:
Родитель
6523b743ed
Коммит
82022aab61
|
@ -22,8 +22,8 @@ To declare a file that you wish to populate from Consul key-values, you use the
|
|||
that you want to update.
|
||||
|
||||
```puppet
|
||||
consul_template::watch { 'common.json':
|
||||
template => template('data/common.json.ctmpl.erb'),
|
||||
consul_template::watch { 'common':
|
||||
template => 'data/common.json.ctmpl.erb',
|
||||
destination => '/tmp/common.json',
|
||||
command => 'true',
|
||||
}
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
# puppet-consul_template
|
||||
A Puppet module to manage the config and jobs of Consul Template from Hashicorp
|
|
@ -12,7 +12,7 @@ define consul_template::watch (
|
|||
|
||||
file { "${consul_template::config_dir}/${name}.ctmpl":
|
||||
ensure => present,
|
||||
content => $template,
|
||||
content => template($template),
|
||||
} ->
|
||||
|
||||
concat::fragment { "${name}.ctmpl":
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"name": "gdhbashton-consul_template",
|
||||
"version": "0.1.0",
|
||||
"version": "0.1.1",
|
||||
"author": "Gavin Hamill <gdh@bashton.com>",
|
||||
"license": "Apache-2.0",
|
||||
"license": "GPL-2.0",
|
||||
"summary": "Install and manage Consul Template and its jobs",
|
||||
"source": "https://github.com/gdhbashton/puppet-consul_template",
|
||||
"project_page": "https://github.com/gdhbashton/puppet-consul_template",
|
||||
|
@ -11,6 +11,18 @@
|
|||
{
|
||||
"operatingsystem":"RedHat",
|
||||
"operatingsystemrelease":[ "5.0", "6.0", "7.0" ]
|
||||
},
|
||||
{
|
||||
"operatingsystem":"CentOS",
|
||||
"operatingsystemrelease":[ "5.0", "6.0", "7.0" ]
|
||||
},
|
||||
{
|
||||
"operatingsystem":"Debian",
|
||||
"operatingsystemrelease":[ "6.0", "7.0" ]
|
||||
},
|
||||
{
|
||||
"operatingsystem":"Ubuntu",
|
||||
"operatingsystemrelease":[ "10.04", "12.04" ]
|
||||
}
|
||||
],
|
||||
"dependencies": [
|
||||
|
|
Загрузка…
Ссылка в новой задаче