Skip to content

Commit 79a85db

Browse files
committed
others: renamed verrazzano_type to verrazzano_profile to keep with Verrazzano
naming concepts Signed-off-by: Ali Mukadam <ali.mukadam@oracle.com>
1 parent b5d2048 commit 79a85db

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ ssh_private_key_path = "~/.ssh/id_rsa"
4343
ssh_public_key_path = "~/.ssh/id_rsa.pub"
4444
4545
verrazzano_name = "v8o"
46-
verrazzano_type = "dev"
46+
verrazzano_profile = "dev"
4747
verrazzano_version = "1.0.3"
4848
```
4949

oke.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module "oke" {
1616
ssh_public_key_path = var.ssh_public_key_path
1717

1818
# networking
19-
create_drg = var.verrazzano_type == "admin" || var.verrazzano_type == "managed" ? true : false
19+
create_drg = var.verrazzano_profile == "admin" || var.verrazzano_profile == "managed" ? true : false
2020
internet_gateway_route_rules = []
2121
nat_gateway_route_rules = []
2222

@@ -25,11 +25,11 @@ module "oke" {
2525
vcn_name = var.vcn_name
2626

2727
# bastion host
28-
create_bastion_host = var.verrazzano_type == "managed" ? false : true
28+
create_bastion_host = var.verrazzano_profile == "managed" ? false : true
2929
upgrade_bastion = false
3030

3131
# operator host
32-
create_operator = var.verrazzano_type == "managed" ? false : true
32+
create_operator = var.verrazzano_profile == "managed" ? false : true
3333
enable_operator_instance_principal = true
3434
upgrade_operator = false
3535

scripts/install_verrazzano.template.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44

55
echo "Installing Verrazzano"
66

7-
if [[ ${verrazzano_type} = "admin" ]]
7+
if [[ ${verrazzano_profile} = "admin" ]]
88
then
99
sed -i -e "s?profile: dev?profile: prod?g" verrazzano.yaml
1010
echo "profile type set to prod for an admin cluster"
11-
elif [[ ${verrazzano_type} = "dev" ]]
11+
elif [[ ${verrazzano_profile} = "dev" ]]
1212
then
1313
echo "profile type set to dev for a dev cluster"
14-
elif [[ ${verrazzano_type} = "managed" ]]
14+
elif [[ ${verrazzano_profile} = "managed" ]]
1515
then
1616
sed -i -e "s?profile: dev?profile: managed?g" verrazzano.yaml
1717
echo "profile type set to managed for a managed cluster"

templates.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ locals {
1313
install_verrazzano_template = templatefile("${path.module}/scripts/install_verrazzano.template.sh",
1414
{
1515
verrazzano_name = var.verrazzano_name
16-
verrazzano_type = var.verrazzano_type
16+
verrazzano_profile = var.verrazzano_profile
1717
}
1818
)
1919

terraform.tfvars.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,5 @@ freeform_tags = {
7373
}
7474

7575
verrazzano_name = "v8o"
76-
verrazzano_type = "dev"
76+
verrazzano_profile = "dev"
7777
verrazzano_version = "1.0.3"

variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -809,12 +809,12 @@ variable "verrazzano_name" {
809809
type = string
810810
}
811811

812-
variable "verrazzano_type" {
812+
variable "verrazzano_profile" {
813813
default = "dev"
814814
description = "Verrazzano cluster type. Can be set to admin, dev, managed or prod"
815815
type = string
816816
validation {
817-
condition = contains(["admin", "dev", "managed", "prod"], var.verrazzano_type)
817+
condition = contains(["admin", "dev", "managed", "prod"], var.verrazzano_profile)
818818
error_message = "Accepted values are admin, dev, managed or prod."
819819
}
820820
}

0 commit comments

Comments
 (0)