bifrost/playbooks/roles/bifrost-configdrives-dynamic/templates/openstack_meta_data.json.j2
Gregory Haynes 7bd82ddd70 Encode user-supplied metadata as json
We need to perform json encoding on these values because they may
contain characters like newlines or quotes, etc.

Change-Id: I84a17a97e7a245c92e7d91c85ce86277aef22d2e
2015-08-07 16:34:59 +00:00

21 lines
435 B
Django/Jinja

{
"availability_zone": "",
{% if write_interfaces_file | bool == true %}
"files": [
{
"content_path": "/content/0000",
"path": "/etc/network/interfaces"
}
],
{% else %}
"files": [],
{% endif %}
"hostname": {{ name|to_json }},
"name": {{ name|to_json }},
"meta": {},
"public_keys": {
"mykey": {{ ssh_public_key|to_json }}
},
"uuid": "{{ uuid }}"
}