forked from IGNW/terraform-aws-jenkins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
107 lines (86 loc) · 3.19 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# ---------------------------------------------------------------------------------------------------------------------
# ENVIRONMENT VARIABLES
# Define these secrets as environment variables
# ---------------------------------------------------------------------------------------------------------------------
# AWS_ACCESS_KEY_ID
# AWS_SECRET_ACCESS_KEY
# ---------------------------------------------------------------------------------------------------------------------
# APPLICATION LOAD BALANCER CONFIGURATION
# These parameters have reasonable defaults.
# ---------------------------------------------------------------------------------------------------------------------
variable "aws_ssl_certificate_arn" {
description = "Amazon Resource Name for the certificate to be used on the load balancer for HTTPS"
}
variable "dns_zone" {
description = "DNS zone in AWS Route53 to use with the ALB"
}
variable "app_dns_name" {
description = "DNS name within the zone to dynamically point to the ALB"
}
# ---------------------------------------------------------------------------------------------------------------------
# OPTIONAL PARAMETERS
# These parameters have reasonable defaults.
# ---------------------------------------------------------------------------------------------------------------------
variable "name" {
description = "Name to be used on all instances as prefix"
default = ""
}
variable "win_slave_count" {
description = "Number of windows slave instances to launch"
default = 1
}
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 = "us-east-1"
}
variable "master_ami_id" {
description = "ID of AMI 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 "win_slave_ami_id" {
description = "ID of AMI to use for windows 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 bewtween 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 = {
}
}