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

Commit fb374ec

Browse files
committed
Pathing fix
1 parent ae4dbc7 commit fb374ec

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

terraform/compute.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ resource "oci_core_instance" "Utility" {
1414

1515
metadata {
1616
ssh_authorized_keys = "${var.ssh_public_key}"
17-
user_data = "${base64encode(file("scripts/cm_boot_mysql.sh"))}"
17+
user_data = "${base64encode(file("../scripts/cm_boot_mysql.sh"))}"
1818
}
1919

2020
timeouts {
@@ -40,7 +40,7 @@ resource "oci_core_instance" "Master" {
4040

4141
metadata {
4242
ssh_authorized_keys = "${var.ssh_public_key}"
43-
user_data = "${base64encode(file("scripts/boot.sh"))}"
43+
user_data = "${base64encode(file("../scripts/boot.sh"))}"
4444
}
4545

4646
timeouts {
@@ -64,7 +64,7 @@ resource "oci_core_instance" "Bastion" {
6464

6565
metadata {
6666
ssh_authorized_keys = "${var.ssh_public_key}"
67-
user_data = "${base64encode(file("scripts/boot.sh"))}"
67+
user_data = "${base64encode(file("../scripts/boot.sh"))}"
6868
}
6969

7070
timeouts {
@@ -90,7 +90,7 @@ resource "oci_core_instance" "Worker" {
9090

9191
metadata {
9292
ssh_authorized_keys = "${var.ssh_public_key}"
93-
user_data = "${base64encode(file("scripts/boot.sh"))}"
93+
user_data = "${base64encode(file("../scripts/boot.sh"))}"
9494
}
9595

9696
timeouts {

terraform/outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ output "0 - INFO - Block Volume Size (HDFS)" { value = "${var.data_blocksize_in_
44
output "1 - Bastion SSH Login" { value = "ssh -i ${var.ssh_keypath} opc@${data.oci_core_vnic.bastion_vnic.public_ip_address}" }
55
output "2 - Cloudera Manager URL" { value = "http://${data.oci_core_vnic.utility_node_vnic.public_ip_address}:7180/cmf/" }
66
output "3 - Cloudera Manager Recent Commands" { value = "http://${data.oci_core_vnic.utility_node_vnic.public_ip_address}:7180/cmf/commands/commands" }
7-
output "4 - DEPLOYMENT COMMAND" { value = "python scripts/deploy_on_oci.py -B -m ${data.oci_core_vnic.utility_node_vnic.public_ip_address} -d ${ceil(((var.hdfs_usable_in_gbs*3)/var.data_blocksize_in_gbs)/var.worker_node_count)} -w ${var.worker_instance_shape}" }
7+
output "4 - DEPLOYMENT COMMAND" { value = "python ../scripts/deploy_on_oci.py -B -m ${data.oci_core_vnic.utility_node_vnic.public_ip_address} -d ${ceil(((var.hdfs_usable_in_gbs*3)/var.data_blocksize_in_gbs)/var.worker_node_count)} -w ${var.worker_instance_shape}" }

0 commit comments

Comments
 (0)