Skip to content

Instantly share code, notes, and snippets.

@pratikmallya
Last active August 29, 2015 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pratikmallya/3af2a23f46ae820db72c to your computer and use it in GitHub Desktop.
Save pratikmallya/3af2a23f46ae820db72c to your computer and use it in GitHub Desktop.
heat_template_version: 2014-10-16
description: |
Creating Rackspace cloud server with user_data.
resources:
test_server:
type: "OS::Nova::Server"
properties:
name: test-server
admin_pass: password1
flavor: 2 GB General Purpose v1
image: Debian 7 (Wheezy) (PVHVM)
user_data_format: RAW
user_data: |
#!/bin/bash -x
echo "hello world" > /root/hello-world.txt
signal_handle:
type: "OS::Heat::SwiftSignalHandle"
outputs:
server_ip:
value:
get_attr: [test_server, accessIPv4]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment