From 75c0b45219b9c2c2de83387fc954470fcb7c3d49 Mon Sep 17 00:00:00 2001 From: Stefan Oehrli Date: Tue, 24 Nov 2020 22:35:44 +0100 Subject: [PATCH] fix variables --- examples/variables.tf | 30 +++++++++++++++++++++++++----- variables.tf | 30 +++++++++++++++++++++++++----- 2 files changed, 50 insertions(+), 10 deletions(-) diff --git a/examples/variables.tf b/examples/variables.tf index 6fd1544..620d73b 100644 --- a/examples/variables.tf +++ b/examples/variables.tf @@ -15,6 +15,20 @@ # --------------------------------------------------------------------------- # provider identity parameters ---------------------------------------------- +variable "user_ocid" { + description = "user OCID used to access OCI" + type = string +} +variable "fingerprint" { + description = "Fingerprint for user" + type = string +} + +variable "private_key_path" { + description = "Private Key Path" + type = string +} + variable "tenancy_ocid" { description = "tenancy id where to create the resources" type = string @@ -27,11 +41,22 @@ variable "region" { } # general oci parameters ---------------------------------------------------- +variable "base_compartment_ocid" { + description = "OCID of the base compartment where to create training compartment" + type = string +} + variable "compartment_id" { description = "OCID of the compartment where to create all resources" type = string } +variable "compartment_delete_enabled" { + description = "Whether the compartment will be delete when running terraform destroy." + default = false + type = bool +} + variable "label_prefix" { description = "A string that will be prepended to all resources" type = string @@ -179,11 +204,6 @@ variable "ssh_public_key_path" { type = string } -variable "bastion_subnet" { - description = "List of subnets for the bastion hosts" - type = list(string) -} - variable "hosts_file" { description = "path to a custom /etc/hosts which has to be appended" default = "" diff --git a/variables.tf b/variables.tf index 6fd1544..620d73b 100644 --- a/variables.tf +++ b/variables.tf @@ -15,6 +15,20 @@ # --------------------------------------------------------------------------- # provider identity parameters ---------------------------------------------- +variable "user_ocid" { + description = "user OCID used to access OCI" + type = string +} +variable "fingerprint" { + description = "Fingerprint for user" + type = string +} + +variable "private_key_path" { + description = "Private Key Path" + type = string +} + variable "tenancy_ocid" { description = "tenancy id where to create the resources" type = string @@ -27,11 +41,22 @@ variable "region" { } # general oci parameters ---------------------------------------------------- +variable "base_compartment_ocid" { + description = "OCID of the base compartment where to create training compartment" + type = string +} + variable "compartment_id" { description = "OCID of the compartment where to create all resources" type = string } +variable "compartment_delete_enabled" { + description = "Whether the compartment will be delete when running terraform destroy." + default = false + type = bool +} + variable "label_prefix" { description = "A string that will be prepended to all resources" type = string @@ -179,11 +204,6 @@ variable "ssh_public_key_path" { type = string } -variable "bastion_subnet" { - description = "List of subnets for the bastion hosts" - type = list(string) -} - variable "hosts_file" { description = "path to a custom /etc/hosts which has to be appended" default = ""