Skip to content

Instantly share code, notes, and snippets.

@indykish
Created October 22, 2015 05:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save indykish/8276366c2732328c9217 to your computer and use it in GitHub Desktop.
Save indykish/8276366c2732328c9217 to your computer and use it in GitHub Desktop.
The base declarative directive of megam cloud assembly json which illustrates that an app in git/image, docker git/image, service can be launched.
{
"name":"assembly_name",
"components":[
"component_1"
],
"tosca_type":"tosca.torpedo.coreos",
"inputs":[
{
"key":"domain",
"value":"megambox.com"
},
{
"sshkey":"hokeydockey"
},
{
"provider":"one/docker"
},
{
"ram":"258"
},
{
"cpu":"9990"
}
],
"outputs":[
{
"publicip":"102.92.63.52"
},
{
"privateip":"192.168.2.1"
},
{
"nodeip":"megnode1.megam.io"
}
],
"status":"deploying, creating, launched, bootstrapping, created, stateup, running, error",
"policies":[
{
"name":"placement policy",
"type":"colocated",
"members":[
"apache2-megam",
"rails2-petstore"
]
},
{
"name":"HA policy",
"type":"ha",
"members":[
"apache2-megam"
]
},
{
"name":"CPU scaling for apache2 server",
"type":"scaling",
"members":[
"apache2-megam"
],
"rules":[
{
"name":"cpu load",
"type":"cpu",
"cpu_threshhold":"80"
},
{
"name":"cpu load",
"type":"mem",
"mem_threshhold":"80"
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment