11

vagrant プロジェクトの 1 つで、パペットをプロビジョナーとして使用しています。カスタム bash_profile のモジュールを追加しようとしています。

module_pathfor puppet は次のように設定されています。

 puppet.module_path = "puppet/modules"

私の bash_profile モジュールのクラスは次のようになります。

class bash_profile
{
    file
    {
        "/home/vagrant/bash_profile":
            ensure => present,
            source => "puppet:///modules/bash_profile/files/bash_profile"
    }
}

私のパペット構造のファイル構造は次のとおりです。

puppet
| manifests
| | phpbase.pp // my main manifest file that has includes for modules
| modules
| | bash_profile
| | | files
| | | | bash_profile // the actual bash_profile file I want to ensure is present on my VM
| | | manifests
| | | | init.pp // the init file included for the bash_profile class

vagrant のプロビジョニングを実行すると、エラーが発生します

エラー: /Stage[main]/Bash_profile/File[/home/vagrant/bash_profile]: 評価できませんでした: 環境の本番ソースから情報を取得できませんでした puppet:///modules/bash_profile/files/bash_profile at /tmp /vagrant-puppet-1/modules-0/bash_profile/manifests/init.pp:8

情報を取得できない理由がわかりません。パスは正しいようです。誰かが私が見逃しているものを見ることができますか?

4

3 に答える 3

25

はい、files/URL にリテラルを含めることは想定されていません。代わりに、それはただあるべきです

puppet:///modules/bash_profile/bash_profile
于 2014-06-13T21:09:28.650 に答える