"puppet resource user" 显示所有用户

"puppet resource user" shows all users

如果我 运行 puppet resource user 在 puppet 节点上,它会列出机器上定义的所有用户(来自 /etc/password )。 所有用户都有 ensure => 'present' 属性。 它不应该只列出 类 中适用于此节点的用户吗?

puppet resource 命令是一种有助于将当前系统状态转换为 puppet dsl 代码的工具。

来自puppet help resource的输出:

DESCRIPTION
-----------
This command provides simple facilities for converting current system
state into Puppet code, along with some ability to modify the current
state using Puppet's RAL.

希望对您有所帮助。