summaryrefslogtreecommitdiffstats
path: root/config/gluster-host.cfg.template
blob: bd1b2af355924b1c3c91f7273d6bea5c56f3e0ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
###@GENERATED@###
# AUTO-GENERATED FILE.  DO NOT MODIFY.
#
# This confinguration file was automatically generated by the
# Gluster Auto Discovery tool. It should not be modified by hand.
#

{% if host['use'] == 'gluster-cluster' -%}
define hostgroup{
hostgroup_name  {{host['host_name']}}
alias           {{host['alias']}}
}
{%- endif %}

define host{
use             {{host['use']}}
host_name       {{host['host_name']}}
alias           {{host['alias']}}
address         {{host['address']}}
{% if host['check_command'] != "" -%}
check_command   {{host['check_command']}}
{% endif -%}
{% if host['hostgroups'] != "" -%}
hostgroups      {{host['hostgroups']}}
{% endif -%}
}

{% for service in host['host_services'] %}
define service{
{%- for key, value in service.iteritems() %}
{{ key.ljust(20) }}   {{ value }}
{%- endfor %}
}
{% endfor %}