summaryrefslogtreecommitdiffstats
path: root/tools/generate_glusto_config/glusto_config_template.jinja
diff options
context:
space:
mode:
authorArthy Loganathan <aloganat@redhat.com>2020-12-15 23:03:58 +0530
committerBala Konda Reddy M <bala12352@gmail.com>2020-12-18 10:12:24 +0000
commite18eccbdf53279926314ffbe8b9fca57ebb7445e (patch)
tree931cdc1f3d7349bfd89cf7750b5f37986da8f232 /tools/generate_glusto_config/glusto_config_template.jinja
parent99c01ca8e9ca89be5705102e12cdc29abc1cb8ed (diff)
[Tool] Tool to generate config file for executing glusto tests
Change-Id: Ie8fc6949b79b6e91c1be210c90a4ef25cfb81754 Signed-off-by: Arthy Loganathan <aloganat@redhat.com>
Diffstat (limited to 'tools/generate_glusto_config/glusto_config_template.jinja')
-rw-r--r--tools/generate_glusto_config/glusto_config_template.jinja39
1 files changed, 39 insertions, 0 deletions
diff --git a/tools/generate_glusto_config/glusto_config_template.jinja b/tools/generate_glusto_config/glusto_config_template.jinja
new file mode 100644
index 000000000..79a3d57e2
--- /dev/null
+++ b/tools/generate_glusto_config/glusto_config_template.jinja
@@ -0,0 +1,39 @@
+log_file: {{logfile}}
+log_level: DEBUG
+remote_user: root
+
+# 'servers' is list of Hostnames/IP's of servers in the cluster.
+servers: &servers_list{% for server_item in servers %}{% for server, value in server_item.items() %}
+ - {{server}}{% endfor %}{% endfor %}
+
+# 'clients' is list of Hostnames/IP's of clients in the cluster.
+clients:{% for client in clients %}
+ - {{client}}{% endfor %}
+
+# 'servers_info' is info about each server in the cluster.
+# each server_info is a dict with 'Hostname/IP' of the server as key.
+# The info should contain the host(Hostname/IP) of server, devices to use
+# for creating bricks, brick_root i.e dirname of brick mount point.
+# Note: Use the same Hostname/IP used in the above 'servers' section.
+
+servers_info:{% for server_item in servers %}
+ {% for server, value in server_item.items() %}
+ {{server}}: &server{{ loop.index }}
+ host: {{server}}
+ devices: {{ value["devices"] }}
+ brick_root: {{ value["brick_root"] }}{% endfor %}{% endfor %}
+
+# 'clients_info' is info about each client in the cluster.
+# each client_info is a dict with 'Hostname/IP' of the client as key.
+# The info should contain the host(Hostname/IP) of client.
+
+clients_info: {% for client in clients %}
+ {{client}}: &client{{ loop.index }}
+ host: {{client}}{% endfor %}
+
+# This is to define what volume types and mount protocols will be run
+# in this current test run.
+
+gluster:
+ running_on_volumes: []
+ running_on_mounts: {{mount_type}}