diff options
author | 2017-04-12 12:14:59 +0800 | |
---|---|---|
committer | 2017-04-12 16:09:45 +0800 | |
commit | 8ee70654479bff695a6781a9f3eaea9f5eb6b765 (patch) | |
tree | e25f8637aa5a462284521d7efd5d3851b124f971 /tests/integration/hosts.j2 | |
parent | 984be06d90caa765bf8bc035546f0e33e7784dec (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/hosts.j2')
-rw-r--r-- | tests/integration/hosts.j2 | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/integration/hosts.j2 b/tests/integration/hosts.j2 new file mode 100644 index 00000000..868a4e57 --- /dev/null +++ b/tests/integration/hosts.j2 @@ -0,0 +1,21 @@ +[fuel-master] +fuel-master + +[local] +localhost ansible_connection=local + +[fuel-groups:children] +{% for group in hosts|sort %} +{{ group }} +{% endfor %} + +[fuel-groups:vars] +ansible_ssh_common_args=-F ./ssh.cfg + +{% for group in hosts|sort %} +[{{ group }}] +{% for host in hosts[group]|sort %} +{{ host }} +{% endfor %} + +{% endfor %} |