diff options
author | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2017-08-24 17:07:50 +0800 |
---|---|---|
committer | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2017-08-26 02:24:07 +0000 |
commit | 9eb2005c087a6c064fd2880edd253028e3ea1513 (patch) | |
tree | f08671811e0c70e5c29173ea4ef4ea2aea37332b /resources/ansible_roles/qtip-generator/files/storage/templates/hosts | |
parent | 73f6ca735e00902f9b71a9110eb97c7b008d8e94 (diff) |
Refactor storperf testing scripts into ansible role
Change-Id: Ifbfe0818a528dbd9b2c176acf39450ca480e931a
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
Diffstat (limited to 'resources/ansible_roles/qtip-generator/files/storage/templates/hosts')
-rw-r--r-- | resources/ansible_roles/qtip-generator/files/storage/templates/hosts | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/resources/ansible_roles/qtip-generator/files/storage/templates/hosts b/resources/ansible_roles/qtip-generator/files/storage/templates/hosts new file mode 100644 index 00000000..49920006 --- /dev/null +++ b/resources/ansible_roles/qtip-generator/files/storage/templates/hosts @@ -0,0 +1,25 @@ +{% raw %} +localhost ansible_connection=local + +[{{ installer_group[installer_type] }}] +{{ installer_host }} + +[SUT:children] # system under test +compute + +[node-groups:children] +{% for group in hosts|sort %} +{{ group }} +{% endfor %} + +[node-groups:vars] +ansible_ssh_common_args=-F ./ssh.cfg + +{% for group in hosts|sort %} +[{{ group }}] +{% for host in hosts[group]|sort %} +{{ host }} +{% endfor %} + +{% endfor %} +{% endraw %} |