hpcloud-mon / ansible-monasca-keystone

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#Monasca Keystone Performs some Keystone setup for Monasca. The role requires virtualenv be installed and will install python-keystoneclient. By default it will use the virtualenv at monasca_virtualenv_dir. This role adds one or more users/projects/roles to Keystone, as specified in keystone_users:

keystone_users:
  - username: monasca-agent
    password: some-password
    project: some-project
    role: monasca-agent

It also creates a Monasca endpoint in keystone.

Override default variables as necessary:

  • keystone_url The url to connect to keystone with
  • monasca_api_url The url of the monasca api to be registered as the service endpoint in keystone

Keystone Authentication: There are two ways to authenticate to Keystone:

1: Use an Admin Token by setting keystone_admin_token 2: Use an Admin User and Password by setting keystone_admin, keystone_admin_password and keystone_admin_project

The variables are mutually exclusive, only one set can be defined.

Keystone SSL: If the keystone server is using a self-signed SSL certificate, the variable keystone_admin_cacert can be used to specify a cacert so that SSL authentication will succeed. If the correct cacert is already on the remote system, the variable keystone_local_cacert can be used to give its location.

As of this writing the keystone-user module does not support a cacert parameter so it is not used.

##Requirements

  • Server running OpenStack Keystone
  • Hostname or IP of Monasca API server

##Optional

Keystone service endpoints

By default only single service endpoint is registered in Keystone. List of endpoints is held under keystone_service_endpoints variable. For adding new ones this variable has to be overridden. An example below illustrates how it should be defined:

keystone_service_endpoints:
  - {name: "monasca", description: "Monasca monitoring service", type: "monitoring", url: "{{ monasca_api_url }}"}

Each entry must have following variables defined:

  • name,
  • description,
  • type,
  • url

##License Apache

##Author Information David Schroeder

Monasca Team email monasca@lists.launchpad.net

About

License:Apache License 2.0