forked from aliyun/ros-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cluster.yml
89 lines (89 loc) · 1.89 KB
/
cluster.yml
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
ROSTemplateFormatVersion: '2015-09-01'
Description:
zh-cn: 创建GWS集群与实例,配置网络、存储、安全策略及实例类型,支持公网访问与桌面工作模式。
en: Create GWS clusters and instances, configure networking, storage, security policies,
and instance types, supporting public network access and desktop workspace modes.
Parameters:
Name:
Type: String
Default: mytest
Policy:
Type: Json
Default:
LocalDrive: 'off'
UsbRedirect: 'off'
Clipboard: 'off'
Watermark: 'off'
VpcId:
Type: String
VSwitchId:
Type: String
SystemDiskCategory:
Type: String
Default: cloud_ssd
AllowedValues:
- cloud_ssd
- cloud_essd
SystemDiskSize:
Type: Number
Default: 100
MinValue: 40
MaxValue: 500
AllocatePublicAddress:
Type: Boolean
Default: true
InstanceType:
Type: String
Default: ecs.t6-c1m1.large
ImageId:
Type: String
Default: m-bp15o3er42o5uop4rxuo
Resources:
Cluster:
Type: ALIYUN::GWS::Cluster
Properties:
VpcId:
Ref: VpcId
VSwitchId:
Ref: VSwitchId
Policy:
Ref: Policy
ClusterType: gws.s1.standard
Name:
Ref: Name
Instance:
Type: ALIYUN::GWS::Instance
Properties:
VSwitchId:
Ref: VSwitchId
ImageId:
Ref: ImageId
ClusterId:
Ref: Cluster
SystemDiskSize:
Ref: SystemDiskSize
InstanceChargeType: PostPaid
AllocatePublicAddress:
Ref: AllocatePublicAddress
SystemDiskCategory:
Ref: SystemDiskCategory
Name: String
InstanceType:
Ref: InstanceType
WorkMode: Desktop
Outputs:
InstanceId:
Value:
Fn::GetAtt:
- Instance
- InstanceId
ClusterId:
Value:
Fn::GetAtt:
- Cluster
- ClusterId
Name:
Value:
Fn::GetAtt:
- Cluster
- Name