Role os_cinder for OpenStack-Ansible
Go to file
Matt Thompson 321cedd504 Cinder test cleanup
This commit does the following:

- fully defines the inventory rather than having test-prepare-host.yml
  add containers to it
- updates test-prepare-keys.yml to use localhost instead of 127.0.0.1,
  uses become_user=jenkins instead of become=false, and removes
  redundant connection
- updates test-prepare-host.yml by changing 127.0.0.1 to localhost, and
  removes mocking ansible_env
- groups vars in defined in each individual file into a single
  test-vars.yml file

Change-Id: I198aab420f5d4c0aa17ef64a05ce300e18d0b108
2016-03-31 17:59:33 +00:00
defaults OpenStack services should reach Glance via the internal LB VIP 2016-03-31 11:56:05 +00:00
doc [DOCS] Cleanup the role docs for consistency and clarity 2016-03-09 21:03:52 -05:00
files/rootwrap.d Cinder functional testing 2016-03-23 16:19:03 -07:00
handlers Style - Not in YAML dictionary format 2016-02-12 15:26:42 +00:00
meta Enable developer mode 2016-03-08 10:42:49 +00:00
tasks Cinder functional testing 2016-03-23 16:19:03 -07:00
templates OpenStack services should reach Glance via the internal LB VIP 2016-03-31 11:56:05 +00:00
tests Cinder test cleanup 2016-03-31 17:59:33 +00:00
vars Modified apt install and lvm volume specific tasks 2016-03-17 01:16:04 -05:00
.gitignore Adding Vagrantfile for local developer testing 2016-03-09 21:21:15 -05:00
.gitreview Implement base configuration for independent repository 2016-03-01 09:38:00 -08:00
CONTRIBUTING.rst Convert existing roles into galaxy roles 2015-02-18 10:56:25 +00:00
LICENSE Convert existing roles into galaxy roles 2015-02-18 10:56:25 +00:00
README.rst [DOCS] Cleanup the role docs for consistency and clarity 2016-03-09 21:03:52 -05:00
Vagrantfile Adding Vagrantfile for local developer testing 2016-03-09 21:21:15 -05:00
other-requirements.txt Add curl to bindep requirements 2016-03-04 19:22:54 +00:00
run_tests.sh Adding Vagrantfile for local developer testing 2016-03-09 21:21:15 -05:00
setup.cfg Implement base configuration for independent repository 2016-03-01 09:38:00 -08:00
setup.py Implement base configuration for independent repository 2016-03-01 09:38:00 -08:00
test-requirements.txt pin version of ansible-lint we use for testing 2016-03-15 11:43:34 -04:00
tox.ini Update tests to work w/ secure_path update 2016-03-29 10:49:24 +01:00

README.rst

OpenStack-Ansible Cinder

This Ansible role installs and configures OpenStack Cinder.

The following Cinder services are managed by the role:
  • cinder-api
  • cinder-volume
  • cinder-scheduler

By default, Cinder API v1 and v2 are both enabled.

Support for various Cinder backends is supported by the role. See role internals for further details.

Support for volume backups to Swift or Ceph is support by the role. See role internals for further details.

Default Variables

../../defaults/main.yml

Required Variables

This list is not exhaustive at present. See role internals for further details.

# Comma separated list of Glance API servers
cinder_glance_api_servers: "http://glance_server:9292"

# Hostname or IP address of the Galera database
cinder_galera_address: "1.2.3.4"

Example Playbook

- name: Installation and setup of cinder
  hosts: cinder_all
  user: root
  roles:
    - { role: "os_cinder", tags: [ "os-cinder" ] }
  vars:
    cinder_glance_api_servers: "http://glance_server:9292"
    cinder_galera_address: "{{ internal_lb_vip_address }}"