Question

Cloud Init not configured in Ubuntu 14.04 LTS?

  • Posted October 6, 2014

Love that userdata is finally available at DO! Awesome! but it looks like Cloud Init is not fully configured in Ubuntu 14.04 LTS. Check out /etc/cloud/cloud.cfg.disabled…

Pasting a Userify deployment works if prefaced with #! /bin/sh:

#! /bin/sh
curl -k "https://shim.userify.com/installer.sh" | api_id="i3WWxWoVkd4mcNhCenGbuZ" api_key="Ra3oNtcEb2TuMEQJeT65gQrqjghdo93WDyyJQSqxknPJn3KTno" /bin/sh

But a regular CloudInit command section is not executed:

#cloud-config

runcmd:
 - curl -k "https://shim.userify.com/installer.sh" | api_id="i3WWxWoVkd4mcNhCenGbuZ" api_key="Ra3oNtcEb2TuMEQJeT65gQrqjghdo93WDyyJQSqxknPJn3KTno" /bin/sh
Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi!

Glad you’ve found our new metadata service! We’re still finalizing what we want our default configuration to look like. Once that’s done, we’ll be providing documentation. For now though, you should be able to get runcmd working using a cloud-config file like:

#cloud-config
cloud_final_modules:
 - runcmd
 - scripts-user
runcmd:
 - touch /root/testfile