Role os_cinder for OpenStack-Ansible
55b68f63ec
The tests in this role were crafted to work with an upstream image config that persisted a user's PATH when the user sudos to root. We raised this issue with openstack-infra as it was a non-standard config and difficult to debug. This was reverted in [1] and this commit now updates the tests to not assume that packages are being installed into tox's functional venv. [1] https://review.openstack.org/#/c/296598/ Change-Id: Ibb068f558fcc05c57f291698023459c92cbe12d6 |
||
---|---|---|
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 }}"