This repository was archived by the owner on Apr 18, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +12
-1
lines changed Expand file tree Collapse file tree 5 files changed +12
-1
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ curl -L http://169.254.169.254/opc/v1/instance/metadata/deploy_on_oci | base64 -d >> deploy_on_oci.py.gz
3
+ gunzip deploy_on_oci.py.gz
4
+ curl -L http://169.254.169.254/opc/v1/instance/metadata/cm_install | base64 -d >> cm_boot_mysql.sh.gz
5
+ gunzip cm_boot_mysql.sh.gz
6
+ chmod +x cm_boot_mysql.sh
7
+ sh cm_boot_mysql.sh
Original file line number Diff line number Diff line change @@ -34,7 +34,8 @@ module "utility" {
34
34
utility_instance_shape = " ${ var . utility_instance_shape } "
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
- user_data = " ${ base64gzip (file (" ../scripts/cm_boot_mysql.sh" ))} "
37
+ user_data = " ${ base64encode (file (" ../scripts/cloudera_manager.sh" ))} "
38
+ cm_install = " ${ base64gzip (file (" ../scripts/cm_boot_mysql.sh" ))} "
38
39
deploy_on_oci = " ${ base64gzip (file (" ../scripts/deploy_on_oci.py" ))} "
39
40
cloudera_manager = " cdh-utility-1.public${ var . availability_domain } .${ module . network . vcn-dn } "
40
41
cm_version = " ${ var . cm_version } "
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ resource "oci_core_instance" "Utility" {
24
24
}
25
25
26
26
extended_metadata {
27
+ cm_install = " ${ var . cm_install } "
27
28
deploy_on_oci = " ${ var . deploy_on_oci } "
28
29
}
29
30
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ variable "worker_shape" {}
19
19
variable "block_volume_count" {}
20
20
variable "AD" {}
21
21
variable "cloudera_manager" {}
22
+ variable "cm_install" {}
22
23
variable "deploy_on_oci" {}
23
24
24
25
# ---------------------------------------------------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ variable "fingerprint" {}
14
14
variable "region" {}
15
15
variable "ssh_public_key" {}
16
16
variable "ssh_private_key" {}
17
+ variable "cm_install" { default = " " }
17
18
variable "deploy_on_oci" { default = " " }
18
19
variable "cloudera_manager" { default = " 10.0.0.2" }
19
20
variable "AD" { default = " 2" }
You can’t perform that action at this time.
0 commit comments