forked from AmpereComputing/terraform-oci-ampere-a1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.yaml
172 lines (149 loc) · 4.23 KB
/
schema.yaml
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
title: "Ampere A1 VM Instances on OCI"
stackDescription: "Ampere A1 VM Instances on OCI"
schemaVersion: 0.0.1
version: "20230216"
locale: "en"
variableGroups:
- title: General Configuration
visible: false
variables:
- tenancy_ocid
- user_ocid
- fingerprint
- private_key_path
- title: Required Configuration
visible: true
variables:
- compartment_ocid
- availablity_domain_name
- admin_password
- show_advanced
- title: Network Optional Configuration
visible:
and:
- show_advanced
variables:
- oci_vcn_cidr_block
- oci_vcn_cidr_subnet
- title: Ampere A1 Optional Configuration
visible:
and:
- show_advanced
variables:
- instance_prefix
- oci_vm_count
- ampere_a1_vm_memory
- ampere_a1_cpu_core_count
variables:
show_advanced:
type: boolean
title: "Show advanced options?"
description: "Shows advanced options."
visible: true
default: false
tenancy_ocid:
type: oci:identity:tenancy:id
required: true
visibile: true
title: "Tenancy"
description: "Tenancy where your Ampere A1 instances will be deployed."
user_ocid:
type: oci:identity:user:id
required: true
visibile: true
title: "User"
description: "User for the OCI account for your Ampere A1 instances will be deployed."
fingerprint:
type: oci:identity:fingerprint
required: true
visibile: true
title: "Fingerprint"
description: "Fingerprint for the OCI account for your Ampere A1 instances will be deployed."
private_key_path:
type: string
visible: false
required: true
title: "Private SSH Key path"
description: "Path where your private SSH Key is stored."
oci_vcn_cidr_block:
type: string
visible: false
required: true
title: "OCI VCN CIDR Block"
description: "VCN CIDR Block where your Network subnet will reside."
pattern: "^(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]).(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]).(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]).(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\\/(3[0-2]|[1-2]?[0-9])$"
oci_vcn_cidr_subnet:
type: string
visible: false
required: false
pattern: "^(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]).(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]).(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]).(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\\/(3[0-2]|[1-2]?[0-9])$"
title: "OCI VCN CIDR Subnet"
description: "A CIDR subnet within the CIDR block for Ampere A1 deployments."
instance_prefix:
type: string
required: false
visible: false
title: "Instance Hostname Prefix"
description: "Type Instance Hostname Prefix."
oci_vm_count:
type: number
required: false
minimum: 1
maximum: 4
multipleOf: 1
default: 2
title: "OCI Free Tier Ampere A1 Instance Count"
description: "Choose number of OCPUs for Flex Shape."
visible: true
ampere_a1_vm_memory:
type: number
required: false
minimum: 1
maximum: 24
multipleOf: 1
default: 8
title: "Ampere A1 Instance Memory (GB)"
description: "Choose number GB for Ampere A1 Instance Memory."
visible: true
ampere_a1_cpu_core_count:
type: number
required: false
minimum: 1
maximum: 4
multipleOf: 1
default: 4
title: "Ampere A1 VM CPU Core Count"
description: "Choose number of Ampere A1 cores."
visible: true
cloud_init_template_file:
type: string
required: false
visible: true
title: "Cloud-init template file"
description: "Cloud-init metadata template for instance initialization"
outputs:
oci_ssh_private_key:
title: "OCI SSH Private Key"
displayText: "OCI SSH Private Key"
type: copyableString
visible: true
oci_ssh_public_key:
title: "OCI SSH Public Key"
displayText: "OCI SSH Public Key"
type: copyableString
visible: true
AmpereA1_PrivateIPs:
title: "Ampere A1 Private IPs"
displayText: "Ampere A1 Private IPs"
type: string
visible: true
AmpereA1_PublicIPs:
title: "Ampere A1 Public IPs"
displayText: "Ampere A1 Public IPs"
type: string
visible: true
AmpereA1_BootVolumeIDs:
title: "Ampere A1 Boot Volume IDs"
displayText: "Ampere A1 Boot Volume IDs"
type: string
visible: true