%20%E5%92%8C%20puppet%20%E5%BA%94%E7%94%A8%E8%BF%90%E8%A1%8C%EF%BC%9F.png)
是否可以区分puppet agent
运行与puppet apply
运行? 是否有方便的环境变量或事实可供检查?
答案1
事实$trusted['authenticated']
可能对你有用。值将是:
local
为了puppet apply
remote
(或者可能false
)puppet agent
这是可信事实在 Puppet 中,查看官方文档。
是否可以区分puppet agent
运行与puppet apply
运行? 是否有方便的环境变量或事实可供检查?
事实$trusted['authenticated']
可能对你有用。值将是:
local
为了puppet apply
remote
(或者可能false
)puppet agent
这是可信事实在 Puppet 中,查看官方文档。