我是木偶和Hiera的新手,在尝试应用包含Hiera查找代理的模块时出现了配置问题。
来自/etc/傀儡/木偶/象形文字:
---
:backends:
- yaml
:hierarchy:
- defaults
- "%{clientcert}"
- "%{environment}"
- global
:yaml:
:datadir: '/etc/puppetlabs/puppet/hiera'来自/etc/傀儡实验室/木偶/hiera/develop.yaml. From:
git_client:
file_content:here运行Hiera调试时:
/opt/bin/bin/hiera git_client environment=develop -c /etc/puppetlabs/bin/haia.yaml-调试
DEBUG: 2015-05-12 12:40:27 -0400: Hiera YAML backend starting
DEBUG: 2015-05-12 12:40:27 -0400: Looking up git_client in YAML backend
DEBUG: 2015-05-12 12:40:27 -0400: Looking for data source defaults
DEBUG: 2015-05-12 12:40:27 -0400: Cannot find datafile /etc/puppetlabs/puppet/hiera/defaults.yaml, skipping
DEBUG: 2015-05-12 12:40:27 -0400: Looking for data source develop
DEBUG: 2015-05-12 12:40:27 -0400: Found git_client in develop
file_content:here来自puppet.conf的Windows代理配置:
[main]
server=[REDACTED]
pluginsync=true
autoflush=true
archive_files=true
archive_file_server=[REDACTED]
graph=true
environment=develop但是,当从Windows代理运行时:
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find data item git_client in any Hiera data file and no default supplied at /etc/puppetlabs/puppet/environments/develop/modules/[REDACTED PATH TO .pp FILE]:24 on node [REDACTED]
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run我肯定有什么东西配置错了,但我不知道在哪里。任何帮助都将不胜感激。
发布于 2015-05-13 14:11:38
为了使对hiera配置的更改生效,需要确保重新启动puppet master。如果您使用的是在puppetserver中运行的JVM,那么重新启动pe-puppetserver服务。如果您正在使用运行在ruby上的旧passenger主程序,那么重新启动pe-httpd。
摘自希拉博士
傀儡主注:如果在代理运行之间修改hiera.yaml,则必须重新启动傀儡母版才能使更改生效。
https://stackoverflow.com/questions/30197018
复制相似问题