-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcluster.json.mustache
52 lines (52 loc) · 1.34 KB
/
cluster.json.mustache
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
{
"name":{{cluster.name}},
"description":{{cluster.description}},
"vxnet":{{cluster.vxnet}},
"backup_policy": "device",
"incremental_backup_supported": true,
"advanced_actions": ["change_vxnet", "scale_horizontal"],
"nodes":[
{
"role":"replica",
"container":{
"type":"kvm",
"zone":"sh1",
"image":"img-wdifebpo"
},
"user_access": true,
"instance_class":{{cluster.replica.instance_class}},
"count":{{cluster.replica.count}},
"cpu":{{cluster.replica.cpu}},
"memory":{{cluster.replica.memory}},
"volume":{
"size":{{cluster.replica.volume_size}},
"mount_point":"/data",
"filesystem":"xfs"
},
"services": {
"init": {
"post_start_service": true,
"cmd": "/opt/mongodb/app/scripts/node-init.sh"
},
"start": {
"cmd": "/opt/mongodb/app/scripts/node-start.sh"
},
"stop": {
"cmd": "/opt/mongodb/app/scripts/node-stop.sh"
},
"scale_out": {
"cmd": "/opt/mongodb/app/scripts/node-scaleout.sh"
},
"scale_in": {
"cmd": "/opt/mongodb/app/scripts/node-scalein.sh"
},
"destroy": {
"cmd": "/opt/mongodb/app/scripts/node-destroy.sh"
}
}
}],
"env": {
"rsname": {{env.rsname}},
"port": {{env.port}}
}
}