我将使用木偶绑定模块
https://github.com/thias/puppet-bind
你知道我怎么用yaml格式的hiera吗?
我尝试在Hiera中使用它,但是它没有将值传递给模块。
---
classes:
- 'bind::server'
profile::bind::conf:
'/etc/named.conf':
zones:
'example.com': ['type master', 'file ]有什么建议吗?
发布于 2014-09-13 23:22:48
参数不能自动绑定到模块的类-区域是通过define创建的。
在Hiera中为define实例创建值是一个两步的过程。
例如:
bind_server_confs:
'/etc/named.conf':
zones:
'example.com': ['type master', 'file ]create_resources函数从哈希创建资源。喜欢
create_resources('bind::server::conf', hiera('bind_server_confs'), {}){}的默认结果将(正确)导致没有创建任何资源。
https://stackoverflow.com/questions/25825725
复制相似问题