[rabbitmq-discuss] Problem installing RabbitMQ with Puppet on CentOS 6.2

Tobias Wissmüller tobias.wissmueller at googlemail.com
Fri Oct 5 07:05:07 BST 2012

Hi Everyone,

I encounter a strange problem when applying my puppet module I have created 
for installing RabbitMQ. To be more precise, I encounter the problem when 
enabling the plugins. 

The relevant resources look as follows:

$version = "2.8.7"
$url     = "http://www.rabbitmq.com/releases/rabbitmq-server/v${version}/rabbitmq-server-${version}-1.noarch.rpm"

    ensure => "present",

    provider => "rpm",
    source   => $url,
    require  => Package["erlang"]

    path    => "/usr/bin:/usr/sbin:/bin",
    command => "rabbitmq-plugins enable rabbitmq_management",
    require => Package["rabbitmq-server"]

The error I get:

/Stage[main]/Rabbitmq/Exec[rabbitmq-plugins]/returns: erlexec: HOME must be set

/Stage[main]/Rabbitmq/Service[rabbitmq-server]: Dependency Exec[rabbitmq-plugins] has failures: true

The thing is, that HOME is set. Have checked that during a puppet run by 
creating an exec resource to echo HOME.

When I log into the box that I create with veewee and vagrant, I can 
execute "rabbitmq-plugins enable rabbitmq_management" without any problems. 
But I always get the error from within puppet.

Starting rabbitmq-server leaves me with the following:

                    {ssl,"Erlang/OTP SSL application","4.1.6"},
                    {public_key,"Public key infrastructure","0.13"},
                    {crypto,"CRYPTO version 2","2.0.4"},
                    {mnesia,"MNESIA  CXC 138 12","4.5"},
                    {os_mon,"CPO  CXC 138 46","2.2.7"},
                    {sasl,"SASL  CXC 138 11","2.1.10"},
                    {stdlib,"ERTS  CXC 138 10","1.17.5"},
                    {kernel,"ERTS  CXC 138 10","2.14.5"}]},
{erlang_version,"Erlang R14B04 (erts-5.8.5) [source] [64-bit] [rq:1] [async-threads:30] [kernel-poll:true]\n"},

The whole puppet manifest can be found under 

Also have posted this problem over at Serverfault<http://serverfault.com/questions/434942/veewee-vagrant-puppet-erlang-and-rabbitmq>

Any help is highly appreciated since I am totally stuck here.

Thanks a lot!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20121004/df315e5f/attachment.htm>

More information about the rabbitmq-discuss mailing list