Skip to content

Instantly share code, notes, and snippets.

/j

Created November 8, 2014 10:47
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 anonymous/3c8173749ba9aed7ab96 to your computer and use it in GitHub Desktop.
Save anonymous/3c8173749ba9aed7ab96 to your computer and use it in GitHub Desktop.
{
"DOCUMENT": {
"NAME": "my_service",
"TEMPLATE": {
"BODY": {
"description": "",
"custom_attrs": {
"INTERNAL_NET": "M|vnet_id|Private Network",
"PUBLIC_NET": "M|vnet_id|Public Network"
},
"ready_status_gate": true,
"shutdown_action": "shutdown-hard",
"roles": [
{
"vm_template_contents": "NIC=[NETWORK_ID=\"$INTERNAL_NET\"]\nNIC=[NETWORK_ID=\"$PUBLIC_NET\"]\n",
"cardinality": 1,
"vm_template": 0,
"elasticity_policies": [
],
"name": "frontend",
"scheduled_policies": [
]
},
{
"vm_template_contents": "NIC=[NETWORK_ID=\"$INTERNAL_NET\"]\n",
"cardinality": 2,
"parents": [
"frontend"
],
"vm_template": 0,
"elasticity_policies": [
],
"name": "worker",
"scheduled_policies": [
]
}
],
"deployment": "straight",
"name": "my_service"
}
},
"GNAME": "oneadmin",
"GID": "0",
"TYPE": "101",
"UNAME": "oneadmin",
"PERMISSIONS": {
"OTHER_A": "0",
"OTHER_M": "0",
"OTHER_U": "0",
"OWNER_A": "0",
"OWNER_M": "1",
"OWNER_U": "1",
"GROUP_A": "0",
"GROUP_M": "0",
"GROUP_U": "0"
},
"UID": "0",
"ID": "0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment