7bd82ddd70
We need to perform json encoding on these values because they may contain characters like newlines or quotes, etc. Change-Id: I84a17a97e7a245c92e7d91c85ce86277aef22d2e
21 lines
435 B
Django/Jinja
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 }}"
|
|
}
|