Puppet

Puppet Enterprise 3.3 不向類添加模組

  • August 5, 2014

我正在執行帶有 Puppet Enterprise 3.3 庫存安裝的 Amazon Linux。當我啟動命令時:

puppet module install puppetlabs-ntp

根據 puppet labs 文件,它沒有出現在我的可用課程列表中。我將 Puppet Enterprise 安裝為 sudo,但 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)

我發現了這個問題。謝謝你邁克爾解決它。關鍵是我將基本路徑更改為指向 puppet.conf 中的 ec2-user 目錄。一旦我把它改回來,它就開始工作了。謝謝!

引用自:https://serverfault.com/questions/617943