RETIRED, Role os_searchlight for OpenStack-Ansible
Go to file
Jesse Pretorius 70016bb4ee Execute service setup against a delegated host using Ansible built-in modules
In order to reduce the packages required to pip install on to the hosts,
we allow the service setup to be delegated to a specific host, defaulting
to the deploy host. We also switch as many tasks as possible to using the
built-in Ansible modules which make use of the shade library.

The 'virtualenv' package is now installed appropriately by the openstack_hosts
role, so there's no need to install it any more. The 'httplib2' package is a
legacy Ansible requirement for the get_url/get_uri module which is no longer
needed. The keystone client library is not required any more now that we're
using the upstream modules. As there are no required packages left, the task
to install them is also removed.

Change-Id: I81bb3f872dc93e54861cb720e3b37ab7660a074a
2018-07-14 14:00:14 +00:00
defaults Execute service setup against a delegated host using Ansible built-in modules 2018-07-14 14:00:14 +00:00
doc Updated from global requirements 2018-03-25 22:30:56 +00:00
handlers Import initial os_searchlight role. 2017-06-05 15:06:59 +01:00
library Import initial os_searchlight role. 2017-06-05 15:06:59 +01:00
meta Execute service setup against a delegated host using Ansible built-in modules 2018-07-14 14:00:14 +00:00
releasenotes Remove setting of version/release from releasenotes 2017-11-17 08:04:24 +01:00
tasks Execute service setup against a delegated host using Ansible built-in modules 2018-07-14 14:00:14 +00:00
templates Deprecate auth_uri option 2018-04-03 14:16:53 +08:00
tests Execute service setup against a delegated host using Ansible built-in modules 2018-07-14 14:00:14 +00:00
vars Import initial os_searchlight role. 2017-06-05 15:06:59 +01:00
zuul.d Switch non-voting jobs to use Zuul stanza 2018-06-13 21:40:08 -04:00
.gitignore Updated from OpenStack Ansible Tests 2018-03-27 15:55:57 +00:00
.gitreview Added .gitreview 2016-11-29 10:18:54 +00:00
CONTRIBUTING.rst Import initial os_searchlight role. 2017-06-05 15:06:59 +01:00
LICENSE Import initial os_searchlight role. 2017-06-05 15:06:59 +01:00
README.rst Update the project home to https 2018-07-05 21:34:22 -04:00
Vagrantfile Updated from OpenStack Ansible Tests 2018-06-06 00:43:55 +00:00
ansible-role-requirements.yml Import initial os_searchlight role. 2017-06-05 15:06:59 +01:00
bindep.txt Updated from OpenStack Ansible Tests 2017-12-06 00:06:37 +00:00
run_tests.sh Updated from OpenStack Ansible Tests 2018-04-30 05:16:17 +00:00
setup.cfg Fix the home-page link 2018-06-22 23:35:53 -04:00
setup.py Updated from global requirements 2017-06-07 23:58:45 +00:00
tox.ini Use tests repo for common role test requirements 2018-07-02 13:00:52 -04:00

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 home is at:

https://launchpad.net/openstack-ansible