Setting static ip using cloud init does not work here

That’s what I believe as well. However, CentOS 7 is now running cloud-init v19.4 which supports network config. I’ll update the yaml file.