Refresh inventory collection requirements (#4296)

* Refresh inventory collection requirements

Fix bug specific to Docker development where the right folder of
  install was not specified in the setting

Add initial rhv/ovirt version for consistency

* Update unit test to ovirt name change
This commit is contained in:
Alan Rominger
2020-05-05 18:22:00 -04:00
committed by GitHub
parent 1ca29df0de
commit 961c5589c1
5 changed files with 12 additions and 9 deletions

View File

@@ -2491,8 +2491,9 @@ class rhv(PluginFileInjector):
""" """
plugin_name = 'ovirt' plugin_name = 'ovirt'
base_injector = 'template' base_injector = 'template'
initial_version = '2.9'
namespace = 'ovirt' namespace = 'ovirt'
collection = 'ovirt_collection' collection = 'ovirt'
@property @property
def script_name(self): def script_name(self):

View File

@@ -1 +1 @@
plugin: ovirt.ovirt_collection.ovirt plugin: ovirt.ovirt.ovirt

View File

@@ -148,6 +148,9 @@ for setting in dir(this_module):
include(optional('/etc/tower/settings.py'), scope=locals()) include(optional('/etc/tower/settings.py'), scope=locals())
include(optional('/etc/tower/conf.d/*.py'), scope=locals()) include(optional('/etc/tower/conf.d/*.py'), scope=locals())
# Installed differently in Dockerfile compared to production versions
INVENTORY_COLLECTIONS_ROOT = '/vendor/inventory_collections'
BASE_VENV_PATH = "/venv/" BASE_VENV_PATH = "/venv/"
ANSIBLE_VENV_PATH = os.path.join(BASE_VENV_PATH, "ansible") ANSIBLE_VENV_PATH = os.path.join(BASE_VENV_PATH, "ansible")
AWX_VENV_PATH = os.path.join(BASE_VENV_PATH, "awx") AWX_VENV_PATH = os.path.join(BASE_VENV_PATH, "awx")

View File

@@ -1,18 +1,18 @@
--- ---
collections: collections:
- name: awx.awx - name: awx.awx
version: 9.3.0 version: 11.2.0 # almost all versions should work
- name: azure.azcollection - name: azure.azcollection
version: 0.1.2 version: 0.1.2
- name: amazon.aws - name: amazon.aws
version: 0.1.1 # version 0.1.0 seems to have gone missing version: 0.1.1 # version 0.1.0 seems to have gone missing
- name: theforeman.foreman - name: theforeman.foreman
version: 0.7.0 # contains the inventory plugin, but more patches are needed version: 0.8.0
- name: google.cloud - name: google.cloud
version: 0.0.9 # contains PR 167, should be good to go version: 0.0.9 # contains PR 167, should be good to go
- name: openstack.cloud - name: openstack.cloud
version: 0.0.1-dev85 # earlier had checksum mismatch version: 0.0.1-dev85 # earlier had checksum mismatch
- name: community.vmware - name: community.vmware
version: 0.4.0 # first to contain necessary grouping and filtering features version: 0.4.0 # first to contain necessary grouping and filtering features
- name: ovirt.ovirt_collection - name: ovirt.ovirt
version: 1.0.1 # new fix published, should be good to go version: 1.0.0 # contains naming fix, was originally named ovirt.ovirt_collection

View File

@@ -50,10 +50,10 @@ else
echo "VMWare collection already exists" echo "VMWare collection already exists"
fi fi
if [ ! -d "$base_dir/ovirt/ovirt_collection" ] if [ ! -d "$base_dir/ovirt/ovirt" ]
then then
mkdir -p $base_dir/ovirt mkdir -p $base_dir/ovirt
git clone $base_dir/ovirt/ovirt_collection git clone https://github.com/oVirt/ovirt-ansible-collection.git $base_dir/ovirt/ovirt
else else
echo "Ovirt collection already exists" echo "Ovirt collection already exists"
fi fi
@@ -62,7 +62,6 @@ if [ ! -d "$base_dir/awx/awx" ]
then then
mkdir -p $base_dir/awx mkdir -p $base_dir/awx
ln -s $(shell pwd)/awx_collection $base_dir/awx/awx ln -s $(shell pwd)/awx_collection $base_dir/awx/awx
git clone $base_dir/awx/awx
else else
echo "awx collection already exists" echo "awx collection already exists"
fi fi