1
我試圖在我的虛擬機上安裝RabbitMQ模塊。我用:錯誤'無效參數include_src'在配置Vagrant上的Puppet時配置RabbitMQ
git submodule add https://github.com/puppetlabs/puppetlabs-rabbitmq.git
和我安裝的每dependecy我能找到同樣的方式(這是一樣列在this answer:STDLIB,EPEL,分期和Erlang)。
我減少我的清單到最低限度:
Exec { path => [ "/bin/", "/sbin/" , "/usr/bin/", "/usr/sbin/" ] }
exec { 'apt-get update':
command => 'apt-get update',
timeout => 60,
tries => 3
}
package { ['python-software-properties']:
ensure => 'installed',
require => Exec['apt-get update'],
}
$sysPackages = [ 'build-essential', 'git', 'curl']
package { $sysPackages:
ensure => "installed",
require => Exec['apt-get update'],
}
include epel
include staging
class { 'erlang': epel_enable => true}
class { 'rabbitmq':
port => '5672',
service_manage => true,
environment_variables => {
'RABBITMQ_NODENAME' => 'server',
'RABBITMQ_SERVICENAME' => 'rabbitMQ'
}
}
當我準備我的VM vagrant provision
,我得到的錯誤:
==> default: Error: Invalid parameter include_src at /tmp/vagrant-puppet/modules
-33d06c2339c7ee7ab2bd92b2d11cf5d9/erlang/manifests/repo/apt.pp:39
我幾乎可以肯定這是因爲我沒有的依賴關係,但我找不到哪一個。有任何想法嗎 ?
感謝您的回答,我馬上測試這個。 –
非常棒,非常感謝! –