Question

Cloud Init not configured in Ubuntu 14.04 LTS?

Posted October 6, 2014 5.6k views

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

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.

1 answer

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
Submit an Answer