From acef3bf37b489c6dd3f0145c118bebed6d7010d8 Mon Sep 17 00:00:00 2001 From: Martin Kopec Date: Fri, 28 Jan 2022 13:11:33 +0000 Subject: [PATCH] Add openstack_node option The option allows user to customize the node the role will be executed on. Change-Id: I3ff7676741cb4f2432bc6b80bd29907d1fb633e0 --- README.md | 1 + infrared_plugin/main.yml | 2 +- infrared_plugin/plugin.spec | 5 +++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e9a0e69..2dc863e 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ deployment is working by passing refstack tests. | dest_dir * | False | pwd | String | Local directory where the artifact files will be stored. | | download_artifacts | False | False | Bool | Whether artifacts should be downloaded to the host or not. They will be downloaded to dest_dir location.| | guideline | False | 2021.11 | String | Specific refstack guideline. | +| openstack_node | False | tester | String | OpenStack node ansible-role-refstack-client will be executed on. | | private_key_path_src | False | None | String | If defined, the key defined by the param is copied to the targeted machine to private_key_path location. Variable contains either a local path (the path on a machine, the playbook is executed from) or link to remote location from which the key will be downloaded.| | refstack_client_source | False | ~/.refstack-client | String | Destination where refstack-client will be cloned only if the dir doesn't exist or it's empty, otherwise it will be used as is.| | tempestconf_source | False | None | String | A path to python-tempestconf's source. If not defined, refstack-client's default is applied. | diff --git a/infrared_plugin/main.yml b/infrared_plugin/main.yml index d309e6b..056c0fd 100644 --- a/infrared_plugin/main.yml +++ b/infrared_plugin/main.yml @@ -1,7 +1,7 @@ --- # This file and plugin.spec are required by Infrared project -- hosts: tester +- hosts: "{{ test.openstack_node }}" tasks: - name: Remap infrared parameters to role variables diff --git a/infrared_plugin/plugin.spec b/infrared_plugin/plugin.spec index f0d77c3..575f357 100644 --- a/infrared_plugin/plugin.spec +++ b/infrared_plugin/plugin.spec @@ -38,6 +38,11 @@ subparsers: type: Value help: | Specific refstack guideline. + openstack_node: + type: Value + help: | + OpenStack node ansible-role-refstack-client will be executed on. + default: tester private_key_path: type: Value help: |