RabbitMQ Server Installation

To install RabbitMQ Server standalone (separately from Control Panel box) with the installer:

  1. Install OnApp's YUM repository:

    # rpm -Uvh http://rpm.repo.onapp.com/repo/onapp-repo.noarch.rpm
  2. Install the onapp-rabbitmq package:

    # yum -y install onapp-rabbitmq

  3. Run the installer:

    # /onapp/onapp-rabbitmq/onapp-rabbitmq.sh
# /onapp/onapp-rabbitmq/onapp-rabbitmq.sh -h
Usage: /onapp/onapp-rabbitmq/onapp-rabbitmq.sh [--rbthost RBT_HOST] [--onapplogin ONAPP_LOGIN] [--onapppasswd ONAPP_PASSWD] [--onappvhost ONAPP_VHOST] [--rbtlogin RBT_LOGIN] [--rbtpasswd RBT_PASSWD] [-h|--help]

--rbthost   RBT_HOST
IP address/FQDN where RabbitMQ Server runs.The RabbitMQ will be installed and configured on the current box if localhost/ or box's public IP address (listed in SNMP_TRAP_IPS) is specified.Default values is
Options to configure OnApp's account on RabbitMQ.
--onapplogin  ONAPP_LOGIN
The user used by OnApp to connect to the RabbitMQ. Default value is 'onapp'.
--onapppasswd ONAPP_PASSWD
OnApp user's password. The random password is generated if isn't specified.
--onappvhost  ONAPP_VHOST
OnApp user's vhost. Default value is '/'
Options are used to configure RabbitMQ manager account. If local RabbitMQ server.
--rbtlogin  RBT_LOGIN
abbitMQ manager login. The default value is 'rbtmgr'.
--rbtpasswd RBT_PASSWD
RabbitMQ manager password. The random password is generated if isn't specified.
Print this info

The following example will install RabbitMQ Server and configure manager and onapp accounts with random password generated and ready to use by vCloud:

# /onapp/onapp-rabbitmq/onapp-rabbitmq.sh

The ready to use credentials.yml could be used to configure OnApp's Control Panel and vCloud access.

# cat /onapp/onapp-rabbitmq/credentials.yml

port: 5672
user: 'onapp'
password: 'PASSWORD'
vhost: '/'
host: ''

Just run the CP's installer with the following options (RBT_HOST - remote RabbitMQ Server standalone IP address):

# /onapp/onapp-cp-install/onapp-cp-install.sh --rbthost=RBT_HOST --vcdlogin=onapp --vcdpasswd='PASSWORD'

or copy /onapp/onapp-rabbitmq/credentials.yml from the RabbitMQ Server standalone box, into Control Panel /onapp/configuration/rabbit_mq/vcloud/credentials.yml.

As soon as the Control Panel installer completes, add ‘onapp’ system user’s RSA public key to authorize root user login on remote RabbitMQ Server via ssh:

# ssh-copy-id -i /home/onapp/.ssh/id_rsa root@RBT_HOST

The RabbitMQ manager's account credentials are available at the
.rabbitmq.mgr file:

 # cat /onapp/onapp-rabbitmq/.rabbitmq.mgr 

Also you can monitor RabbitMQ server using a command-line tool for it.