我们可以检查的锁定文件是什么,以确保 puppet 配置仍然 运行

What is the lock file we can check to make sure puppet configuration is still running

我们可以检查以确保 puppet 配置仍然 运行 的锁定文件是什么?我们可以检查 /var/lib/puppet/state/agentcatalogrun.lock 文件中所有 OS 环境,例如 windows 和 linux 吗?

我在 windows 服务器 2012 中使用 puppet 3.8,我可以看到正在创建锁定文件。不同的 windows 版本会有所不同吗?

您可以通过执行以下操作找出正在使用哪个代理锁定文件:

puppet agent --genconfig | grep agent_catalog_run_lockfile

来自木偶文档:

agent_catalog_run_lockfile

A lock file to indicate that a puppet agent catalog run is currently in 
progress. The file contains the pid of the process that holds the lock 
on the catalog run.

Default: $statedir/agent_catalog_run.lock

在 windows 中使用以下命令的输出如何?

puppet config print |grep lock

agent_catalog_run_lockfile = /var/lib/puppet/state/agent_catalog_run.lock
agent_disabled_lockfile = /var/lib/puppet/state/agent_disabled.lock

那么它应该可以解决您的顾虑。