You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.25 18:12:06