Role os_cinder for OpenStack-Ansible
ad5736d3f3
This commit does the following: - separates test.yml into a number of individual task files - updates tests/inventory and adds localhost to cinder_all and cinder_volume groups - updates tests/inventory by setting localhost to use the python interpreter in the tox venv (this is needed because openstack-infra runs tox with PYTHON set to the venv's interpreter) - updates tox to symlink python-apt on host into tox venv (this is needed in the functional test as we are now running python from the venv and there is no clear way to simply pip install this) - creates a cinder volume and validates it goes active - bumps keystone and cinder SHAs in the tests to use stable/mitaka and a more recent requirements - updates paste, policy and rootwrap configurations - updates API checks to allow for both 200 and 300 status codes Change-Id: I9b62bc841f86349b60b978fcfc813afe0a313318 |
||
---|---|---|
defaults | ||
doc | ||
files/rootwrap.d | ||
handlers | ||
meta | ||
tasks | ||
templates | ||
tests | ||
vars | ||
.gitignore | ||
.gitreview | ||
CONTRIBUTING.rst | ||
LICENSE | ||
other-requirements.txt | ||
README.rst | ||
run_tests.sh | ||
setup.cfg | ||
setup.py | ||
test-requirements.txt | ||
tox.ini | ||
Vagrantfile |
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 }}"