如果我创建一个简单的清单并访问系统定义的hiera数据,它可以正常工作
$testvar=hiera('some var defined at system level') notify { "Hiera message is $testvar":}
但是,如果我尝试访问存储在某个模块中的数据(从伪造下载),则不会
include some_module_from_forge $testvar=hiera('some var defined in the modules hiera') notify { "Hiera message is $testvar":}
我做错了什么?
答案 0 :(得分:2)
使用模块数据时,请使用lookup("module::param")
而不是hiera
功能。