9aa42e5bea
In order to radically simplify how we prepare the service venvs, we use a common role to do the wheel builds and the venv preparation. This makes the process far simpler to understand, because the role does its own building and installing. It also reduces the code maintenance burden, because instead of duplicating the build processes in the repo_build role and the service role - we only have it all done in a single place. We also change the role venv tag var to use the integrated build's common venv tag so that we can remove the role's venv tag in group_vars in the integrated build. This reduces memory consumption and also reduces the duplication. This is by no means the final stop in the simplification process, but it is a step forward. The will be work to follow which: 1. Replaces 'developer mode' with an equivalent mechanism that uses the common role and is simpler to understand. We will also simplify the provisioning of pip install arguments when doing this. Depends-On: https://review.openstack.org/598957 Change-Id: I97a614422490e7bff3bbe5f651387fbeb092aeda Implements: blueprint python-build-install-simplification Signed-off-by: Jesse Pretorius <jesse.pretorius@rackspace.co.uk> |
||
---|---|---|
defaults | ||
doc | ||
handlers | ||
library | ||
meta | ||
releasenotes | ||
tasks | ||
templates | ||
tests | ||
vars | ||
zuul.d | ||
.gitignore | ||
.gitreview | ||
CONTRIBUTING.rst | ||
LICENSE | ||
README.rst | ||
Vagrantfile | ||
ansible-role-requirements.yml | ||
bindep.txt | ||
run_tests.sh | ||
setup.cfg | ||
setup.py | ||
tox.ini |
README.rst
OpenStack-Ansible Searchlight
Ansible role which installs and configures OpenStack Searchlight.
Default Variables
../../defaults/main.yml
Required Variables
This list is not considered exhaustive at present. See role internals for further details.
elasticsearch_apt_java_package: "openjdk-8-jre"
searchlight_rabbitmq_userid: searchlight
searchlight_rabbitmq_vhost: /searchlight
searchlight_rabbitmq_servers: "{{ rabbitmq_servers }}"
searchlight_rabbitmq_port: "{{ rabbitmq_port }}"
searchlight_rabbitmq_use_ssl: "{{ rabbitmq_use_ssl }}"
Example Playbook
- name: Installation and setup of Searchlight
hosts: keystone_all
user: root
roles:
- role: elasticsearch
- role: "os_searchlight"
searchlight_venv_tag: "{{ openstack_release }}"
searchlight_venv_download_url: "{{ openstack_repo_url }}/venvs/{{ openstack_release }}/{{ ansible_distribution | lower }}/searchlight-{{ openstack_release }}-{{ ansible_architecture | lower }}.tgz"
pip_lock_to_internal_repo: "{{ (pip_links | length) >= 1 }}"
tags:
- "os-searchlight"
vars:
elasticsearch_apt_java_package: "openjdk-8-jre"
searchlight_rabbitmq_userid: searchlight
searchlight_rabbitmq_vhost: /searchlight
searchlight_rabbitmq_servers: "{{ rabbitmq_servers }}"
searchlight_rabbitmq_port: "{{ rabbitmq_port }}"
searchlight_rabbitmq_use_ssl: "{{ rabbitmq_use_ssl }}"
Tags
This role supports two tags: searchlight-install
and
searchlight-config
The searchlight-install
tag can be used to install and
upgrade.
The searchlight-config
tag can be used to maintain
configuration of the service.
OpenStack-Ansible Searchlight
Ansible role to install OpenStack Searchlight.
- Documentation for the project can be found at:
-
https://docs.openstack.org/openstack-ansible-os_searchlight/latest/
- Release notes for the project can be found at:
-
https://docs.openstack.org/releasenotes/openstack-ansible-os_searchlight
- The project source code repository is located at:
-
https://git.openstack.org/cgit/openstack/openstack-ansible-os_searchlight
- The project home is at: