-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
main.tf
62 lines (55 loc) · 2.03 KB
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Azurerm Provider configuration
provider "azurerm" {
features {
}
}
module "hdinsight" {
source = "kumarvna/hdinsight/azurerm"
version = "1.0.0"
# By default, this module will not create a resource group. Location will be same as existing RG.
# proivde a name to use an existing resource group, specify the existing resource group name,
# set the argument to `create_resource_group = true` to create new resrouce group.
resource_group_name = "rg-shared-westeurope-01"
location = "westeurope"
# The type of hdinsight cluster to create
# Valid values are `hadoop`, `hbase`, `interactive-query`, `kafka`, `spark`.
hdinsight_cluster_type = "hbase"
# Hdinsight HBase cluster configuration. Gateway credentials must be different from the one used
# for the `head_node`, `worker_node` and `zookeeper_node` roles.
hbase_cluster = {
name = "hbasedemocluster1"
cluster_version = "3.6"
gateway_username = "acctestusrgw"
gateway_password = "TerrAform123!"
hbase_version = "1.1"
tier = "Standard"
}
# Node configuration
# Either a password or one or more ssh_keys must be specified - but not both.
# Password must be at least 10 characters in length and must contain digits,uppercase,
# lower case letters and non-alphanumeric characters
hbase_roles = {
vm_username = "acctestusrvm"
vm_password = "AccTestvdSC4daf986!"
head_node = {
vm_size = "Standard_D3_V2"
}
worker_node = {
vm_size = "Standard_D3_V2"
target_instance_count = 3
}
zookeeper_node = {
vm_size = "Standard_D3_V2"
}
}
# Use Azure Monitor logs to monitor HDInsight clusters. Recommended to place both the HDInsight
# cluster and the Log Analytics workspace in the same region for better performance.
enable_hbase_monitoring = true
log_analytics_workspace_name = "loganalytics-we-sharedtest2"
# Tags for Azure Resources
tags = {
Terraform = "true"
Environment = "dev"
Owner = "test-user"
}
}