mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 18:40:01 -03:30
kubectl and synchronize are now part of community.kubernetes and ansible.posix collections, respectively. This change installs these collections to a local directory to be used in inventory and isolated management playbooks. awx issue #6930
35 lines
1.1 KiB
Markdown
35 lines
1.1 KiB
Markdown
### Inventory Updates Cross-Development with Collections
|
|
|
|
Inventory updates in production use vendored collections baked into the image,
|
|
which are downloaded from Ansible Galaxy in the build steps.
|
|
|
|
This gives instructions to short-circuit that process for a faster development process.
|
|
|
|
Running this script will do a `git clone` for all the relevant collections
|
|
into the folder `awx/plugins/collections`.
|
|
|
|
```
|
|
source tools/collections/clone_vendor.sh
|
|
```
|
|
|
|
After this is completed, you must change the path where the server looks
|
|
for the vendored inventory collections.
|
|
Add this line to your local settings:
|
|
|
|
```
|
|
AWX_ANSIBLE_COLLECTIONS_PATHS = '/awx_devel/awx/plugins/collections'
|
|
```
|
|
|
|
Then when you run an inventory update of a particular type, it should
|
|
use the cloned collection.
|
|
This allows you to cd into a particular collection, add remotes,
|
|
change branches, etc.
|
|
|
|
#### Extra Build Steps
|
|
|
|
This will not work correctly in all circumstances.
|
|
Some collections make changes at build-time.
|
|
|
|
In particular, the foreman inventory plugin needs the NAME attribute changed to
|
|
the fully-qualified collection name, and will fail if this is not done.
|