Ask Your Question

yyzkevin's profile - activity

2018-04-13 08:33:09 -0500 received badge  Popular Question (source)
2018-04-13 08:33:09 -0500 received badge  Notable Question (source)
2018-04-13 08:33:09 -0500 received badge  Famous Question (source)
2016-12-28 21:11:39 -0500 received badge  Enthusiast
2016-12-25 05:34:07 -0500 asked a question cloud-init and static networking

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