Hello,
We (NetworkManager) are working on a tool that should help configuring
NetworkManager in cloud.
This is for example for configuring the secondary IP addresses on
AWS/EC2 ([1], [2])
[1]
https://aws.amazon.com/premiumsupport/knowledge-center/ec2-centos-rhel-se...
[2]
https://aws.amazon.com/premiumsupport/knowledge-center/ec2-ubuntu-seconda...
It's inspired by and serves a similar purpose as SuSE's cloud-netconfig
([3], [4]) and ec2-net-utils package on Amazon Linux ([5]).
[3]
https://www.suse.com/c/multi-nic-cloud-netconfig-ec2-azure/
[4]
https://github.com/SUSE-Enceladus/cloud-netconfig
[5]
https://github.com/aws/ec2-net-utils
The tool can be triggered via a systemd.timer and/or a NetworkManager
dispatcher scripts. Then it fetches meta data from the Instance
Metadata Service (thereby detecting whether it runs in a cloud
environment). Finally it configures the networking using
NetworkManager.
Currently it only supports EC2 and IPv4. But if the tool shows to be
useful, it could be extended to also support other cloud providers
(Azure).
There is a merge request on review ([6], [7]). There is a bit of a
hurry to get this merged, because it should make the cut for the next
NetworkManager release. So, I will merge it soon to master, albeit
still in an experimental state.
[6]
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/merge_reques...
[7]
https://bugzilla.redhat.com/show_bug.cgi?id=1642461
The plan is that cloud images could install and enable the tool, so you
boot a (Fedora) image and networking would just work.
Is there interrest in something like this? Any comments, questions?
best,
Thomas