Advertisement
FamiHug

lackendif

Feb 26th, 2013
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.43 KB | None | 0 0
  1. {% for i in pillar['ceph'] %}
  2.     [{{ pillar[i] }}]
  3.     {% if i.startswith('mon') %}
  4.         host = {{ pillar['ceph'][i]['host'] }}
  5.         mon addr = {{ pillar['ceph'][i]['ip']] }}:6789
  6.     {% elif i.startswith('osd') %}
  7.         host = {{ pillar['ceph'][i]['host'] }}
  8.         devs = {{ pillar['ceph'][i]['devs'] }}
  9.     {% elif i.startswith('mds') %}
  10.         host = {{ pillar['ceph'][i]['host'] }}
  11.     {% endif %}
  12. {% endfor %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement