Skip to content

Commit c6a15a6

Browse files
committed
schema for ORM stack
1 parent 4ffa118 commit c6a15a6

File tree

2 files changed

+257
-1
lines changed

2 files changed

+257
-1
lines changed

outputs.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,6 @@ output "deploy_id" {
2929
output "deployed_to_region" {
3030
value = local.region_to_deploy
3131
}
32-
32+
output "dotnet_template_used" {
33+
value = var.dotnet_standard_type
34+
}

schema.yaml

Lines changed: 254 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,254 @@
1+
# Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
2+
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
3+
#
4+
5+
title: "ASP.Net WebApp Sample"
6+
description: "QuickStart on ASP.Net on Oracle Cloud Infrastructure"
7+
schemaVersion: 1.1.0
8+
version: "20190304"
9+
10+
source:
11+
type: quickstart
12+
logoUrl: data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2NCA2NCI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiM1YzJkOTE7fS5jbHMtMiwuY2xzLTN7ZmlsbDojZmZmO30uY2xzLTJ7b3BhY2l0eTowLjE7fS5jbHMtNHtmaWxsOiNmMmYyZjI7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5sb2dvX05FVGNvcmU8L3RpdGxlPjxjaXJjbGUgY2xhc3M9ImNscy0xIiBjeD0iMzIiIGN5PSIzMiIgcj0iMzIiLz48cGF0aCBjbGFzcz0iY2xzLTIiIGQ9Ik05LjgyLDlBMzIsMzIsMCwxLDAsNTUsNTQuMThaIi8+PHBhdGggY2xhc3M9ImNscy0zIiBkPSJNNy40LDM3LjI1YTEuMzUsMS4zNSwwLDAsMS0xLS40Miwx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jlhMy40OCwzLjQ4LDAsMCwxLTIuMDkuNTcsMi41NCwyLjU0LDAsMCwxLTItLjgyLDMuMzUsMy4zNSwwLDAsMS0uNzMtMi4zLDMuMjgsMy4yOCwwLDAsMSwuNzktMi4yOCwyLjU1LDIuNTUsMCwwLDEsMi0uODgsMi4yNiwyLjI2LDAsMCwxLDEuODIuNzYsMy4xOCwzLjE4LDAsMCwxLC42NCwyLjEyWm0tMS0uODFhMiwyLDAsMCwwLS40LTEuMjksMS4zNywxLjM3LDAsMCwwLTEuMS0uNDYsMS41NSwxLjU1LDAsMCwwLTEuMTUuNDksMi4yMSwyLjIxLDAsMCwwLS41OSwxLjI3WiIvPjwvc3ZnPg==
13+
14+
locale: "en"
15+
groupings:
16+
- title: "Basic Hidden"
17+
visible: false
18+
variables:
19+
- compartment_ocid
20+
- tenancy_ocid
21+
- region
22+
23+
- title: "General Configuration"
24+
variables:
25+
- num_instances
26+
27+
- title: "Optional Configuration"
28+
variables:
29+
- show_advanced
30+
- generate_public_ssh_key
31+
- public_ssh_key
32+
33+
- title: "Advanced Resource Options"
34+
variables:
35+
- use_only_always_free_elegible_resources
36+
37+
- title: "Advanced Resource Options - DotNet App Customization"
38+
variables:
39+
- dotnet_standard_type
40+
- dotnet_custom_text_for_standard_webapp
41+
42+
- title: "Advanced Resource Options - Load Balancer"
43+
variables:
44+
- lb_shape
45+
46+
- title: "Advanced Resource Options - Compute"
47+
variables:
48+
- instance_shape
49+
- image_operating_system
50+
- image_operating_system_version
51+
- instance_visibility
52+
53+
- title: "Extras Hidden"
54+
variables:
55+
- user_ocid
56+
- fingerprint
57+
- private_key_path
58+
- network_cidrs
59+
- dotnet_create_standard_webapp
60+
- dotnet_git_custom_webapp
61+
visible: false
62+
63+
variables:
64+
compartment_ocid:
65+
type: oci:identity:compartment:id
66+
required: true
67+
title: "Compartment"
68+
description: "The compartment in which to create compute instance(s) and ATP."
69+
70+
num_instances:
71+
type: enum
72+
enum:
73+
- "1"
74+
- "2"
75+
title: "Number of Instances"
76+
description: "Choose the number of compute instances to deploy."
77+
default: "2"
78+
required: true
79+
80+
show_advanced:
81+
type: boolean
82+
title: "Show advanced options?"
83+
description: "Shows advanced options, select your ssh key, and other advanced options."
84+
visible: true
85+
86+
generate_public_ssh_key:
87+
type: boolean
88+
title: "Auto-generate public ssh key?"
89+
description: "Auto-generate a public key and assign to the compute instances. Uncheck to provide your own public key or leave blank not to use any attach any key to the compute instance."
90+
visible:
91+
and:
92+
- show_advanced
93+
94+
public_ssh_key:
95+
type: oci:core:ssh:publickey
96+
title: "SSH Public Key"
97+
description: "The public SSH key for the key-pair that you want to use, if you wish to login to the instances over SSH."
98+
additionalProps:
99+
allowMultiple: true
100+
pattern: "((^(ssh-rsa AAAAB3NzaC1yc2|ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNT|ecdsa-sha2-nistp384 AAAAE2VjZHNhLXNoYTItbmlzdHAzODQAAAAIbmlzdHAzOD|ecdsa-sha2-nistp521 AAAAE2VjZHNhLXNoYTItbmlzdHA1MjEAAAAIbmlzdHA1Mj|ssh-ed25519 AAAAC3NzaC1lZDI1NTE5|ssh-dss AAAAB3NzaC1kc3)[0-9A-Za-z+\/]+[=]{0,3})( [^,]*)?)(,((ssh-rsa AAAAB3NzaC1yc2|ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNT|ecdsa-sha2-nistp384 AAAAE2VjZHNhLXNoYTItbmlzdHAzODQAAAAIbmlzdHAzOD|ecdsa-sha2-nistp521 AAAAE2VjZHNhLXNoYTItbmlzdHA1MjEAAAAIbmlzdHA1Mj|ssh-ed25519 AAAAC3NzaC1lZDI1NTE5|ssh-dss AAAAB3NzaC1kc3)[0-9A-Za-z+\/]+[=]{0,3})( [^,]*)?)*$"
101+
visible:
102+
and:
103+
- and:
104+
- show_advanced
105+
- not:
106+
- generate_public_ssh_key
107+
108+
use_only_always_free_elegible_resources:
109+
type: boolean
110+
title: "Use only always free eligible resources?"
111+
description: "*** Unchecking this may use options that are not included or supported by Always Free eligible resources."
112+
visible:
113+
and:
114+
- show_advanced
115+
116+
dotnet_standard_type:
117+
type: enum
118+
enum:
119+
- "webApp"
120+
- "blazorserver"
121+
title: "Select the DotNet type to be created"
122+
description: "WebApp creates the standard ASP.Net Core app. BlazorServer, creates sample with blazor pages."
123+
required: true
124+
visible:
125+
and:
126+
- show_advanced
127+
128+
dotnet_custom_text_for_standard_webapp:
129+
type: string
130+
title: "Custom Text to show on the Home Page"
131+
description: "Changes the standard Welcome message on the ASP.Net WebApp page."
132+
required: true
133+
visible:
134+
and:
135+
- show_advanced
136+
137+
lb_shape:
138+
type: enum
139+
enum:
140+
- "10Mbps-Micro"
141+
- "100Mbps"
142+
- "400Mbps"
143+
- "8000Mbps"
144+
title: "Select a shape for the load balancer"
145+
description: "A load balancer provides automated traffic distribution from one entry point to multiple servers in a backend set. The load balancer ensures that your services remain available by directing traffic only to healthy servers in the backend set."
146+
visible:
147+
and:
148+
- and:
149+
- show_advanced
150+
- not:
151+
- use_only_always_free_elegible_resources
152+
153+
instance_shape:
154+
type: oci:core:instanceshape:name
155+
title: "Select a shape for the compute instances"
156+
description: "A shape is a template that determines the number of CPUs, amount of memory, and other resources allocated to a newly created instance."
157+
dependsOn:
158+
compartmentId: compartment_ocid
159+
required: true
160+
visible:
161+
and:
162+
- and:
163+
- show_advanced
164+
- not:
165+
- use_only_always_free_elegible_resources
166+
167+
image_operating_system:
168+
type: string
169+
title: "Compute Image OS"
170+
description: "The OS/image installed on all compute instances."
171+
required: true
172+
visible:
173+
and:
174+
- and:
175+
- show_advanced
176+
- not:
177+
- use_only_always_free_elegible_resources
178+
179+
image_operating_system_version:
180+
type: string
181+
title: "Compute Image OS Version"
182+
description: "The OS/image version installed on all compute instances."
183+
required: true
184+
visible:
185+
and:
186+
- and:
187+
- show_advanced
188+
- not:
189+
- use_only_always_free_elegible_resources
190+
191+
instance_visibility:
192+
type: enum
193+
enum:
194+
- "Public"
195+
- "Private"
196+
title: "Choose instance visibility type"
197+
description: "The instance visibility will define if assign a public ip address to the compute instance and if the subnet is public or private."
198+
visible:
199+
and:
200+
- and:
201+
- show_advanced
202+
- not:
203+
- use_only_always_free_elegible_resources
204+
205+
outputGroups:
206+
- title: "ASP.Net App details"
207+
outputs:
208+
- lb_public_url
209+
- generated_private_key_pem
210+
- deploy_id
211+
- deployed_to_region
212+
- dotnet_template_used
213+
- dev
214+
- comments
215+
216+
outputs:
217+
lb_public_url:
218+
type: link
219+
title: Open
220+
visible: true
221+
222+
generated_private_key_pem:
223+
type: string
224+
title: "Generated Private Key for SSH Access"
225+
displayText: "Generated Private Key for ssh access to compute nodes"
226+
visible: true
227+
228+
dev:
229+
type: string
230+
title: "Message"
231+
visible: true
232+
233+
dotnet_template_used:
234+
type: string
235+
title: "Message"
236+
visible: true
237+
238+
deploy_id:
239+
type: string
240+
title: "Deployment Id"
241+
visible: true
242+
243+
deployed_to_region:
244+
type: string
245+
title: "Deployed using Region"
246+
visible: true
247+
248+
comments:
249+
type: string
250+
title: "Comments"
251+
displayText: "The application URL will be unavailable for a few minutes after provisioning, while the application is configured"
252+
visible: true
253+
254+
primaryOutputButton: ${lb_public_url}

0 commit comments

Comments
 (0)