Created
June 11, 2014 11:45
-
-
Save chemikadze/c22b9079cd202483fe9f 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
launch: | |
steps: | |
provision-do: | |
action: provisionVms | |
parameters: | |
jcloudsNodeNamePrefix: test | |
roleName: cloud | |
imageId: us-east-1/ami-f666929e | |
hardwareId: m1.medium | |
vmIdentity: Administrator | |
providerSettings: | |
userData: | |
| | |
<powershell> | |
C:\cygwin64\bin\bash.exe --login -c "mkdir ~/.ssh; curl 169.254.169.254/latest/meta-data/public-keys/0/openssh-key > ~/.ssh/authorized_keys" | |
</powershell> | |
# SSHD need some time to kick in | |
provision: | |
action: wait | |
precedingPhases: [provision-do] | |
parameters: | |
delay: 6 minutes | |
check1: | |
action: execrun | |
precedingPhases: [provision] | |
parameters: | |
roles: [cloud] | |
command: | |
- echo 'Who needs WinRM when we have THIS?' > /tmp/test.txt | |
check2: | |
action: execrun | |
precedingPhases: [check1] | |
parameters: | |
roles: [cloud] | |
command: | |
- cat /tmp/test.txt | |
output: | |
stdout: stdout | |
return: | |
stdout: | |
value: "{$.stdout}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment