forked from aliyun/ros-templates
-
Notifications
You must be signed in to change notification settings - Fork 1
/
cluster.yml
113 lines (113 loc) · 2.45 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
ROSTemplateFormatVersion: '2015-09-01'
Description: EHPC Cluster resource example
Parameters:
BucketStorageClass:
Type: String
Default: Standard
VpcId:
Type: String
VSwitchId:
Type: String
AccessGroupName:
Type: String
EcsOrderComputeCount:
Type: Number
Default: 1
EcsOrderLoginInstanceType:
Type: String
Default: ecs.g6.large
BucketName:
Type: String
Default: mytest
ZoneId:
Type: String
BucketAccessControl:
Type: String
Default: public-read
Password:
Type: String
Resources:
AccessGroup:
Type: ALIYUN::NAS::AccessGroup
Properties:
AccessGroupType: Vpc
AccessGroupName:
Ref: AccessGroupName
FileSystem:
Type: ALIYUN::NAS::FileSystem
Properties:
StorageType: Capacity
ProtocolType: NFS
OssBucket:
Type: ALIYUN::OSS::Bucket
Properties:
BucketName:
Ref: BucketName
StorageClass:
Ref: BucketStorageClass
AccessControl:
Ref: BucketAccessControl
MountTarget:
Type: ALIYUN::NAS::MountTarget
Properties:
VpcId:
Ref: VpcId
VSwitchId:
Ref: VSwitchId
NetworkType: Vpc
AccessGroupName:
Ref: AccessGroup
FileSystemId:
Ref: FileSystem
AccessRule:
Type: ALIYUN::NAS::AccessRule
Properties:
SourceCidrIp: 0.0.0.0/0
AccessGroupName:
Ref: AccessGroup
Cluster:
Type: ALIYUN::EHPC::Cluster
Properties:
VSwitchId:
Ref: VSwitchId
ImageOwnerAlias: system
EcsOrderComputeCount:
Ref: EcsOrderComputeCount
EcsOrderLoginInstanceType:
Ref: EcsOrderLoginInstanceType
EcsOrderLoginCount:
Ref: EcsOrderComputeCount
EhpcVersion: 1.0.0
VolumeMountpoint:
Ref: MountTarget
EcsOrderManagerInstanceType:
Ref: EcsOrderLoginInstanceType
Name:
Fn::Join:
- '-'
- - Cluster
- Ref: ALIYUN::StackId
VolumeId:
Ref: FileSystem
EcsOrderComputeInstanceType:
Ref: EcsOrderLoginInstanceType
OsTag: CentOS_7.2_64
Password:
Ref: Password
DependsOn:
- AccessRule
- FileSystem
- MountTarget
Outputs:
MountTargetDomain:
Description: Mount point domain name
Value:
Fn::GetAtt:
- MountTarget
- MountTargetDomain
FileSystemId:
Description: ID of the file system created
Value:
Fn::GetAtt:
- FileSystem
- FileSystemId