First configure rabbitMQ by adding vhost and user with administrator rights:
rabbitmqctl add_user muranouser murano rabbitmqctl set_user_tags muranouser administrator rabbitmqctl add_vhost muranovhost rabbitmqctl set_permissions -p muranovhost muranouser ".*" ".*" ".*"
Copy and edit configuration files:
cd /etc/murano-api cp murano-api.conf.sample murano-api.conf cp murano-api-paste.ini.sample murano-api-paste.ini vi murano-api.conf
Configure it according to your environment:
[DEFAULT] section sets up logging.
[reports] section allows you to set up names for new rabbitMQ queues.
In [rabbitmq] section you can set up host configuration where rabbitMQ with just created user and vhost is running.
For more information how to configure SSL take a look at SSL configuration chapter
Configure keystone auth_token in murano-api-paste.ini file. For more information see Auth-Token Middleware with Username and Password
vim murano-api-paste.ini [pipeline:muranoapi] pipeline = authtoken context apiv1app [app:apiv1app] paste.app_factory = muranoapi.api.v1.router:API.factory [filter:context] paste.filter_factory = muranoapi.api.middleware.context:ContextMiddleware.facto$ #For more information see Auth-Token Middleware with Username and Password #http://docs.openstack.org/developer/keystone/configuringservices.html [filter:authtoken] paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory auth_host = localhost auth_port = 35357 auth_protocol = http admin_tenant_name = admin admin_user = admin admin_password = password
Register murano-api service in Openstack.
Note: you need to be authorized in Openstack to run this commands. To do this, you can run something like (having changed variables to appropriate values)
source $(YOUR_OPENSTACK_DIR)/openrc $(LOGIN) $(PASSWORD)
keystone service-create --name muranoapi --type murano --description "Murano-Api Service" keystone endpoint-create --region RegionOne --service-id The ID field returned by the keystone service-create --publicurl http://x.x.x.x:8082 (where x.x.x.x - host ip where murano-api installed) --internalurl the same as publicurl --adminurl the same as publicurl