Cloud-init

Cloud-init handles early initialization of a cloud instance. More information is available at https://cloudinit.readthedocs.io/en/latest/.

Cloud-init is enabled by default. It can be disabled after the first boot using the following configuration. At the next reboot, cloud-init won’t be called.

vsr running # system cloud-init
vsr running cloud-init# enabled false
vsr running cloud-init# commit

To display cloud-init state:

vsr running config# show state system cloud-init
cloud-init
   datasource "DataSourceNoCloud [seed=/dev/sr0][dsmode=local]"
   enabled true
   ..

The same configuration can be made using this NETCONF XML configuration:

vsr running config# show config xml absolute system cloud-init
<config xmlns="urn:6wind:vrouter">
  <system xmlns="urn:6wind:vrouter/system">
    <cloud-init xmlns="urn:6wind:vrouter/system/cloud-init">
      <datasource>DataSourceNoCloud [seed=/dev/sr0][dsmode=local]</datasource>
      <enabled>true</enabled>
    </cloud-init>
  </system>
</config>

See also

The command reference for details.