Add custom filters for checking services

These filters can be used to capture a lot of the logic that we
currently have in 'when' statements, about which services are enabled
for a particular host.

In order to use these filters, it is necessary to install the
kolla_ansible python module, and not just the dependencies listed in
requirements.txt. The CI test and quickstart install from source
documentation has been updated accordingly.

Ansible is not currently in OpenStack global requirements, so for unit
tests we avoid a direct dependency on Ansible and provide fakes where
necessary.

Change-Id: Ib91cac3c28e2b5a834c9746b1d2236a309529556
This commit is contained in:
Mark Goddard
2019-01-19 08:17:10 +00:00
parent 8c8adb0e45
commit af2e7fd73e
10 changed files with 348 additions and 9 deletions

View File

@@ -220,15 +220,15 @@ Install Kolla for development
.. code-block:: console
pip install -r kolla/requirements.txt
pip install -r kolla-ansible/requirements.txt
pip install ./kolla
pip install ./kolla-ansible
If not using a virtual environment:
.. code-block:: console
sudo pip install -r kolla/requirements.txt
sudo pip install -r kolla-ansible/requirements.txt
sudo pip install ./kolla
sudo pip install ./kolla-ansible
#. Create the ``/etc/kolla`` directory.