From bf7bea3c56ea2659fcd08b1a076ce9fa2c11dd86 Mon Sep 17 00:00:00 2001 From: Karthic Ravindran Date: Wed, 24 Jun 2020 16:46:13 +0530 Subject: [PATCH 1/2] schema for resource manager Signed-off-by: Karthic Ravindran --- schema.yaml | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 schema.yaml diff --git a/schema.yaml b/schema.yaml new file mode 100644 index 0000000..03637ec --- /dev/null +++ b/schema.yaml @@ -0,0 +1,51 @@ +schemaVersion: 1.1.0 +version: "20190304" +locale: "en" +groupings: + - title: "Create A VCN with optional gateways" + variables: + - region + - compartment_id + - vcn_cidr + - vcn_name + - vcn_dns_label + + +variables: + region: + type: oci:identity:region:name + title: Region + description: The region in which to create all resources + required: true + + compartment_id: + type: oci:identity:compartment:id + title: Target Compartment + description: The target compartment for all of the provisioned resources + required: true + + vcn_cidr: + type: string + title: Vcn CIDR + default: 10.0.0.0/16 + required: true + + vcn_name: + type: string + title: Vcn Name + required: true + default: TestVcn + + label_prefix: + type: string + required: false + default: dev + + vcn_dns_label: + type: string + required: true + default: vcn + + tags: + type: map + visible: false From 3d2ad71c5c09cef0a1340c37c61fed9914e8c00c Mon Sep 17 00:00:00 2001 From: Ali Mukadam Date: Wed, 24 Jun 2020 21:40:39 +1000 Subject: [PATCH 2/2] cosmetic modifications to schema.yaml Signed-off-by: Ali Mukadam --- schema.yaml | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/schema.yaml b/schema.yaml index 03637ec..bdf606b 100644 --- a/schema.yaml +++ b/schema.yaml @@ -15,31 +15,33 @@ variables: region: type: oci:identity:region:name title: Region - description: The region in which to create all resources + description: The OCI region where resources will be created required: true compartment_id: type: oci:identity:compartment:id title: Target Compartment - description: The target compartment for all of the provisioned resources + description: The target compartment id where to create all resources required: true - + + label_prefix: + type: string + title: Label Prefix + description: a string that will be prepended to all resources + required: false + default: dev + vcn_cidr: type: string - title: Vcn CIDR + title: VCN CIDR default: 10.0.0.0/16 required: true vcn_name: type: string - title: Vcn Name + title: VCN Name required: true - default: TestVcn - - label_prefix: - type: string - required: false - default: dev + default: vcn vcn_dns_label: type: string