Fedora bug 1033305
Ah! Yoshinori must have run into the same issue that I did at the same time! Additionally, the rabbitmq puppet module in puppetforge requires rabbitmq-env and rabbitmq-defaults to exist in /usr/sbin, too.
Also, please fix this for RHELv6, too.
(In reply to Dan Yocum from comment #3) > Ah! Yoshinori must have run into the same issue that I did at the same time! > > > Additionally, the rabbitmq puppet module in puppetforge requires > rabbitmq-env and rabbitmq-defaults to exist in /usr/sbin, too. Can you elaborate on this? I don't see where this is the case in the puppetforge module.
rabbitmq-env is required in the config.pp, lines 80-88: https://github.com/puppetlabs/puppetlabs-rabbitmq/blob/master/manifests/config.pp#L80-L88 And rabbitmq-env spurces rabbitmq-default on line 41: ## Set defaults . ${SCRIPT_DIR}/rabbitmq-defaults
(In reply to Dan Yocum from comment #6) > rabbitmq-env is required in the config.pp, lines 80-88: > > https://github.com/puppetlabs/puppetlabs-rabbitmq/blob/master/manifests/ > config.pp#L80-L88 > > And rabbitmq-env spurces rabbitmq-default on line 41: > > ## Set defaults > . ${SCRIPT_DIR}/rabbitmq-defaults Ok, I don't believe we need these in the path. The puppet referenced relates to /etc/rabbitmq/rabbitmq-env.conf, not to the rabbitmq-env script under /usr/lib/rabbitmq/bin. This gets pulled in like this: - systemd starts rabbitmq-server via /usr/lib/rabbitmq/bin/rabbitmq-server - /usr/lib/rabbitmq/bin/rabbitmq-server sources the rabbitmq-env script with: . `dirname $0`/rabbitmq-env Which will expand to /usr/lib/rabbitmq/bin/rabbitmq-env and thus doesn't need to be present in /usr/sbin/ - /usr/lib/rabbitmq/bin/rabbitmq-env sources rabbitmq-defaults with (abbreviated): SCRIPT_PATH="$0" SCRIPT_DIR=`dirname $SCRIPT_PATH` . ${SCRIPT_DIR}/rabbitmq-defaults - rabbitmq-defaults sets: CONF_ENV_FILE=${SYS_PREFIX}/etc/rabbitmq/rabbitmq-env.conf - And finally, back in rabbitmq-env it does: [ -f ${CONF_ENV_FILE} ] && . ${CONF_ENV_FILE} || true So it all hinges on the fact that everything else is relative to the original directory that rabbitmq-server is in (/usr/lib/rabbitmq/bin) and the fact that CONF_ENV_FILE is (mostly) hardcoded in /usr/lib/rabbitmq/bin/rabbitmq-env. For now, I'm going to just fix the rabbitmq-plugins bit. If it turns out that I'm wrong somewhere in the twists and turns above, we can certainly revisit the other bits.
verified: rabbitmq-plugins is now in the default $PATH (/usr/sbin)
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-0825.html