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

Commit f31231a

Browse files
committed
Removed deployment_type, changed to secure_cluster. This now allows independent control of HDFS HA and Secure Cluster options during deployment.
1 parent 983c4c7 commit f31231a

File tree

15 files changed

+56
-68
lines changed

15 files changed

+56
-68
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ This automation supports using a local KDC deployed on the Cloudera Manager inst
4040

4141
Also - for cluster management, you will need to manually create at a minimum the HDFS Superuser Principal as [detailed here](https://www.cloudera.com/documentation/enterprise/latest/topics/cm_sg_using_cm_sec_config.html#create-hdfs-superuser) after deployment.
4242

43-
Enabling Kerberos is managed using a terraform metadata tag "deployment_type". Setting this value to "secure" will enable cluster security as part of the setup process. Changing this to "simple" will deploy an unsecured cluster. By default this value is set to "simple" for speed of deployment and ease of use for those not familiar with secure cluster operation.
44-
43+
Enabling Kerberos is managed using a terraform metadata tag "secure_cluster" Setting this value to "True" will enable cluster security as part of the setup process. Changing this to "False" will deploy an unsecured cluster.
44+
4545
## High Availability
4646

47-
High Availability is also offered as part of the deployment process. When secure cluster operation is chosen this is enabled by default. It can be disabled by either changing the deployment_type to "simple", or modifying the [deploy_on_oci.py](https://github.com/oracle/oci-quickstart-cloudera/blob/master/scripts/deploy_on_oci.py#L60) script and changing the value for "hdfs_ha".
47+
High Availability for HDFS services is also offered as part of the deployment process. This can be toggled during the installation process by setting the value to "True".
4848

4949
## Metadata and MySQL
5050

compute.tf

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ module "bastion" {
1515
cloudera_manager = "cdh-utility-1.public${var.availability_domain}.${module.network.vcn-dn}"
1616
cm_version = "${var.cm_version}"
1717
cdh_version = "${var.cdh_version}"
18-
deployment_type = "${var.deployment_type}"
1918
}
2019

2120
module "utility" {
@@ -40,8 +39,8 @@ module "utility" {
4039
worker_shape = "${var.worker_instance_shape}"
4140
block_volume_count = "${var.block_volumes_per_worker}"
4241
AD = "${var.availability_domain}"
43-
deployment_type = "${var.deployment_type}"
4442
hdfs_ha = "${var.hdfs_ha}"
43+
secure_cluster = "${var.secure_cluster}"
4544
cluster_name = "${var.cluster_name}"
4645
}
4746

@@ -62,7 +61,6 @@ module "master" {
6261
cloudera_manager = "cdh-utility-1.public${var.availability_domain}.${module.network.vcn-dn}"
6362
cm_version = "${var.cm_version}"
6463
cdh_version = "${var.cdh_version}"
65-
deployment_type = "${var.deployment_type}"
6664
}
6765

6866
module "worker" {
@@ -85,5 +83,4 @@ module "worker" {
8583
cm_version = "${var.cm_version}"
8684
cdh_version = "${var.cdh_version}"
8785
block_volume_count = "${var.block_volumes_per_worker}"
88-
deployment_type = "${var.deployment_type}"
8986
}

modules/bastion/main.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ resource "oci_core_instance" "Bastion" {
1717
cloudera_manager = "${var.cloudera_manager}"
1818
cdh_version = "${var.cdh_version}"
1919
cm_version = "${var.cm_version}"
20-
deployment_type = "${var.deployment_type}"
2120
}
2221

2322
timeouts {

modules/bastion/variables.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ variable "image_ocid" {}
1515
variable "cm_version" {}
1616
variable "cdh_version" {}
1717
variable "cloudera_manager" {}
18-
variable "deployment_type" {}
1918

2019
# ---------------------------------------------------------------------------------------------------------------------
2120
# Optional variables

modules/master/main.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ resource "oci_core_instance" "Master" {
1919
cloudera_manager = "${var.cloudera_manager}"
2020
cdh_version = "${var.cdh_version}"
2121
cm_version = "${var.cm_version}"
22-
deployment_type = "${var.deployment_type}"
2322
}
2423

2524
timeouts {

modules/master/variables.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ variable "image_ocid" {}
1515
variable "cm_version" {}
1616
variable "cdh_version" {}
1717
variable "cloudera_manager" {}
18-
variable "deployment_type" {}
1918

2019
# ---------------------------------------------------------------------------------------------------------------------
2120
# Optional variables

modules/utility/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ resource "oci_core_instance" "Utility" {
2121
worker_shape = "${var.worker_shape}"
2222
block_volume_count = "${var.block_volume_count}"
2323
availability_domain = "${var.AD}"
24-
deployment_type = "${var.deployment_type}"
24+
secure_cluster = "${var.secure_cluster}"
2525
hdfs_ha = "${var.hdfs_ha}"
2626
cluster_name = "${var.cluster_name}"
2727
}

modules/utility/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ variable "AD" {}
2020
variable "cloudera_manager" {}
2121
variable "cm_install" {}
2222
variable "deploy_on_oci" {}
23-
variable "deployment_type" {}
23+
variable "secure_cluster" {}
2424
variable "hdfs_ha" {}
2525
variable "cluster_name" {}
2626

modules/worker/main.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ resource "oci_core_instance" "Worker" {
2020
cdh_version = "${var.cdh_version}"
2121
cm_version = "${var.cm_version}"
2222
block_volume_count = "${var.block_volume_count}"
23-
deployment_type = "${var.deployment_type}"
2423
}
2524

2625
timeouts {

modules/worker/variables.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ variable "cm_version" {}
1616
variable "cdh_version" {}
1717
variable "cloudera_manager" {}
1818
variable "block_volume_count" {}
19-
variable "deployment_type" {}
2019

2120
# ---------------------------------------------------------------------------------------------------------------------
2221
# Optional variables

0 commit comments

Comments
 (0)