jamieson
By:
jamieson

Cloud Init not configured in Ubuntu 14.04 LTS?

October 6, 2014 3.9k 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
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
Have another answer? Share your knowledge.