cloud-init and static networking

asked 2016-12-23 15:06:26 -0500

yyzkevin gravatar image

I have some networks/subnets which cannot have dhcp enabled, and I need to use cloud-init to configure static networking. I am using config-drive and I do see the network_data.json in the image, however no network configuration is done by cloud-init, it installs private keys and does any other tasks that may have been included but no network setup.

Before I re-invent any wheels here, should cloud-init be able to do the network configuration by itself from this, or is it normal that I need to write my own first-time script to embed in my image which will look for the config-drive datastore and pull out the info as required etc.

I have tried this on centos6/7

edit retag flag offensive close merge delete