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

Commit f4c7144

Browse files
committed
General Cleanup - Removed some variables which were no longer required.
1 parent 0641354 commit f4c7144

File tree

8 files changed

+21
-55
lines changed

8 files changed

+21
-55
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ Future development will include support for EDH v5 clusters. In the meantime, u
1111

1212
Host types can be customized in this template. Also included with this template is an easy method to customize block volume quantity and size as pertains to HDFS capacity. See [variables.tf](https://github.com/oracle/oci-quickstart-cloudera/blob/master/terraform/variables.tf#L48-L62) for more information in-line.
1313

14+
This file also allows customization of which version of Cloudera Manager and Cloudera Enterprise Data Hub is being deployed. Before modifying these versions, it is encouraged you check the [Supported Upgrade Paths](https://www.cloudera.com/documentation/enterprise/upgrade/topics/ug_upgrade_paths.html) to ensure the version of Cloudera Manager you are deploying will support the EDH Cluster version. It is recommended to use the latest version of Cloudera Manager regardless of which EDH version you wish to deploy.
15+
16+
Note that this deployment WILL NOT support Cloudera Manager versions less than v6, as they use the older v19 API which is deprecated.
17+
1418
## Prerequisites
1519
First off you'll need to do some pre deploy setup. That's all detailed [here](https://github.com/oracle/oci-quickstart-prerequisites).
1620

terraform/compute.tf

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@ module "bastion" {
66
subnet_id = "${module.network.bastion-id}"
77
availability_domain = "${lookup(data.oci_identity_availability_domains.ADs.availability_domains[var.availability_domain - 1],"name")}"
88
image_ocid = "${var.InstanceImageOCID[var.region]}"
9-
ssh_keypath = "${var.ssh_keypath}"
109
ssh_private_key = "${var.ssh_private_key}"
1110
ssh_public_key = "${var.ssh_public_key}"
12-
private_key_path = "${var.private_key_path}"
1311
bastion_instance_shape = "${var.bastion_instance_shape}"
1412
log_volume_size_in_gbs = "${var.log_volume_size_in_gbs}"
1513
cloudera_volume_size_in_gbs = "${var.cloudera_volume_size_in_gbs}"
@@ -28,10 +26,8 @@ module "utility" {
2826
subnet_id = "${module.network.public-id}"
2927
availability_domain = "${lookup(data.oci_identity_availability_domains.ADs.availability_domains[var.availability_domain - 1],"name")}"
3028
image_ocid = "${var.InstanceImageOCID[var.region]}"
31-
ssh_keypath = "${var.ssh_keypath}"
3229
ssh_private_key = "${var.ssh_private_key}"
3330
ssh_public_key = "${var.ssh_public_key}"
34-
private_key_path = "${var.private_key_path}"
3531
utility_instance_shape = "${var.utility_instance_shape}"
3632
log_volume_size_in_gbs = "${var.log_volume_size_in_gbs}"
3733
cloudera_volume_size_in_gbs = "${var.cloudera_volume_size_in_gbs}"
@@ -55,10 +51,8 @@ module "master" {
5551
subnet_id = "${module.network.private-id}"
5652
availability_domain = "${lookup(data.oci_identity_availability_domains.ADs.availability_domains[var.availability_domain - 1],"name")}"
5753
image_ocid = "${var.InstanceImageOCID[var.region]}"
58-
ssh_keypath = "${var.ssh_keypath}"
5954
ssh_private_key = "${var.ssh_private_key}"
6055
ssh_public_key = "${var.ssh_public_key}"
61-
private_key_path = "${var.private_key_path}"
6256
master_instance_shape = "${var.master_instance_shape}"
6357
log_volume_size_in_gbs = "${var.log_volume_size_in_gbs}"
6458
cloudera_volume_size_in_gbs = "${var.cloudera_volume_size_in_gbs}"
@@ -77,10 +71,8 @@ module "worker" {
7771
subnet_id = "${module.network.private-id}"
7872
availability_domain = "${lookup(data.oci_identity_availability_domains.ADs.availability_domains[var.availability_domain - 1],"name")}"
7973
image_ocid = "${var.InstanceImageOCID[var.region]}"
80-
ssh_keypath = "${var.ssh_keypath}"
8174
ssh_private_key = "${var.ssh_private_key}"
8275
ssh_public_key = "${var.ssh_public_key}"
83-
private_key_path = "${var.private_key_path}"
8476
worker_instance_shape = "${var.worker_instance_shape}"
8577
log_volume_size_in_gbs = "${var.log_volume_size_in_gbs}"
8678
cloudera_volume_size_in_gbs = "${var.cloudera_volume_size_in_gbs}"

terraform/modules/bastion/outputs.tf

Lines changed: 0 additions & 1 deletion
This file was deleted.

terraform/modules/bastion/variables.tf

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
variable "region" {}
88
variable "compartment_ocid" {}
9-
variable "private_key_path" {}
109
variable "ssh_public_key" {}
1110
variable "ssh_private_key" {}
1211
variable "instances" {}
@@ -47,12 +46,6 @@ variable "bastion_instance_shape" {
4746
default = "VM.Standard2.8"
4847
}
4948

50-
# Path to SSH Key
51-
52-
variable "ssh_keypath" {
53-
default = "/home/opc/.ssh/id_rsa"
54-
}
55-
5649
# ---------------------------------------------------------------------------------------------------------------------
5750
# Constants
5851
# You probably don't need to change these.

terraform/modules/master/variables.tf

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
variable "region" {}
88
variable "compartment_ocid" {}
9-
variable "private_key_path" {}
109
variable "ssh_public_key" {}
1110
variable "ssh_private_key" {}
1211
variable "instances" {}
@@ -60,12 +59,6 @@ variable "master_instance_shape" {
6059
default = "VM.Standard2.8"
6160
}
6261

63-
# Path to SSH Key
64-
65-
variable "ssh_keypath" {
66-
default = "/home/opc/.ssh/id_rsa"
67-
}
68-
6962
# ---------------------------------------------------------------------------------------------------------------------
7063
# Constants
7164
# You probably don't need to change these.

terraform/modules/utility/variables.tf

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
variable "region" {}
88
variable "compartment_ocid" {}
9-
variable "private_key_path" {}
109
variable "ssh_public_key" {}
1110
variable "ssh_private_key" {}
1211
variable "instances" {}
@@ -56,12 +55,6 @@ variable "utility_instance_shape" {
5655
default = "VM.Standard2.8"
5756
}
5857

59-
# Path to SSH Key
60-
61-
variable "ssh_keypath" {
62-
default = "/home/opc/.ssh/id_rsa"
63-
}
64-
6558
# ---------------------------------------------------------------------------------------------------------------------
6659
# Constants
6760
# You probably don't need to change these.

terraform/modules/worker/variables.tf

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
variable "region" {}
88
variable "compartment_ocid" {}
9-
variable "private_key_path" {}
109
variable "ssh_public_key" {}
1110
variable "ssh_private_key" {}
1211
variable "instances" {}
@@ -85,12 +84,6 @@ variable "worker_instance_shape" {
8584
default = "BM.DenseIO2.52"
8685
}
8786

88-
# Path to SSH Key
89-
90-
variable "ssh_keypath" {
91-
default = "/home/opc/.ssh/id_rsa"
92-
}
93-
9487
# ---------------------------------------------------------------------------------------------------------------------
9588
# Constants
9689
# You probably don't need to change these.

terraform/variables.tf

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,31 @@ variable "fingerprint" {}
1414
variable "region" {}
1515
variable "ssh_public_key" {}
1616
variable "ssh_private_key" {}
17-
variable "cm_install" { default = "" }
18-
variable "deploy_on_oci" { default = "" }
19-
variable "cloudera_manager" { default = "10.0.0.2"}
20-
variable "AD" { default="2" }
21-
variable "block_volume_count" { default = "3"}
17+
variable "private_key_path" {
18+
default = "/home/opc/.ssh/id_rsa"
19+
}
20+
variable "AD" {
21+
default = "1" }
22+
variable "block_volume_count" {
23+
default = "3"
24+
}
2225

2326
# ---------------------------------------------------------------------------------------------------------------------
2427
# Cloudera variables
2528
# You should modify these based on deployment requirements.
2629
# ---------------------------------------------------------------------------------------------------------------------
2730
# Cloudera Manager Version
28-
variable "cm_version" { default = "6.2.0" }
31+
variable "cm_version" {
32+
default = "6.2.0"
33+
}
2934
# Cloudera Enterprise Data Hub Version
30-
variable "cdh_version" { default = "6.2.0" }
35+
variable "cdh_version" {
36+
default = "6.2.0"
37+
}
3138
# Deployment type - set this to "simple" if you want to DISABLE High Availabilty and Kerberos Security
32-
variable "deployment_type" { default = "simple" }
39+
variable "deployment_type" {
40+
default = "simple"
41+
}
3342

3443
# ---------------------------------------------------------------------------------------------------------------------
3544
# Optional variables
@@ -61,16 +70,6 @@ variable "worker_instance_shape" {
6170
default = "BM.DenseIO2.52"
6271
}
6372

64-
# Path to SSH Key used for deployment and host access
65-
66-
variable "ssh_keypath" {
67-
default = "/home/opc/.ssh/id_rsa"
68-
}
69-
70-
variable "private_key_path" {
71-
default = "/home/opc/.ssh/id_rsa"
72-
}
73-
7473
#
7574
# Set Node Counts in this section
7675
#

0 commit comments

Comments
 (0)