我是puppet的新手。我同样配置了一个路径为/etc/puppetlabs/puppet/hiera.yaml的hiera文件
version: 5
hierarchy: []
backends:
- yaml
yaml:
- datadir: /etc/puppetlabs/puppet/some_dir我得到了这个错误
Warning: The function 'hiera' is deprecated in favor of using 'lookup'. See https://docs.puppet.com/puppet/5.3/reference/deprecated_language.html
(file & line not available)
Error: Evaluation Error: Error while evaluating a Function Call, Lookup of key 'user_dir' failed: The Lookup Configuration at '/etc/puppetlabs/puppet/hiera.yaml' has wrong type, unrecognized key 'backends'
The Lookup Configuration at '/etc/puppetlabs/puppet/hiera.yaml' has wrong type, unrecognized key 'yaml' at /etc/puppetlabs/code/environments/production/manifests/site.pp:30:17 on node puppet,some_cluster_DNS.internal最初,我对keys :backends: :yaml:有这样的格式,但它似乎不是5版本的常规格式,所以我删除了:符号
有人有主意了吗?
https://stackoverflow.com/questions/47557891
复制相似问题