aboutsummaryrefslogtreecommitdiffstats
path: root/resources/template/hosts.j2
diff options
context:
space:
mode:
authorYujun Zhang <zhang.yujunz@zte.com.cn>2017-04-12 19:44:00 +0800
committerYujun Zhang <zhang.yujunz@zte.com.cn>2017-04-17 08:54:21 +0800
commit2fa6b511f1a6c1a3372aacdacf7b6f68a4c72ddf (patch)
treeadaed2455a7afcfa64949e3315743609d3494abb /resources/template/hosts.j2
parent6d6259490b9c0897ba493070516600fcff94b312 (diff)
Move YAML resources to /resources.
- replacing the content of /benchmarks will break current module like api/cli - migration required before surpressing the current benchmarks/ folder Change-Id: I8bd04eeb18aaa3c966330ff7adbe85a267680fc1 Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
Diffstat (limited to 'resources/template/hosts.j2')
-rw-r--r--resources/template/hosts.j221
1 files changed, 21 insertions, 0 deletions
diff --git a/resources/template/hosts.j2 b/resources/template/hosts.j2
new file mode 100644
index 00000000..868a4e57
--- /dev/null
+++ b/resources/template/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 %}