cloudkitty charm #4

Supports: xenial
Add to new model

Description

CloudKitty provides a Rating-as-a-Service component for OpenStack Queens.


Overview

CloudKitty is the Rating-as-a-Service component for OpenStack. It provides an
API to configure pricing policy and retrieve billing information.

This charm deploys the CloudKitty infrastructure.

Usage

CloudKitty requires the following charms to be fully functional:

  • mysql
  • rabbitmq-server
  • keystone

Deploy

To deploy our charm from local repository we have to create a folder and upload our charm then:

juju deploy /home/openstack/juju-charm/cloudkitty-charm --to 0/lxd/38
juju add-relation cloudkitty-charm mysql
juju add-relation cloudkitty-charm rabbitmq-server
juju add-relation cloudkitty-charm keystone

Install Dashboard

Our charm only install cloudkitty service, we have to install dashboard module to our Horizon Panel

cd /opt/
sudo git clone https://git.openstack.org/openstack/cloudkitty-dashboard.git
cd cloudkitty-dashboard
sudo python setup.py install
sudo pip install -r requirements.txt
PY_PACKAGES_PATH=`pip --version | cut -d' ' -f4`
sudo ln -sf /opt/cloudkitty-dashboard/cloudkittydashboard/enabled/_[0-9]*.py $PY_PACKAGES_PATH/openstack_dashboard/enabled/
sudo ln -sf /opt/cloudkitty-dashboard/cloudkittydashboard/enabled/_[0-9]*.py /usr/share/openstack-dashboard/openstack_dashboard/enabled/
sudo systemctl restart $(systemctl list-unit-files | grep openstack-dashboard | awk '{print $1}')

Contact

Charm Author: Adrian Campos adriancampos@teachelp.com


Configuration

database
(string) Database name
cloudkitty
database-user
(string) Username for database access
cloudkitty
os-public-hostname
(string) The hostname or address of the public endpoints created for cloudkitty in the keystone identity provider. . This value will be used for public endpoints. For example, an os-public-hostname set to 'cloudkitty.example.com' with ssl enabled will create the following public endpoints for cloudkitty: . https://cloudkitty.example.com:8888/
rabbit-user
(string) Username to request access on rabbitmq-server.
cloudkitty
rabbit-vhost
(string) RabbitMQ virtual host to request access on rabbitmq-server.
openstack
region
(string) OpenStack Region
RegionOne
ssl_ca
(string) SSL CA to use with the certificate and key provided - this is only required if you are providing a privately signed ssl_cert and ssl_key.
ssl_cert
(string) SSL certificate to install and use for API ports. Setting this value and ssl_key will enable reverse proxying, point Heat's entry in the Keystone catalog to use https, and override any certficiate and key issued by Keystone (if it is configured to do so).
ssl_key
(string) SSL key to use with certificate specified as ssl_cert.
use-syslog
(boolean) By default, all services will log into their corresponding log files. Setting this to True will force all services to log to the syslog.