Skip to content

Commit

Permalink
fix variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Oehrli committed Nov 24, 2020
1 parent 41f10eb commit 75c0b45
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 10 deletions.
30 changes: 25 additions & 5 deletions examples/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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 = ""
Expand Down
30 changes: 25 additions & 5 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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 = ""
Expand Down

0 comments on commit 75c0b45

Please sign in to comment.