Role os_magnum for OpenStack-Ansible
Go to file
Jesse Pretorius b4ce21e4b0 Update tox configuration
In order to prepare for implementing requirements management by the
OpenStack requirements management process, and to improve the
reliability and effectiveness of test execution, this patch implements
some changes to the tox configuration:

- The minimum tox version is increased in order to be able to use
  constraints for the python packages.
- The OpenStack upper-constraints are used when preparing the test
  venv for the linters checks.
- Any proxy environment variables set on the test host are passed
  into the venv to enable testing from behind a proxy.
- The environment variables used by Ansible tests are moved into
  a new venv called 'ansible' and this environment is inherited
  by all Ansible-related tests.
- The docs test will clean-up an existing build directory before
  executing the docs build.
- The releasenotes build cannot use upper-constraints at this point,
  so it doesn't.
- The Ansible role download will no longer ignore errors so that any
  problems discovered will result in a failed test.
- The human readable logging callback plugin is implemented for
  functional testing.
- The ansible test requirements are moved into tox.ini to ensure
  compliance for requirements.txt/test-requirements.txt for the
  global-requirements management contract.
- The ~/.ansible directory as a whole is not deleted. Instead only
  the plugins and roles folders are deleted to ensure that zuul's
  Ansible artifacts are left in-place.
- The ansible-lint version is updated to support execution against a
  folder, and the test now executes against the entire role to ensure
  that it captures all applicable files for lint testing.

This is a combined port of the following:
- https://review.openstack.org/323507
- https://review.openstack.org/338193
- https://review.openstack.org/332443
- https://review.openstack.org/338193
- https://review.openstack.org/339493

Change-Id: Ie60d616c315d3875f0aad3de487f733bdbd8c126
2016-07-08 14:38:15 +01:00
defaults Fixing issues with Glance image upload function 2016-07-06 11:51:38 -05:00
doc Implement base configuration for OpenStack-CI 2016-03-18 11:41:53 -07:00
extras Add Trustee User and Domain Creation 2016-06-23 12:54:13 -05:00
files Add files/ directory 2016-01-08 16:34:22 -06:00
handlers Resolving minor issues with Magnum role that prevented installation from 2016-06-08 11:02:44 -05:00
library Add config_template library from OSA 2016-01-05 13:09:23 -06:00
meta Remove pip_lock_down dependency 2016-06-02 17:16:37 -07:00
releasenotes Add reno scaffolding for release notes management 2016-04-09 19:53:15 +01:00
tasks Update tox configuration 2016-07-08 14:38:15 +01:00
templates Fixing magnum.conf 2016-06-24 10:20:17 -05:00
tests Update tox configuration 2016-07-08 14:38:15 +01:00
vars Resolving minor issues with Magnum role that prevented installation from 2016-06-08 11:02:44 -05:00
.gitignore Add .swp files to .gitignore 2016-05-04 15:20:45 +01:00
.gitreview Implement base configuration for OpenStack-CI 2016-03-18 11:41:53 -07:00
CONTRIBUTING.rst Implement base configuration for OpenStack-CI 2016-03-18 11:41:53 -07:00
LICENSE Make license plain-text 2016-01-05 10:59:58 -06:00
README.rst Implement base configuration for OpenStack-CI 2016-03-18 11:41:53 -07:00
Vagrantfile Implement base configuration for OpenStack-CI 2016-03-18 11:41:53 -07:00
other-requirements.txt Add dependencies for paramiko 2.0 2016-05-03 08:56:26 +01:00
run_tests.sh Add dependencies for paramiko 2.0 2016-05-03 08:56:26 +01:00
setup.cfg Implement base configuration for OpenStack-CI 2016-03-18 11:41:53 -07:00
setup.py Implement base configuration for OpenStack-CI 2016-03-18 11:41:53 -07:00
test-requirements.txt Update tox configuration 2016-07-08 14:38:15 +01:00
tox.ini Update tox configuration 2016-07-08 14:38:15 +01:00

README.rst

OpenStack-Ansible Magnum ####################### :tags: openstack, magnum, cloud, ansible :category: *nix

This Ansible role installs and configures OpenStack Magnum.

Default Variables

../../defaults/main.yml

Required Variables

magnum_service_password magnum_galera_password magnum_rabbitmq_password

Example Playbook

- name: Install magnum server
  hosts: magnum_all
  user: root
  roles:
    - role: "os_magnum"
  vars:
    external_lb_vip_address: 172.16.24.1
    internal_lb_vip_address: 192.168.0.1
    magnum_galera_address: "{{ internal_lb_vip_address }}"