Skip to content

Instantly share code, notes, and snippets.

@BeenzSyed
Created June 12, 2015 17:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save BeenzSyed/ef6cca5e8f37176c270c to your computer and use it in GitHub Desktop.
Save BeenzSyed/ef6cca5e8f37176c270c to your computer and use it in GitHub Desktop.
heat_template_version: '2013-05-23'
outputs:
public_ip:
description: public IP address of the deployed compute instance
value:
get_attr: [compute_instance, accessIPv4]
parameters:
count: {type: number}
flavor: {type: string}
image: {type: string}
name: {default: CoreOS-Stack, description: Name of booted CoreOS machine, type: string}
resources:
compute_instance:
properties:
config_drive: 'true'
flavor: {get_param: flavor}
image: {get_param: image}
name: {get_param: name}
user_data:
str_replace:
params:
count: {get_param: count}
wc_notify:
get_attr: [wait_handle, curl_cli]
template: '#!/bin/bash -x
# Invoke the container
wget "https://storage101.dfw1.clouddrive.com/v1/MossoCloudFS_938203/solum_du/java_operator_perf_test-20150609t051647164500885-3e0be78af714954f68b38b0d121cae64ac55faa1?temp_url_sig=5add34874502eaef3d428cba2c43aed8fe76b606&temp_url_expires=1434431880"
--output-document=938203-java_operator_perf_test-20150609t051647164500885-3e0be78af714954f68b38b0d121cae64ac55faa1
docker load < 938203-java_operator_perf_test-20150609t051647164500885-3e0be78af714954f68b38b0d121cae64ac55faa1
docker run -p 80:80 -d 938203-java_operator_perf_test-20150609t051647164500885-3e0be78af714954f68b38b0d121cae64ac55faa1
wc_notify --data-binary ''{"status": "SUCCESS"}'''
user_data_format: RAW
type: OS::Nova::Server
wait_handle: {type: 'OS::Heat::SwiftSignalHandle'}
wait_on_server:
properties:
count: 1
handle: {get_resource: wait_handle}
timeout: 600
type: OS::Heat::SwiftSignal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment