Effective June 19, 2017, support for the Ravello cloud services will transition to My Oracle Support (MOS) and the Oracle support hotlines and will no longer be provided through the Ravello Support portal. Please watch for communications being sent to commercial customers via email about the Support transition.
For more info: Visit our Customer Training page

User Data Script Examples

It is possible to add user data scripts to be ran during cloud init of a VM when it first starts.

To add your own scripts to a given VM, make sure that cloud init is installed on the VM, and then do the following:

  1. Open the VM Editor for the given VM.
  2. Select the “configuration management” tab.
  3. Check the box at the top that states that cloud init is installed on the VM.
  4. Add your script to the user data section below. 

Here are some examples of scripts that can be added as user data:

Example #1

#!/bin/sh
echo ‘my_script' > /tmp/my_script

Example #2

#cloud-config
ssh_import_id: [smoser]
apt_sources:
- source: "ppa:smoser/ppa”
Have more questions? Submit a request

Comments

Powered by Zendesk