在 Vagrant 上使用 Puppet 配置 RabbitMQ 时出错 'invalid parameter include_src'
Error 'invalid parameter include_src' when provisionning RabbitMQ with Puppet on Vagrant
我正在尝试在我的虚拟机上安装 RabbitMQ 模块。我用过:
git submodule add https://github.com/puppetlabs/puppetlabs-rabbitmq.git
并且我安装了我能找到的所有依赖项(如 中所列:stdlib、epel、staging 和 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'
}
}
当我使用 vagrant provision
配置我的 VM 时,出现错误:
==> default: Error: Invalid parameter include_src at /tmp/vagrant-puppet/modules
-33d06c2339c7ee7ab2bd92b2d11cf5d9/erlang/manifests/repo/apt.pp:39
我几乎可以肯定这是因为我没有依赖项,但我无法找出是哪一个。有什么想法吗?
erlang 模块似乎需要旧版本的 apt 模块。看看这个patch. Recently, in apt resource, parameters include_src
and include_deb
were substituted by one include
parameter. To solve the problem please install apt
module in version 1.8.0.
我正在尝试在我的虚拟机上安装 RabbitMQ 模块。我用过:
git submodule add https://github.com/puppetlabs/puppetlabs-rabbitmq.git
并且我安装了我能找到的所有依赖项(如
我将我的清单减少到最低限度:
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'
}
}
当我使用 vagrant provision
配置我的 VM 时,出现错误:
==> default: Error: Invalid parameter include_src at /tmp/vagrant-puppet/modules
-33d06c2339c7ee7ab2bd92b2d11cf5d9/erlang/manifests/repo/apt.pp:39
我几乎可以肯定这是因为我没有依赖项,但我无法找出是哪一个。有什么想法吗?
erlang 模块似乎需要旧版本的 apt 模块。看看这个patch. Recently, in apt resource, parameters include_src
and include_deb
were substituted by one include
parameter. To solve the problem please install apt
module in version 1.8.0.