Skip to content

Commit

Permalink
Set tester node
Browse files Browse the repository at this point in the history
undercloud-0 is no longer by default part of the tester group. This
is now determined by different plugins in order to allow to
set different tester nodes.

Change-Id: I0f3aae295df11851932d11dd6933cddad35cb794
  • Loading branch information
abregman committed May 13, 2020
1 parent 5d058d3 commit de806b1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
13 changes: 13 additions & 0 deletions main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
---
- name: Set tester node
hosts: localhost
tasks:
- name: Add chosen node to tester group
add_host:
name: "{{ test.tester.node|default(groups.undercloud|first) }}"
groups: "tester"
- include_role:
name: inventory-update
vars:
inventory_file_name: 'hosts-test'


- name: add hosts to run the code using ansible-playbook
hosts: localhost
gather_facts: no
Expand Down
4 changes: 3 additions & 1 deletion plugin.spec
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,6 @@ subparsers:
type: Value
help: 'A pattern of a node or group as appears in ansible inventory'
required: False

test-node:
type: Value
help: The name of the node from where to run the patching

0 comments on commit de806b1

Please sign in to comment.