-
Notifications
You must be signed in to change notification settings - Fork 15
/
variables.tf
90 lines (73 loc) · 2.53 KB
/
variables.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
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
# ---------------------------------------------------------------------------------------------------------------------
# ENVIRONMENT VARIABLES
# Define these secrets as environment variables
# ---------------------------------------------------------------------------------------------------------------------
# AWS_ACCESS_KEY_ID
# AWS_SECRET_ACCESS_KEY
# ---------------------------------------------------------------------------------------------------------------------
# OPTIONAL PARAMETERS
# These parameters have reasonable defaults.
# ---------------------------------------------------------------------------------------------------------------------
variable "name" {
description = "Name to be used on all instances as prefix"
default = ""
}
variable "linux_slave_count" {
description = "Number of linux slave instances to launch"
default = 1
}
variable "aws_region" {
description = "The AWS region to deploy into (e.g. us-east-1)."
default = "eu-west-1"
}
variable "master_ami_id" {
description = "ID of AMI to use for master instance(s)"
default = ""
}
variable "master_vpc_id" {
description = "ID of VPC to use for master instance(s)"
default = ""
}
variable "subnet_ids" {
description = "ID of subnet to use for master instance(s)"
default = ""
}
variable "linux_slave_ami_id" {
description = "ID of AMI to use for linux slave instance(s)"
default = ""
}
variable "instance_type_master" {
description = "Instance Type to use for master instance(s)"
default = "t2.micro"
}
variable "http_port" {
description = "The port to use for HTTP traffic to Jenkins"
default = 8080
}
variable "jnlp_port" {
description = "The Port to use for Jenkins master to slave communication between instances"
default = 49187
}
variable "instance_type_slave" {
description = "Instance Type to use for slave instance(s)"
default = "t2.micro"
}
variable "ssh_key_name" {
description = "The name of an EC2 Key Pair that can be used to SSH to the EC2 Instances in this cluster. Set to an empty string to not associate a Key Pair."
default = ""
}
variable "ssh_key_path" {
description = "The path of an EC2 Key Pair that can be used to SSH to the EC2 Instances in this cluster. Used for provisioning."
default = ""
}
variable "plugins" {
type = "list"
description = "A list of Jenkins plugins to install, use short names."
default = ["git", "xunit"]
}
variable "tags" {
type = "map"
description = "Supply tags you want added to all resources"
default = {
}
}