木偶环境

问题描述 投票:0回答:3

如何在puppet企业版5.5.2中将默认生产环境更改为开发。

我尝试了soem步骤,但我得到“本地环境:'DEV'不符合服务器指定的节点环境'生产',切换代理到'生产'”错误。

puppet aws-opsworks puppet-enterprise
3个回答
0
投票

这是我在代理上运行以更改环境的命令: puppet config set --section agent environment development 在Linux上,您可以看到以下变化: /etc/puppetlabs/puppet/puppet.conf 你应该看到这样的东西: ... [agent] environment = development


1
投票
Specifying in /etc/puppetlabs/puppet.conf
[agent]
environment = dev
report = true
pluginsync = true
runinterval=31557600

In master console (after creating group)
go to Rules Tab.In fact select agent specified environment and give the name of the environment as dev.Nodes which matches the environment will dynamically added to the group.

0
投票

我不确定在PE的控制面板中你可以设置这个,虽然我希望它会在某处。但是,如果你愿意并且能够修改Puppet的配置文件,那么你想要改变它的environment属性,为此你应该在[master]部分设置它。它在其他部分有不同的含义,因此不要全局设置。当然,因此你需要设置它。

© www.soinside.com 2019 - 2024. All rights reserved.