Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 5 additions & 20 deletions examples/complete-gitlab-setup/main.tf
Original file line number Diff line number Diff line change
@@ -1,32 +1,17 @@
module "gitlab" {
source = "../../"

create_gitlab_domain = true
gitlab_domain = "gitlab"
gitlab_fqdn = "gitlab.example.com"
hosted_zone = "example.com"
private_subnet_id = "subnet-u8dy389d78qhh338"
public_subnet_ids = [
"subnet-h89dj8d3j2jd8", "subnet-jd8jq3dj89qj9jd3", "subnet-jd89jh89dj9dj9j9qw"
]
volume_size = 30
volume_type = "gp3"
gitlab_domain = "gitlab"
gitlab_fqdn = "gitlab.example.com"
hosted_zone = "example.com"
private_subnet_id = "subnet-u8dy389d78qhh338"
public_subnet_ids = ["subnet-h89dj8d3j2jd8", "subnet-jd8jq3dj89qj9jd3", "subnet-jd89jh89dj9dj9j9qw"]
vpc_id = "vpc-89rh423789hr982h98"
create_acm_certificate = true
healthcheck_matcher = "200"
healthcheck_path = "/-/readiness"
gitlab_ssh_public_key = "ssh publickey"
gitlab_pg_allocated_storage = 100
gitlab_pg_db_instance_class = "db.m5.large"
gitlab_pg_db_name = "gitlabhq_production"
gitlab_pg_engine_version = "12.11"
gitlab_pg_password = "foobarbaz"
gitlab_pg_publicly_accessible = false
gitlab_pg_storage_type = "gp3"
gitlab_pg_subnet_ids = ["subnet-u8dy389d78qhh338", "subnet-hde38hd89qhdwhw"]
gitlab_pg_username = "gitlab"
gitlab_redis_engine_version = "7.0"
gitlab_redis_node_type = "cache.t3.medium"
gitlab_redis_create_parameter_group = true
gitlab_redis_parameter_group = {
name = "gitlab-redis"
Expand Down
3 changes: 2 additions & 1 deletion examples/complete-gitlab-setup/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ output "gitlab_redis_address" {
}

output "gitlab_url" {
value = module.gitlab.gitlab_complete_url
value = module.gitlab.gitlab_complete_url
description = "Gitlab url including the url schema"
}
3 changes: 2 additions & 1 deletion outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@ output "gitlab_redis_address" {
}

output "gitlab_complete_url" {
value = local.gitlab_complete_url
value = local.gitlab_complete_url
description = "Gitlab url including the url schema"
}
6 changes: 0 additions & 6 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,6 @@ variable "healthcheck_interval" {
default = 30
}

variable "healthcheck_matcher" {
type = string
default = "200"
description = "Response codes to use when checking for a healthy responses from a target."
}

variable "healthcheck_path" {
type = string
default = "/-/readiness"
Expand Down