Browse Source

Use the config_template module from the dedicated repo

The config_template action module has now been moved into its own git
repository (openstack/ansible-config_template). This has been done to
simplify the ability to use the plugin in other non OpenStack-Ansible
projects.

This implements the changes necessary to ensure that all role tests
now make use of the new git repository, rather than the old location
in the openstack-ansible-plugins repository. The config_template
repo is placed first in the list of library/action plugin locations
to use to ensure that any other version of the plugin (eg: ceph) is
not used.

Related-Bug: 1791258
Change-Id: Ia8030424eabecef3c5217907757d921f45e329f8
Jesse Pretorius 2 months ago
parent
commit
2462fa4820
2 changed files with 6 additions and 2 deletions
  1. 4
    0
      test-ansible-role-requirements.yml
  2. 2
    2
      test-ansible.cfg

+ 4
- 0
test-ansible-role-requirements.yml View File

@@ -1,4 +1,8 @@
1 1
 ---
2
+- name: config_template
3
+  scm: git
4
+  src: https://git.openstack.org/openstack/ansible-config_template
5
+  version: master
2 6
 - name: openstack_openrc
3 7
   scm: git
4 8
   src: https://git.openstack.org/openstack/openstack-ansible-openstack_openrc

+ 2
- 2
test-ansible.cfg View File

@@ -25,7 +25,7 @@ transport         = ssh
25 25
 host_key_checking = False
26 26
 control_path      = /tmp/%%h-%%r
27 27
 ssh_args          = -o ControlMaster=no -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o ServerAliveInterval=64 -o ServerAliveCountMax=1024 -o Compression=no -o TCPKeepAlive=yes -o VerifyHostKeyDNS=no -o ForwardX11=no -o ForwardAgent=yes
28
-library           = $HOME/.ansible/plugins/library:$HOME/.ansible/roles/ceph-ansible/library
28
+library           = $HOME/.ansible/roles/config_template/library:$HOME/.ansible/plugins/library:$HOME/.ansible/roles/ceph-ansible/library
29 29
 callback_plugins  = $HOME/.ansible/plugins/callback:$HOME/.ansible/roles/ceph-ansible/plugins/callback
30
-action_plugins    = $HOME/.ansible/plugins/action:$HOME/.ansible/roles/ceph-ansible/plugins/actions
30
+action_plugins    = $HOME/.ansible/roles/config_template/action:$HOME/.ansible/roles/ceph-ansible/plugins/actions
31 31
 roles_path        = $HOME/.ansible/roles:$HOME/.ansible/testing-role

Loading…
Cancel
Save