Hi Everyone,<div><br></div><div>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. </div><div><br></div><div>The relevant resources look as follows:</div><div><br></div><div><pre style="margin-bottom: 10px; padding: 5px; font-size: 14px; background-color: rgb(238, 238, 238); font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; overflow: auto; width: auto; max-height: 600px; color: rgb(0, 0, 0); line-height: 18px; "><code style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; ">$version = "2.8.7"
$url = "http://www.rabbitmq.com/releases/rabbitmq-server/v${version}/rabbitmq-server-${version}-1.noarch.rpm"
package{"erlang":
ensure => "present",
}
package{"rabbitmq-server":
provider => "rpm",
source => $url,
require => Package["erlang"]
}
exec{"rabbitmq-plugins":
path => "/usr/bin:/usr/sbin:/bin",
command => "rabbitmq-plugins enable rabbitmq_management",
require => Package["rabbitmq-server"]
}</code></pre></div><div><br></div><div>The error I get:</div><div><br></div><div><pre style="margin-bottom: 10px; padding: 5px; font-size: 14px; background-color: rgb(238, 238, 238); font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; overflow: auto; width: auto; max-height: 600px; color: rgb(0, 0, 0); line-height: 18px; "><code style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; ">/Stage[main]/Rabbitmq/Exec[rabbitmq-plugins]/returns: erlexec: HOME must be set</code></pre><pre style="margin-bottom: 10px; padding: 5px; background-color: rgb(238, 238, 238); overflow: auto; width: auto; max-height: 600px; "><code><font color="#000000" face="Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif"><span style="font-size: 14px; line-height: 18px;">/Stage[main]/Rabbitmq/Service[rabbitmq-server]: Dependency Exec[rabbitmq-plugins] has failures: true<br></span></font></code></pre></div><div>The thing is, that HOME is set. Have checked that during a puppet run by creating an exec resource to echo HOME.</div><div><br></div><div>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.</div><div><br></div><div>Starting rabbitmq-server leaves me with the following:</div><div><br></div><div><pre style="margin-bottom: 10px; padding: 5px; font-size: 14px; background-color: rgb(238, 238, 238); font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; overflow: auto; width: auto; max-height: 600px; color: rgb(0, 0, 0); line-height: 18px; "><code style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; ">[{pid,2834},
{running_applications,[{rabbit,"RabbitMQ","2.8.7"},
{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"}]},
{os,{unix,linux}},
{erlang_version,"Erlang R14B04 (erts-5.8.5) [source] [64-bit] [rq:1] [async-threads:30] [kernel-poll:true]\n"},
{memory,[{total,24993120},
{processes,10328496},
{processes_used,10321296},
{system,14664624},
{atom,1175905},
{atom_used,1143841},
{binary,17192},
{code,11416020},
{ets,766168}]},
{vm_memory_high_watermark,0.4},
{vm_memory_limit,205851852},
{disk_free_limit,1000000000},
{disk_free,7089795072},
{file_descriptors,[{total_limit,924},
{total_used,4},
{sockets_limit,829},
{sockets_used,2}]},
{processes,[{limit,1048576},{used,131}]},
{run_queue,0},
{uptime,6}]</code></pre></div><div><br></div><div>The whole puppet manifest can be found under <a href="https://github.com/tobias-wissmueller/dev_ops_central/blob/master/modules/rabbitmq/manifests/init.pp">https://github.com/tobias-wissmueller/dev_ops_central/blob/master/modules/rabbitmq/manifests/init.pp</a></div><div><br></div><div>Also have posted this problem over at <a href="http://serverfault.com/questions/434942/veewee-vagrant-puppet-erlang-and-rabbitmq">Serverfault</a>.</div><div><br></div><div>Any help is highly appreciated since I am totally stuck here.</div><div><br></div><div>Thanks a lot!</div><div><br></div><div>Cheers,</div><div>Tobi</div>