This repository was archived by the owner on Apr 18, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 8 files changed +17
-2
lines changed Expand file tree Collapse file tree 8 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -383,7 +383,7 @@ for w in `seq 1 $num_workers`; do
383
383
worker_fqdn_list=` echo " ${worker_fqdn_list} ,${worker_fqdn[$w]} " `
384
384
fi
385
385
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
387
387
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
388
388
EXECNAME=" END"
389
389
log " ->DONE"
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ module "utility" {
35
35
log_volume_size_in_gbs = " ${ var . log_volume_size_in_gbs } "
36
36
cloudera_volume_size_in_gbs = " ${ var . cloudera_volume_size_in_gbs } "
37
37
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" )))} "
39
39
cloudera_manager = " cdh-utility-1.public${ var . availability_domain } .${ module . network . vcn-dn } "
40
40
cm_version = " ${ var . cm_version } "
41
41
cdh_version = " ${ var . cdh_version } "
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ variable "user_data" {}
15
15
variable "image_ocid" {}
16
16
variable "cm_version" {}
17
17
variable "cdh_version" {}
18
+ variable "cloudera_manager" {}
18
19
19
20
# ---------------------------------------------------------------------------------------------------------------------
20
21
# Optional variables
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ variable "user_data" {}
15
15
variable "image_ocid" {}
16
16
variable "cm_version" {}
17
17
variable "cdh_version" {}
18
+ variable "cloudera_manager" {}
18
19
19
20
# ---------------------------------------------------------------------------------------------------------------------
20
21
# Optional variables
Original file line number Diff line number Diff line change @@ -23,6 +23,10 @@ resource "oci_core_instance" "Utility" {
23
23
availability_domain = " ${ var . AD } "
24
24
}
25
25
26
+ extended_metadata {
27
+ deploy_on_oci = " ${ var . deploy_on_oci } "
28
+ }
29
+
26
30
timeouts {
27
31
create = " 30m"
28
32
}
Original file line number Diff line number Diff line change @@ -17,6 +17,9 @@ variable "cm_version" {}
17
17
variable "cdh_version" {}
18
18
variable "worker_shape" {}
19
19
variable "block_volume_count" {}
20
+ variable "AD" {}
21
+ variable "cloudera_manager" {}
22
+ variable "deploy_on_oci" {}
20
23
21
24
# ---------------------------------------------------------------------------------------------------------------------
22
25
# Optional variables
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ variable "user_data" {}
15
15
variable "image_ocid" {}
16
16
variable "cm_version" {}
17
17
variable "cdh_version" {}
18
+ variable "cloudera_manager" {}
19
+ variable "block_volume_count" {}
18
20
19
21
# ---------------------------------------------------------------------------------------------------------------------
20
22
# Optional variables
Original file line number Diff line number Diff line change @@ -14,6 +14,10 @@ variable "fingerprint" {}
14
14
variable "region" {}
15
15
variable "ssh_public_key" {}
16
16
variable "ssh_private_key" {}
17
+ variable "extended_metdata" {}
18
+ variable "cloudera_manager" {}
19
+ variable "AD" {}
20
+ variable "block_volume_count" {}
17
21
18
22
# ---------------------------------------------------------------------------------------------------------------------
19
23
# Cloudera variables
You can’t perform that action at this time.
0 commit comments