aboutsummaryrefslogtreecommitdiffstats
path: root/resources/ansible_roles/qtip-workspace/files/template/setup.yml
diff options
context:
space:
mode:
authorYujun Zhang <zhang.yujunz@zte.com.cn>2017-05-16 15:13:14 +0800
committerYujun Zhang <zhang.yujunz@zte.com.cn>2017-05-16 15:13:47 +0800
commit704d1340fb09b5ffad0282bc143d41e2afebd0bf (patch)
tree9434d101b7d091c09f9ff77b50b63c5fa241d43a /resources/ansible_roles/qtip-workspace/files/template/setup.yml
parent7e87b22284cc322bc9effdd8c610f659692249d1 (diff)
Add support for manually installed (not using installer) OPNFV pod
Change-Id: I314882dd8a9e491f253f825a8da7ec4c91ed3321 Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
Diffstat (limited to 'resources/ansible_roles/qtip-workspace/files/template/setup.yml')
-rw-r--r--resources/ansible_roles/qtip-workspace/files/template/setup.yml10
1 files changed, 8 insertions, 2 deletions
diff --git a/resources/ansible_roles/qtip-workspace/files/template/setup.yml b/resources/ansible_roles/qtip-workspace/files/template/setup.yml
index a522d67b..d165a9fe 100644
--- a/resources/ansible_roles/qtip-workspace/files/template/setup.yml
+++ b/resources/ansible_roles/qtip-workspace/files/template/setup.yml
@@ -10,8 +10,14 @@
# Prepare connection to SUT (System Under Test)
---
-
-- hosts: [fuel-masters, apex-underclouds]
+{% if installer == 'manual' %}
+- hosts: localhost
+ gather_facts: no
+ tasks:
+ - debug: "msg='please add hosts to SUT group in `hosts` file manually.'"
+{% else %}
+- hosts: [{{ installer_master_group[installer] }}]
gather_facts: no
roles:
- { role: qtip, tasks: generate-inventory }
+{% endif %}