Report this

What is the reason for this report?

Cloud Init not configured in Ubuntu 14.04 LTS?

Posted on 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


This textbox defaults to using Markdown to format your 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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.