Skip to content

Instantly share code, notes, and snippets.

@dornatsky
Last active December 14, 2015 13:08
Show Gist options
  • Save dornatsky/5091690 to your computer and use it in GitHub Desktop.
Save dornatsky/5091690 to your computer and use it in GitHub Desktop.
multi-line shell script
launch:
parameters:
- ip:
description: static ip address
default: ""
steps:
- grow:
action: provisionAmazonVm
parameters:
phase: provision
roleName: dummy
output:
ips: ips
- test:
action: execrun
parameters:
roles: [dummy]
phase: run
precedingPhases: [provision]
command:
- python
- "-c"
- |
for i in range(0,3):
print str(i) + ") Hi there!"
output:
out: stdout
return:
out:
value: ${out}
ips:
value: ${ips}
destroy:
steps:
- destroy:
action: compute.shrink-all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment