Puppet Enterprise 2023.0.0:本地环境与服务器指定环境不匹配问题
Puppet Agent环境自动切换回production问题
已做操作与验证结果
- 已在Agent端配置环境为test,清理缓存后验证配置显示当前环境为test:
sudo puppet agent --configprint environment test sudo puppet node find $AGENT_FQDN --render-as yaml | grep environment: environment: test agent_specified_environment: test - 执行Agent测试命令时,系统提示本地环境与服务器指定环境不匹配,自动切换回production:
sudo puppet agent -t --environment test Info: Using environment 'test' Info: Retrieving pluginfacts Info: Retrieving plugin Info: Loading facts Notice: Local environment: 'test' doesn't match server specified environment 'production', restarting agent run with environment 'production' - 服务器端使用默认
node_terminus(无自定义ENC),但查询节点信息时返回的环境为production:sudo puppet config print --environment test | grep node_terminus node_terminus = plain sudo puppet node find $AGENT_FQDN --render-as yaml | grep environment: environment: production
疑问
考虑删除并重新注册Agent,但担心操作后Agent仍会默认回到production环境?
内容的提问来源于stack exchange,提问作者Jules Clements
相关产品推荐
相关产品推荐

