Trying to install mcollective with RabbitMQ. The following package install produces the errors listed below in Bold.
I know exec resource unsets HOME and USER now starting with 3.0 and the workaround for that is to set "environment => 'HOME=/root'" for the exec resource.
It looks like it is the same situation when running post-installation script during package install. And there doesn't seem to be any workaround for that since one can not pass environment parameter to package install.
Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install rabbitmq-stomp' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
rabbitmq-erlang-client
The following NEW packages will be installed:
rabbitmq-erlang-client rabbitmq-stomp
0 upgraded, 2 newly installed, 0 to remove and 9 not upgraded.
Need to get 21.1 kB of archives.
After this operation, 125 kB of additional disk space will be used.
Fetched 21.1 kB in 0s (130 kB/s)
Selecting previously unselected package rabbitmq-erlang-client.
(Reading database ... 36928 files and directories currently installed.)
Unpacking rabbitmq-erlang-client (from .../rabbitmq-erlang-client_2.7.1-0ubuntu4_all.deb) ...
Selecting previously unselected package rabbitmq-stomp.
Unpacking rabbitmq-stomp (from .../rabbitmq-stomp_2.7.1-0ubuntu4_all.deb) ...
Setting up rabbitmq-erlang-client (2.7.1-0ubuntu4) ...
erlexec: HOME must be set
dpkg: error processing rabbitmq-erlang-client (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of rabbitmq-stomp:
rabbitmq-stomp depends on rabbitmq-erlang-client (= 2.7.1-0ubuntu4); however:
Package rabbitmq-erlang-client is not configured yet.