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
Showing
- .stestr.conf 1 addition, 1 deletion.stestr.conf
- ansible/filter_plugins/services.py 22 additions, 0 deletionsansible/filter_plugins/services.py
- doc/source/user/quickstart.rst 4 additions, 4 deletionsdoc/source/user/quickstart.rst
- kolla_ansible/exception.py 24 additions, 0 deletionskolla_ansible/exception.py
- kolla_ansible/filters.py 107 additions, 0 deletionskolla_ansible/filters.py
- kolla_ansible/tests/__init__.py 0 additions, 0 deletionskolla_ansible/tests/__init__.py
- kolla_ansible/tests/unit/__init__.py 0 additions, 0 deletionskolla_ansible/tests/unit/__init__.py
- kolla_ansible/tests/unit/test_filters.py 173 additions, 0 deletionskolla_ansible/tests/unit/test_filters.py
- releasenotes/notes/jinja-filters-818d5bb97ddc75c6.yaml 13 additions, 0 deletionsreleasenotes/notes/jinja-filters-818d5bb97ddc75c6.yaml
- tests/run.yml 4 additions, 4 deletionstests/run.yml
Loading
Please register or sign in to comment