Skip to content
This repository was archived by the owner on Apr 18, 2024. It is now read-only.

Commit 4edec7c

Browse files
committed
Terraform variable dependency fixes, syntax fixes.
1 parent cb0d456 commit 4edec7c

File tree

8 files changed

+17
-2
lines changed

8 files changed

+17
-2
lines changed

scripts/cm_boot_mysql.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ for w in `seq 1 $num_workers`; do
383383
worker_fqdn_list=`echo "${worker_fqdn_list},${worker_fqdn[$w]}"`
384384
fi
385385
done;
386-
echo "curl -L http://169.254.169.254/opc/v1/instance/metadata/extended_metadata | base64 -d " >> $LOG_FILE
386+
echo "curl -L http://169.254.169.254/opc/v1/instance/metadata/deploy_on_oci | base64 -d " >> $LOG_FILE
387387
echo "python deploy_on_oci.py -B -S -m ${cm_ip} -i ${worker_fqdn_list} -d ${worker_disk_count} -w ${worker_shape} -n ${num_workers} -cdh ${cdh_version} -ad ${availability_domain}" >> $LOG_FILE
388388
EXECNAME="END"
389389
log "->DONE"

terraform/compute.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ module "utility" {
3535
log_volume_size_in_gbs = "${var.log_volume_size_in_gbs}"
3636
cloudera_volume_size_in_gbs = "${var.cloudera_volume_size_in_gbs}"
3737
user_data = "${base64encode(file("../scripts/cm_boot_mysql.sh"))}"
38-
extended_metadata = "${base64encode(gzip(file("../scripts/deploy_on_oci.py")))}"
38+
deploy_on_oci = "${base64encode(gzip(file("../scripts/deploy_on_oci.py")))}"
3939
cloudera_manager = "cdh-utility-1.public${var.availability_domain}.${module.network.vcn-dn}"
4040
cm_version = "${var.cm_version}"
4141
cdh_version = "${var.cdh_version}"

terraform/modules/bastion/variables.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ variable "user_data" {}
1515
variable "image_ocid" {}
1616
variable "cm_version" {}
1717
variable "cdh_version" {}
18+
variable "cloudera_manager" {}
1819

1920
# ---------------------------------------------------------------------------------------------------------------------
2021
# Optional variables

terraform/modules/master/variables.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ variable "user_data" {}
1515
variable "image_ocid" {}
1616
variable "cm_version" {}
1717
variable "cdh_version" {}
18+
variable "cloudera_manager" {}
1819

1920
# ---------------------------------------------------------------------------------------------------------------------
2021
# Optional variables

terraform/modules/utility/main.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ resource "oci_core_instance" "Utility" {
2323
availability_domain = "${var.AD}"
2424
}
2525

26+
extended_metadata {
27+
deploy_on_oci = "${var.deploy_on_oci}"
28+
}
29+
2630
timeouts {
2731
create = "30m"
2832
}

terraform/modules/utility/variables.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ variable "cm_version" {}
1717
variable "cdh_version" {}
1818
variable "worker_shape" {}
1919
variable "block_volume_count" {}
20+
variable "AD" {}
21+
variable "cloudera_manager" {}
22+
variable "deploy_on_oci" {}
2023

2124
# ---------------------------------------------------------------------------------------------------------------------
2225
# Optional variables

terraform/modules/worker/variables.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ variable "user_data" {}
1515
variable "image_ocid" {}
1616
variable "cm_version" {}
1717
variable "cdh_version" {}
18+
variable "cloudera_manager" {}
19+
variable "block_volume_count" {}
1820

1921
# ---------------------------------------------------------------------------------------------------------------------
2022
# Optional variables

terraform/variables.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ variable "fingerprint" {}
1414
variable "region" {}
1515
variable "ssh_public_key" {}
1616
variable "ssh_private_key" {}
17+
variable "extended_metdata" {}
18+
variable "cloudera_manager" {}
19+
variable "AD" {}
20+
variable "block_volume_count" {}
1721

1822
# ---------------------------------------------------------------------------------------------------------------------
1923
# Cloudera variables

0 commit comments

Comments
 (0)