Posts

Showing posts from 2019

Openstack HOT, automatically setup static IP address to instance

It is possible to set up static IP using Openstack HOT (Heat Orchestration template), but it need to have 2 network attached. First interface to retrieve setting from cloud init injection and second interface is the one that will be use as main interface. First interface is local network that connected to internet. After instance is created, detach first interface with local network and then reboot the instance. After that, we can ssh to the server using the static IP address. Basically, this HOT, create instance with 2 interface and then change the interface configuration using script defined in the runcmd section. Below is the HOT content.