forked from absidish/cluster-app3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSubutai.json
87 lines (87 loc) · 1.9 KB
/
Subutai.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{
"name": "${environmentName}",
"description": "test",
"version": "1.0.0",
"author": "https://github.com/absidish",
"containers": [
{
"hostname": "db",
"template": "mysql@280dcda67a67d071970ff838d0331c33c0c04710",
"peer-criteria": "gr1",
"size": "${dbtype}",
"peer-layout": "d1"
},
{
"hostname": "web",
"template": "apache",
"peer-criteria": "gr1",
"size": "${webtype}",
"peer-layout": "d2"
}
],
"peer-layouts": [
{
"name": "d1",
"peer-count": "1",
"container-per-peer": "3"
},
{
"name": "d2",
"peer-count": "1",
"container-per-peer": "1"
}
],
"peer-criteria": [
{
"name": "gr1"
}
],
"ansible-configuration": {
"source-url": "https://github.com/absidish/cluster-app3/archive/master.zip",
"ansible-playbook": "main.yml",
"extra-vars": [
],
"groups": [
{
"name": "monitoring_servers",
"python-interpreter": "/usr/bin/python3",
"hostnames": [
"db"
]
},
{
"name": "web_servers",
"python-interpreter": "/usr/bin/python3",
"hostnames": [
"web"
]
}
]
},
"user-variables": {
"environmentName": {
"description": "Enter the environment name",
"type": "string",
"default": "wp",
"validation": "[a-zA-Z0-9]+"
},
"peerCount": {
"description": "peer count",
"type": "int",
"default": "3",
"validation": "\\d+"
},
"dbtype": {
"description": "You can set TINY,SMALL,MEDIUM,LARGE,HUGE",
"type": "enum",
"default": "SMALL",
"validation": "TINY,SMALL,MEDIUM,LARGE,HUGE"
},
"webtype": {
"description": "You can set TINY,SMALL,MEDIUM,LARGE,HUGE",
"type": "enum",
"default": "SMALL",
"validation": "TINY,SMALL,MEDIUM,LARGE,HUGE"
}
}
}