【文件属性】:
文件名称:hiera-consul:一个Hiera后端,可从Hashicorp的Consul KV商店中检索配置
文件大小:8KB
文件格式:ZIP
更新时间:2021-05-26 21:40:34
Ruby
领事领事
一个Hiera后端,可从Hashicorp的Consul KV商店中检索配置
配置
您应该按如下所示修改hiera.yaml :
:backends:
- consul
:consul:
:addr: # parsed from CONSUL_HTTP_ADDR if not specified
:port: # parsed from CONSUL_HTTP_ADDR if not specified
:paths:
- /v1/kv/hiera
- /v1/kv/%{environment}
查询
仅支持字符串和哈希查找,即hiera()和hiera_hash() 。
字符串查找将返回指定键处的值的内容。
哈希查询
哈希查找将使用的recurse参数,并执行深度合并以产生答案。
示例(为清楚起见,值已对b
【文件预览】:
hiera-consul-master
----hiera-consul.gemspec(537B)
----LICENSE(11KB)
----Gemfile(80B)
----.gitignore(588B)
----lib()
--------hiera()
----README.md(2KB)