Last active
August 29, 2015 14:04
-
-
Save itayw/51ef2643699ce3b7ee1f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
{ | |
"name": "Create an Application [node-demo-or]", | |
"status": "pending", | |
"steps": [ | |
{ | |
"name": "Step 1: Create VM [node-demo-or]", | |
"recipe": "vm/gce_addinstance", | |
"args": { | |
"id": "node-demo-or", | |
"name": "node-demo-or", | |
"datacenter": "europe-west1-b", | |
"image": "ubuntu-1404-joola-box-063-20140717-3", | |
"flavor": "n1-standard-1" | |
} | |
}, | |
{ | |
"name": "Step 2: Wait for SSH [node-demo-or]", | |
"recipe": "vm/waitforssh", | |
"args": { | |
"ip": "!{external_ip}", | |
"timeout": "180000" | |
} | |
}, | |
{ | |
"name": "Step 3: Prepare VM System [node-demo-or]", | |
"recipe": "vm/sysprep", | |
"args": { | |
"ip": "!{external_ip}" | |
} | |
}, | |
{ | |
"name": "Step 4: Bootstrap VM [node-demo-or]", | |
"recipe": "chef/bootstrap", | |
"args": { | |
"id": "!{id}", | |
"name": "!{name}", | |
"role": "joola-none", | |
"internal_ip": "!{internal_ip}", | |
"external_ip": "!{external_ip}" | |
} | |
}, | |
{ | |
"name": "Step 5: Tag VM [node-demo-or]", | |
"recipe": "chef/tag", | |
"args": { | |
"id": "!{id}", | |
"name": "!{name}", | |
"type": "!{role}", | |
"internal_ip": "!{internal_ip}", | |
"external_ip": "!{external_ip}" | |
} | |
}, | |
{ | |
"name": "Step 6: Register VM with Router", | |
"recipe": "router/register", | |
"args": { | |
"ip": "!{external_ip}", | |
"qdn": "!{name}.app.joo.la" | |
} | |
}, | |
{ | |
"name": "Step 7: Configure VM as joola app [node-demo-or]", | |
"recipe": "joola/configure", | |
"args": { | |
"engine": "https://!{qdn}", | |
"APIToken":"apitoken-demo", | |
"master": "1234", | |
"reader": "12345", | |
"writer": "123456" | |
} | |
}, | |
{ | |
"name": "Step 8: Restart joola", | |
"recipe": "joola/restart", | |
"args": { | |
"ip": "!{external_ip}" | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment