-
Notifications
You must be signed in to change notification settings - Fork 17
/
ACS::ECS::InstallAegisAgent.json
106 lines (106 loc) · 2.55 KB
/
ACS::ECS::InstallAegisAgent.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
{
"FormatVersion": "OOS-2019-06-01",
"Description": {
"en": "Install aegis agent",
"zh-cn": "安装Aegis插件",
"name-en": "ACS::ECS::InstallAegisAgent",
"name-zh-cn": "安装egis插件"
},
"Parameters": {
"regionId": {
"Description": {
"en": "The ID of region",
"zh-cn": "地域ID"
},
"Type": "String",
"Default": "{{ ACS::RegionId }}"
},
"instanceId": {
"Description": {
"en": "The ID of ECS instance",
"zh-cn": "ECS实例ID"
},
"Type": "String"
}
},
"Tasks": [
{
"Name": "getUuid",
"Action": "ACS::ExecuteAPI",
"Description": {
"en": "Get uuid by ECS instance",
"zh-cn": "获取ECS对应UUID"
},
"Properties": {
"Service": "SAS",
"API": "DescribeCloudCenterInstances",
"Parameters": {
"RegionId": "{{ regionId }}",
"Criteria": "[{\"name\": \"instanceId\",\"value\":\"{{ instanceId }}\"}]"
}
},
"Outputs": {
"Uuid": {
"Type": "String",
"ValueSelector": ".Instances[].Uuid"
}
}
},
{
"Name": "installAegisAgent",
"Action": "ACS::ExecuteAPI",
"Description": {
"en": "Install aegis agent",
"zh-cn": "安装安骑士客户端"
},
"Properties": {
"Service": "SAS",
"API": "OperateAgentClientInstall",
"Parameters": {
"RegionId": "{{ regionId }}",
"Uuids": "{{ getUuid.Uuid }}"
}
},
"Outputs": {
"RecordId": {
"Type": "String",
"ValueSelector": ".AegisCelintInstallResposeList[].RecordId"
}
}
},
{
"Name": "waitInstallResult",
"Action": "ACS::WaitFor",
"Description": {
"en": "Wait for agent install success",
"zh-cn": "等待插件安装完成"
},
"Retries": 15,
"DelayType": "Constant",
"Delay": 20,
"Properties": {
"Service": "SAS",
"API": "DescribeAgentInstallStatus",
"Parameters": {
"Uuids": "{{ getUuid.Uuid }}"
},
"PropertySelector": "AegisClientInvokeStatusResponseList[].ResuleCode",
"DesiredValues": [
"0"
],
"NotDesiredValues": [],
"StopRetryValues": [
"1008",
"2"
]
},
"Outputs": {
"invocationOutput": {
"Type": "String",
"ValueSelector": ".AegisClientInvokeStatusResponseList[].Message"
}
},
"BackOff": 2
}
]
}