Skip to content

Commit 2f086f0

Browse files
Merge pull request #9 from infraspecdev/refactor-module
fix tflint issues
2 parents a20306b + b2d1898 commit 2f086f0

File tree

4 files changed

+9
-28
lines changed

4 files changed

+9
-28
lines changed

examples/complete-gitlab-setup/main.tf

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,17 @@
11
module "gitlab" {
22
source = "../../"
33

4-
create_gitlab_domain = true
5-
gitlab_domain = "gitlab"
6-
gitlab_fqdn = "gitlab.example.com"
7-
hosted_zone = "example.com"
8-
private_subnet_id = "subnet-u8dy389d78qhh338"
9-
public_subnet_ids = [
10-
"subnet-h89dj8d3j2jd8", "subnet-jd8jq3dj89qj9jd3", "subnet-jd89jh89dj9dj9j9qw"
11-
]
12-
volume_size = 30
13-
volume_type = "gp3"
4+
gitlab_domain = "gitlab"
5+
gitlab_fqdn = "gitlab.example.com"
6+
hosted_zone = "example.com"
7+
private_subnet_id = "subnet-u8dy389d78qhh338"
8+
public_subnet_ids = ["subnet-h89dj8d3j2jd8", "subnet-jd8jq3dj89qj9jd3", "subnet-jd89jh89dj9dj9j9qw"]
149
vpc_id = "vpc-89rh423789hr982h98"
15-
create_acm_certificate = true
16-
healthcheck_matcher = "200"
17-
healthcheck_path = "/-/readiness"
1810
gitlab_ssh_public_key = "ssh publickey"
19-
gitlab_pg_allocated_storage = 100
20-
gitlab_pg_db_instance_class = "db.m5.large"
21-
gitlab_pg_db_name = "gitlabhq_production"
22-
gitlab_pg_engine_version = "12.11"
2311
gitlab_pg_password = "foobarbaz"
2412
gitlab_pg_publicly_accessible = false
25-
gitlab_pg_storage_type = "gp3"
2613
gitlab_pg_subnet_ids = ["subnet-u8dy389d78qhh338", "subnet-hde38hd89qhdwhw"]
2714
gitlab_pg_username = "gitlab"
28-
gitlab_redis_engine_version = "7.0"
29-
gitlab_redis_node_type = "cache.t3.medium"
3015
gitlab_redis_create_parameter_group = true
3116
gitlab_redis_parameter_group = {
3217
name = "gitlab-redis"

examples/complete-gitlab-setup/outputs.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ output "gitlab_redis_address" {
99
}
1010

1111
output "gitlab_url" {
12-
value = module.gitlab.gitlab_complete_url
12+
value = module.gitlab.gitlab_complete_url
13+
description = "Gitlab url including the url schema"
1314
}

outputs.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,6 @@ output "gitlab_redis_address" {
3939
}
4040

4141
output "gitlab_complete_url" {
42-
value = local.gitlab_complete_url
42+
value = local.gitlab_complete_url
43+
description = "Gitlab url including the url schema"
4344
}

variables.tf

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,6 @@ variable "healthcheck_interval" {
9999
default = 30
100100
}
101101

102-
variable "healthcheck_matcher" {
103-
type = string
104-
default = "200"
105-
description = "Response codes to use when checking for a healthy responses from a target."
106-
}
107-
108102
variable "healthcheck_path" {
109103
type = string
110104
default = "/-/readiness"

0 commit comments

Comments
 (0)