generated from aliyun-computenest/quickstart-demo
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
zhaoyu.zhaoyu
committed
Nov 10, 2023
1 parent
9af8d43
commit 5ac7e62
Showing
6 changed files
with
517 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
Service: | ||
RegionId: cn-hangzhou | ||
DeployType: ros | ||
TenantType: SingleTenant | ||
DeployMetadata: | ||
ServiceInstanceNameRule: | ||
Prefix: mysql | ||
SupplierDeployMetadata: | ||
RoleName: ${RoleName} | ||
SupplierTemplateConfigs: | ||
- Name: 单机版 | ||
Url: 'templates/template.yaml' | ||
PredefinedParameters: | ||
- Name: 低配版 | ||
Parameters: | ||
EcsInstanceType: ecs.c6.large | ||
SlbInstanceType: slb.s1.small | ||
Type: Noraml | ||
OrderList: | ||
- EcsInstanceType | ||
- SlbInstanceType | ||
- Name: 基础版 | ||
Parameters: | ||
EcsInstanceType: ecs.c6.xlarge | ||
SlbInstanceType: slb.s1.small | ||
Type: Noraml | ||
OrderList: | ||
- EcsInstanceType | ||
- SlbInstanceType | ||
- Name: 高配版 | ||
Parameters: | ||
EcsInstanceType: ecs.c6.2xlarge | ||
SlbInstanceType: slb.s3.small | ||
Type: Noraml | ||
OrderList: | ||
- EcsInstanceType | ||
- SlbInstanceType | ||
HiddenParameterKeys: | ||
- EcsIntanceType | ||
- SlbInstanceType | ||
- VpcId | ||
- VSwitchId | ||
ParameterMappings: | ||
- ParameterKey: RegionId | ||
ParameterMappingKeys: | ||
- VpcId | ||
ParameterValueMapping: | ||
cn-hangzhou: | ||
Parameters: | ||
VpcId: ${VpcId} | ||
ParameterMappings: | ||
- ParameterKey: ZoneId | ||
ParameterMappingKeys: | ||
- VSwitchId | ||
ParameterValueMapping: | ||
${ZoneId}: | ||
Parameters: | ||
VSwitchId: ${VSwitchId} | ||
FileArtifactRelation: | ||
'{{ computenest::file::MySQL }}': | ||
ArtifactId: ${Artifact.Artifact_1.ArtifactId} | ||
ArtifactVersion: ${Artifact.Artifact_1.ArtifactVersion} | ||
TemplateConfigs: | ||
- Name: 单机版 | ||
Url: templates/parameters.yaml | ||
AllowedRegions: | ||
- cn-hangzhou | ||
PredefinedParameters: | ||
- Name: 低配版 | ||
Parameters: | ||
EcsInstanceType: ecs.c6.large | ||
SlbInstanceType: slb.s1.small | ||
Type: Noraml | ||
OrderList: | ||
- EcsInstanceType | ||
- SlbInstanceType | ||
- Name: 基础版 | ||
Parameters: | ||
EcsInstanceType: ecs.c6.xlarge | ||
SlbInstanceType: slb.s1.small | ||
Type: Noraml | ||
OrderList: | ||
- EcsInstanceType | ||
- SlbInstanceType | ||
- Name: 高配版 | ||
Parameters: | ||
EcsInstanceType: ecs.c6.2xlarge | ||
SlbInstanceType: slb.s3.small | ||
Type: Noraml | ||
OrderList: | ||
- EcsInstanceType | ||
- SlbInstanceType | ||
NetworkMetadata: | ||
EnablePrivateVpcConnection: true | ||
PrivateVpcConnectionMode: PrivateLink | ||
PrivateVpcConnectionType: DynamicTemplate | ||
PrivateVpcConnections: | ||
- Name: default | ||
NetworkDynamicTemplateSource: TEMPLATE_RESOURCE | ||
NetworkDynamicTemplateResourceType: SLB | ||
DynamicTemplateParameterKey: Slb | ||
Payer: Endpoint | ||
ServiceType: managed | ||
ServiceInfo: | ||
Locale: zh-CN | ||
ShortDescription: mysql demo | ||
Image: 'icons/service_logo.jpg' | ||
Name: MySQL托管版beta1 | ||
ShareType: Public | ||
ApprovalType: Manual | ||
Artifact: | ||
Artifact_1: | ||
ArtifactType: File | ||
ArtifactName: MySQL | ||
Description: MySQL | ||
ArtifactProperty: | ||
RegionId: cn-hangzhou | ||
Url: 'artifacts/mysql-community-release-el6-5.noarch.rpm' |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
ROSTemplateFormatVersion: '2015-09-01' | ||
# 定义参数 | ||
Parameters: | ||
RoleName: | ||
Type: String | ||
AssociationProperty: ALIYUN::RAM::Service::Role | ||
AssociationPropertyMetadata: | ||
Service: supplier.computenest.aliyuncs.com | ||
Description: 请前往RAM控制台创建角色,角色需拥有上述模板定义的资源所需的创建权限。<a href='https://help.aliyun.com/zh/compute-nest/create-a-compute-nest-ram-role-and-grant-permissions-to-the-role' target='_blank'><b> 查看文档</b><font color='blue'></a> | ||
# 可用区 | ||
ZoneId: | ||
Type: String | ||
AssociationProperty: ALIYUN::ECS::Instance:ZoneId | ||
Label: | ||
en: VSwitch Available Zone | ||
zh-cn: 可用区 | ||
VpcId: | ||
AssociationProperty: ALIYUN::ECS::VPC::VPCId | ||
Type: String | ||
Label: | ||
en: VPC ID | ||
zh-cn: 专有网络VPC实例ID | ||
# 交换机实例ID | ||
VSwitchId: | ||
AssociationProperty: ALIYUN::ECS::VSwitch::VSwitchId | ||
AssociationPropertyMetadata: | ||
VpcId: ${VpcId} | ||
ZoneId: ${ZoneId} | ||
Type: String | ||
Label: | ||
en: VSwitch ID | ||
zh-cn: 交换机实例ID | ||
Metadata: | ||
ALIYUN::ROS::Interface: | ||
# 定义资源分组,创建服务实例时,同一分组的参数分布在一起 | ||
ParameterGroups: | ||
- Parameters: | ||
- RoleName | ||
Label: | ||
en: Basic Configuration | ||
zh-cn: 基础配置 | ||
- Parameters: | ||
- ZoneId | ||
- VpcId | ||
- VSwitchId | ||
Label: | ||
en: Network Configuration | ||
zh-cn: 网络配置 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
ROSTemplateFormatVersion: "2015-09-01" | ||
Parameters: | ||
# 可用区 | ||
ZoneId: | ||
Type: String | ||
AssociationProperty: ALIYUN::ECS::Instance:ZoneId | ||
Label: | ||
en: VSwitch Available Zone | ||
zh-cn: 可用区 | ||
# 数据库root账户密码 | ||
Password: | ||
# 查询该参数时只输出星号(*) | ||
NoEcho: true | ||
Type: String | ||
Description: | ||
en: 'Database root account passwor, 8-32 characters, including uppercase and lowercase letters, numbers and special symbols (including: !@#$%^&*-+=_).' | ||
zh-cn: 数据库root账户密码,长度8-32个字符,可包含大小字母、数字及特殊符号(包含:!@#$%^&*-+=_)。 | ||
Label: | ||
en: Root Account Password | ||
zh-cn: 数据库root账户密码 | ||
ConstraintDescription: | ||
en: '8-32 characters, including uppercase and lowercase letters, numbers and special symbols (including: !@#$%^&*-+=_).' | ||
zh-cn: 8-32个字符,可包含大小字母、数字及特殊符号(包含:!@#$%^&*-+=_)。 | ||
MinLength: '8' | ||
MaxLength: '32' | ||
AssociationProperty: ALIYUN::ECS::Instance::Password | ||
Metadata: | ||
ALIYUN::ROS::Interface: | ||
# 定义资源分组,创建服务实例时,同一分组的参数分布在一起 | ||
ParameterGroups: | ||
- Parameters: | ||
- Password | ||
Label: | ||
en: Basic Configuration | ||
zh-cn: 基础配置 | ||
- Parameters: | ||
- ZoneId | ||
Label: | ||
en: Network Configuration | ||
zh-cn: 网络配置 |
Oops, something went wrong.