kayobe/kayobe
Mark Goddard 73df27677c Use environment variables for plugin paths
Kayobe provides various roles and plugins in the ansible directory.
These are accessible to Kayobe playbooks in the same directory.

In some cases it can be useful to use these items from Kayobe custom
playbooks, however they cannot since they reside in a different
directory. Typically we work around this by symlinking to the relevant
directory from the directory containing the custom playbook. This is not
an elegant workaround, and has assumptions about the relative paths of
the Kayobe configuration and virtual environment in which Kayobe is
installed.

This change adds the Kayobe role, collection, and plugin paths to the
relevant Ansible lookup paths using environment variables. This allows
custom playbooks to use these items. Also added to the lookup paths are
roles, collections and plugins in Kayobe configuration in the
etc/kayobe/ansible/ directory. This removes the limitation of playbooks
needing to reside in the same directory as those items in order to use
them.

We import the Ansible configuration settings module directly, since it
avoids replicating the configuration logic.

Story: 2010280
Task: 46234

Change-Id: I2fb2b4d7ed937e0184a62b0f119659569448f8df
2022-12-14 22:52:41 +01:00
..
cli Remove support for Monasca and its dependencies 2022-12-13 14:32:33 +01:00
cmd Stop to use the __future__ module. 2020-06-02 20:19:56 +02:00
plugins Bump up Ansible supported versions to 5.x/6.x 2022-12-14 14:55:33 +00:00
tests Use environment variables for plugin paths 2022-12-14 22:52:41 +01:00
__init__.py Add kayobe python module with CLI 2017-02-28 16:17:54 +00:00
ansible.py Use environment variables for plugin paths 2022-12-14 22:52:41 +01:00
environment.py Exclude shared directories when creating environments 2021-04-22 09:21:27 +02:00
exception.py Support installing galaxy roles from kayobe-config 2018-05-21 16:00:57 +01:00
kolla_ansible.py Add support for ANSIBLE_VAULT_PASSWORD_FILE 2022-10-13 22:08:15 +02:00
utils.py Fix installation prefix detection 2021-12-02 22:41:53 +01:00
vault.py Add support for ANSIBLE_VAULT_PASSWORD_FILE 2022-10-13 22:08:15 +02:00
version.py Build release notes using reno 2018-05-04 15:11:23 +01:00