-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathvariables.tf
More file actions
112 lines (90 loc) · 2.15 KB
/
variables.tf
File metadata and controls
112 lines (90 loc) · 2.15 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# AWS credentials - to avoid storing creds in a file in plain text
# you should set these in your terminal before calling Terraform.
# However, as this is a proof of concept, I'm going to store them
# here for simplicity and ease.
variable "access_key" {
default = "<your_access_key"
}
variable "secret_key" {
default = "<your_secret_key>"
}
variable "splunk_password" {
default = "changed123!"
}
# AWS region
variable "region" {
default = "eu-west-1"
}
# Cluster pass4SymmKey
variable "cluster_pass4SymmKey" {
default = "democluster"
}
# Search Head Cluster pass4SymmKey
variable "shc_pass4SymmKey" {
default = "demoshcluster"
}
# Search Head Cluster Label
variable "shcluster_label" {
default = "demoshcluster"
}
# Environment Build Name - think of this as a label for your environment
variable "env_name" {
default = "test_env"
}
# Set the ami here - all instances will be built using the same one
variable "ami" {
default = "ami-08d658f84a6d84a80" # Ubuntu 18.04.2 on eu-west-1
}
# Set the indexer instance type here
variable "indexer_size" {
default = "t2.micro"
}
# Set the search head instance type here
variable "search_head_size" {
default = "t2.micro"
}
# Set the cluster master instance type here
variable "cluster_master_size" {
default = "t2.micro"
}
# Generic instance type for non-essential boxes
variable "generic_size" {
default = "t2.micro"
}
# Define Splunk ports
# Splunk web interface port
variable "splunkweb_port" {
default = "8000"
}
# Splunk port for forwarders to talk to indexers
variable "splunk_tcpin" {
default = "9997"
}
# Splunk management and REST API port
variable "splunk_mgmt_port" {
default = "8089"
}
# Splunk clustered indexer replication port
variable "indexer_replication_port" {
default = "9887"
}
# Splunk clustered search head replication port
variable "shc_rep_port" {
default = "8181"
}
# Splunk SHC replication factor
variable "shc_rep_factor" {
default = "2"
}
# Splunk KVStore replication port
variable "kvstore_replication_port" {
default = "8191"
}
# Splunk HTTP Event Collector port
variable "hec_port" {
default = "8088"
}
# SSH Daemon port
variable "ssh_port" {
default = "22"
}