-
-
Save pratikmallya/e1419854b3476e203ca8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: {default: 1, type: number} | |
flavor: {default: 512MB Standard Instance, type: string} | |
image: {default: 7fd88211-ce43-41bf-9a85-e73df4066581, 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