-
Notifications
You must be signed in to change notification settings - Fork 2
/
variables.tf
133 lines (110 loc) · 8.48 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
variable "aws_region" {
description = "AWS region to launch servers."
default = "us-west-1"
}
variable "key_name" {
description = "Desired name of AWS key pair"
}
variable "artifactory_version" {
description = "Artifactory version to deploy"
default = "5.8.4"
}
variable "artifactory_license_1" {
description = "Artifactory Enterprise License"
}
variable "artifactory_license_2" {
description = "Artifactory Enterprise License"
}
variable "artifactory_license_3" {
description = "Artifactory Enterprise License"
default = ""
}
variable "artifactory_license_4" {
description = "Artifactory Enterprise License"
default = ""
}
variable "artifactory_license_5" {
description = "Artifactory Enterprise License"
default = ""
}
variable "volume_size" {
description = "Disk size for each EC2 instances"
default = 250
}
variable "artifactory_instance_type" {
default = "m4.xlarge"
description = "Artifactory EC2 instance type"
}
variable "extra_java_options" {
default = "-server -Xms2g -Xmx14g -Xss256k -XX:+UseG1GC -XX:OnOutOfMemoryError=\\\\\\\"kill -9 %p\\\\\\\""
description = "Setting Java Memory Parameters for Artifactory. Learn about system requirements for Artifactory https://www.jfrog.com/confluence/display/RTF/System+Requirements#SystemRequirements-RecommendedHardware."
}
variable "bucket_name" {
description = "AWS S3 Buket name"
default = "artifactory-enterprise-bucket"
}
variable "db_name" {
description = "MySQL database name"
default = "artdb"
}
variable "db_user" {
description = "Database user name"
default = "artifactory"
}
variable "db_instance_class" {
description = "The database instance type"
default = "db.t2.small"
}
variable "db_password" {
description = "Database password"
default = "password"
}
variable "db_allocated_storage" {
description = "The size of the database (Gb)"
default = "5"
}
variable "master_key" {
description = "Master key for Artifactory cluster. Generate master.key using command '$openssl rand -hex 16'"
default = "35767fa0164bac66b6cccb8880babefb"
}
variable "secondary_node_count" {
description = "Desired number of Artifactory secondary nodes"
default = 0
}
variable "ssl_certificate" {
description = "To use Artifactory as docker registry you need to provide wild card valid Certificate. Provide your SSL Certificate."
default = "-----BEGIN CERTIFICATE----- MIIFhzCCA2+gAwIBAgIJALC4r5BQWZE4MA0GCSqGSIb3DQEBCwUAMFoxCzAJBgNV BAYTAlVTMRMwEQYDVQQIDApDYWxpZm9ybmlhMRMwEQYDVQQHDApTYW50YUNsYXJh MQswCQYDVQQKDAJJVDEUMBIGA1UEAwwLKi5sb2NhbGhvc3QwHhcNMTgwMTE3MTk0 NjI4WhcNMTkwMTA4MTk0NjI4WjBaMQswCQYDVQQGEwJVUzETMBEGA1UECAwKQ2Fs aWZvcm5pYTETMBEGA1UEBwwKU2FudGFDbGFyYTELMAkGA1UECgwCSVQxFDASBgNV BAMMCyoubG9jYWxob3N0MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA 7KfOWDQlov8cMa8r/lcJqiWZaH9myQC74Vbe0HXsntQbcvljkjG2P7ebm5dd9Bzc sauNOJpbKf5AhFK1iwJUAkciGc1LR4k8wfWmQM3NPS8hrqrtH20zqNpdFRpNYjja JofwccPNm030GhhZkZ95TpruvmswMDwspl3jfqdcc/eiQsHcKyGnV2a+UAeoqe7J mHhmhRy1MLqAjF5U1GrUYUONA+22iRDJb4c9B91QoWvsnXpdA9NKV/mmA3/rIdx6 Ld2IPRdrIw2K5sAnXsh3bx2oCSvSfussf0x+4XDrnsaHVfjwvfNL8ECOuac2Oi/E WOp9528gOohpFAuwEt63Vl5p8/CC9m0HJDTZBKm2l5eD1kdPIj4PvP9Sn9CxGXKQ E1bxWoFxGX8EyRW0b0NK31N7b8JPZ1SoFNiB5amOMNLvR26a7cQrKumTuJeYK9Ja Ja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-----"
}
variable "ssl_certificate_key" {
description = "Provide your SSL Certificate key"
default = "-----BEGIN PRIVATE KEY----- MIIJRAIBADANBgkqhkiG9w0BAQEFAASCCS4wggkqAgEAAoICAQDsp85YNCWi/xwx ryv+VwmqJZlof2bJALvhVt7Qdeye1Bty+WOSMbY/t5ubl130HNyxq404mlsp/kCE UrWLAlQCRyIZzUtHiTzB9aZAzc09LyGuqu0fbTOo2l0VGk1iONomh/Bxw82bTfQa GFmRn3lOmu6+azAwPCymXeN+p1xz96JCwdwrIadXZr5QB6ip7smYeGaFHLUwuoCM XlTUatRhQ40D7baJEMlvhz0H3VCha+ydel0D00pX+aYDf+sh3Hot3Yg9F2sjDYrm wCdeyHdvHagJK9J+6yx/TH7hcOuexodV+PC980vwQI65pzY6L8RY6n3nbyA6iGkU C7AS3rdWXmnz8IL2bQckNNkEqbaXl4PWR08iPg+8/1Kf0LEZcpATVvFagXEZfwTJ FbRvQ0rfU3tvwk9nVKgU2IHlqY4w0u9HbprtxCsq6ZO4l5gr0lolrGExcztHQMDQ S/xkbbGbILKCjH7Uo9KYk4gSlPvQEVuPesos2o/bYRP7O8+6H7YN2DKukcV5iQZa MxtY+MrvAmwPbMzxxyglB96k/PwjitPQl+soBCAIa4Y6CCd5o0kpNUY04VuPkBd1 n9D4a82iabJF2rgnsSepjov4/bl+jmpnpRn+JLS09y/GCfQV2GylQ9tDJAgNnLFl 3dDWVQgTfyiXw/rqZLbNvN/wR44KhQIDAQABAoICAQDm1pAp7UPBCELCG/I3t0KQ GvjWu17RNcwN86SHhl92VcMolSaQ1bjF0h0Q2ccldHm5PHMWAUpnXcAk0mCO5Yh4 aFZVALEraCxBrZGrqJNH2Q9rxwJhIy2+yLD/Apb09iukZfkdnzaRBKrUQWgs6Xd0 OyAh0YBBrJCI/xAG3M0LuUMnBt3xnHQUhv2gJrhYeble5iJqOSRsEZ+OS/1G7aWX 8kI80MS6UguKpEndv/0EV7eHrHHKZ3Ee+z76Lu52Kw9qaaqYnJ0+p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
}
variable "certificate_domain" {
description = "Provide your Certificate Domain Name. For e.g jfrog.team for certificate with *.jfrog.team"
default = "artifactory"
}
variable "artifactory_server_name" {
description = "Provide artifactory server name to be used in Nginx. e.g artifactory for artifactory.jfrog.team"
default = "artifactory"
}
variable "aws_amis" {
type = "map"
default = {
us-east-1 = "ami-6869aa05"
us-west-2 = "ami-7172b611"
us-west-1 = "ami-31490d51"
us-west-2 = "ami-7172b611"
eu-west-1 = "ami-f9dd458a"
eu-west-2 = "ami-886369ec"
eu-central-1 = "ami-ea26ce85"
ap-northeast-1 = "ami-374db956"
ap-northeast-2 = "ami-2b408b45"
ap-southeast-1 = "ami-a59b49c6"
ap-southeast-2 = "ami-dc361ebf"
ap-south-1 = "ami-ffbdd790"
us-east-2 = "ami-f6035893"
ca-central-1 ="ami-730ebd17"
sa-east-1 = "ami-6dd04501"
cn-north-1 = "ami-8e6aa0e3"
}
}