AnsweredAssumed Answered

How can I configure a static IP with the cloud-init config with Portal EE?

Question asked by robbiej on May 26, 2017
Latest reply on Jun 3, 2017 by RemcoDekker

We been trying to modify the cloud-init configuration for Portal EE 4.0 to assign a static IP on first boot. Each attempt that has been successful in updating the IP address has resulted in blocking the remaining cloud-init scripts and, as a result, does not create any users. Is there a way to configure a static IP that doesn't break the cloud-init config? Below is a sample config of what is placed in the meta-data. Looks like version Cloud-init 0.7.5 is in use here. The internet has similar stories regarding Ubuntu and upstart, but don't seem to apply 1 to 1 to this Centos 7.2 image. Any thoughts or assistance would be appreciated.

 

instance-id: iid-local01
network-interfaces: |
  iface eth0 inet static
  address 10.10.10.2
  network 10.10.10.0
  netmask 255.255.255.0
  broadcast 10.0.0.255
  gateway 10.10.10.1
hostname: myhostname

Outcomes