compass-adapters/ansible/roles/ceph-config/templates/create_monmap.j2

6 lines
180 B
Django/Jinja

monmaptool --create --clobber --fsid {{ ceph_fsid.stdout }}
{%- for host in groups['ceph_mon']%}
--add {{host}} {{ ip_settings[host].mgmt.ip }}:6789
{%- endfor %}
/tmp/monmap