diff options
author | Christian Breunig <christian@breunig.cc> | 2023-05-09 19:26:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-09 19:26:15 +0200 |
commit | 70e476760a9c5b42a5d3f8647e3b4ac361472871 (patch) | |
tree | 0ecf5b97eebc149ac8d9c5dfcb350885cc9562cf /data | |
parent | 6a150eb26c97e41a66bfb693bfc0ad09c4f4fd2c (diff) | |
parent | 3c229a3646a58e47d4d69c011f82c45ef3bb3c77 (diff) | |
download | vyos-1x-70e476760a9c5b42a5d3f8647e3b4ac361472871.tar.gz vyos-1x-70e476760a9c5b42a5d3f8647e3b4ac361472871.zip |
Merge pull request #1978 from zdc/T5190-sagitta
cloud-init: T5190: Added Cloud-init pre-configurator
Diffstat (limited to 'data')
-rw-r--r-- | data/templates/system/cloud_init_networking.j2 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/data/templates/system/cloud_init_networking.j2 b/data/templates/system/cloud_init_networking.j2 new file mode 100644 index 000000000..52cce72f8 --- /dev/null +++ b/data/templates/system/cloud_init_networking.j2 @@ -0,0 +1,9 @@ +network: + version: 2 + ethernets: +{% for iface in ifaces_list %} + {{ iface['name'] }}: + dhcp4: true + match: + macaddress: "{{ iface['mac'] }}" +{% endfor %} |