bifrost/playbooks/roles/bifrost-configdrives-dynamic/templates/openstack_meta_data.json.j2
Julia Kreger edd5b67afc Switch to simple-init for network configuration
Bifrost defining and attempting to bake in configuration files
into configuration drives to allow initial configuration of
connectivity is a crazy idea.

Since the Openstack-infra folks have glean and simple-init, we
will utilize their tooling to provide greater flexibility across
operating systems.

Additionally, the ability to write out a simple debian style
interfaces config file has been retained, however off by default
as it is necessary for cirros testing.  In addition to this, the
ability for inventory based data to override the contents of the
network_info.json file.

Change-Id: Id85b18277b4d78acf418f63f046e39e889590719
Closes-Bug: 1463191
2015-07-14 08:31:34 -04:00

21 lines
417 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 }}",
"name": "{{ name }}",
"meta": {},
"public_keys": {
"mykey": "{{ ssh_public_key }}"
},
"uuid": "{{ uuid }}"
}