kolla-ansible/ansible/roles/opendaylight/templates/module-shards.conf.j2
Marcus G K Williams 57496c4147 Add OpenDaylight role
Adds role for OpenDaylight deploy.

Change-Id: I1e697ea4d3f33aab4b0f55863a377b39eda8f609
Co-Authored-By: Mauricio Lima <mauriciolimab@gmail.com>
Co-Authored-By: Jiri Prokes <jirix.x.prokes@intel.com>
Co-Authored-By: Eduardo Gonzalez <dabarren@gmail.com>
Partially-Implements: blueprint opendaylight-support
2017-08-03 07:39:38 -07:00

60 lines
1.6 KiB
Django/Jinja

module-shards = [
{
name = "default"
shards = [
{
name="default"
replicas = [
{% for host in groups['opendaylight'] %}
"{{ hostvars[host]['ansible_hostname'] }}"{% if not loop.last %},
{% endif %}
{% endfor %}
]
}
]
},
{
name = "topology"
shards = [
{
name="topology"
replicas = [
{% for host in groups['opendaylight'] %}
"{{ hostvars[host]['ansible_hostname'] }}"{% if not loop.last %},
{% endif %}
{% endfor %}
]
}
]
},
{
name = "inventory"
shards = [
{
name="inventory"
replicas = [
{% for host in groups['opendaylight'] %}
"{{ hostvars[host]['ansible_hostname'] }}"{% if not loop.last %},
{% endif %}
{% endfor %}
]
}
]
},
{
name = "toaster"
shards = [
{
name="toaster"
replicas = [
{% for host in groups['opendaylight'] %}
"{{ hostvars[host]['ansible_hostname'] }}"{% if not loop.last %},
{% endif %}
{% endfor %}
]
}
]
}
]