Puppet Enterprise 3.3 未向类添加模块

Puppet Enterprise 3.3 未向类添加模块

我正在运行 Amazon Linux,其中安装了 Puppet Enterprise 3.3。当我启动以下命令时:

puppet module install puppetlabs-ntp

根据 puppet labs 文档,它没有出现在我的可用类列表中。我以 sudo 身份安装了 Puppet Enterprise,但 puppet 命令只能从 ec2-user 获得。其他一切似乎都正常。

以 root 身份运行命令:

[root@puppet bin]# ./puppet module install puppetlabs-ntp
Notice: Preparing to install into /home/ec2-user/.puppet/modules ...
Notice: Downloading from https://forgeapi.puppetlabs.com ...
Notice: Found at least one version of puppetlabs-ntp compatible with PE (3.3.0);
Notice: Skipping versions which don't express PE compatibility. To install
the most recent version of the module regardless of compatibility
with PE, use the '--ignore-requirements' flag.
Notice: Found at least one version of puppetlabs-stdlib compatible with PE (3.3.0);
Notice: Skipping versions which don't express PE compatibility. To install
the most recent version of the module regardless of compatibility
with PE, use the '--ignore-requirements' flag.
Notice: Installing -- do not interrupt ...
/home/ec2-user/.puppet/modules
└─┬ puppetlabs-ntp (v3.1.2)
  └── puppetlabs-stdlib (v4.3.2)

答案1

我找到了问题所在。感谢 Michael 解决了这个问题。关键在于我将 basepath 改为指向 puppet.conf 中的 ec2-user 目录。一旦我将其改回来,它就开始工作了。谢谢!

相关内容