summaryrefslogtreecommitdiffstats
path: root/tests/integration/setup.yaml
diff options
context:
space:
mode:
authorYujun Zhang <zhang.yujunz@zte.com.cn>2017-04-12 12:14:59 +0800
committerYujun Zhang <zhang.yujunz@zte.com.cn>2017-04-12 16:09:45 +0800
commit8ee70654479bff695a6781a9f3eaea9f5eb6b765 (patch)
treee25f8637aa5a462284521d7efd5d3851b124f971 /tests/integration/setup.yaml
parent984be06d90caa765bf8bc035546f0e33e7784dec (diff)
Refactoring connection task
- split `compute` playbook into `setup` and `run` - save inventory and ssh configuration after in `setup` Change-Id: I0803a954ffcd7c07861ff6bdb76acdbfaa4815bd Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
Diffstat (limited to 'tests/integration/setup.yaml')
-rw-r--r--tests/integration/setup.yaml21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/integration/setup.yaml b/tests/integration/setup.yaml
new file mode 100644
index 00000000..784d6cc5
--- /dev/null
+++ b/tests/integration/setup.yaml
@@ -0,0 +1,21 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+
+# Prepare connection to SUT (System Under Test)
+- hosts: fuel-master
+ gather_facts: no
+ tasks:
+ - name: collect facts of fuel hosts
+ fuel:
+ - name: update inventory file
+ template: src=./hosts.j2 dest=./hosts
+ delegate_to: localhost
+ - name: update ssh.cfg file
+ template: src=./ssh.cfg.j2 dest=./ssh.cfg
+ delegate_to: localhost