Skip to content

Commit

Permalink
Remove wildcard certificate generation
Browse files Browse the repository at this point in the history
  • Loading branch information
cmd-ntrf committed Jul 22, 2024
1 parent 32e4bc2 commit bfcde3a
Show file tree
Hide file tree
Showing 18 changed files with 1 addition and 306 deletions.
135 changes: 0 additions & 135 deletions dns/acme/main.tf

This file was deleted.

11 changes: 0 additions & 11 deletions dns/acme/versions.tf

This file was deleted.

15 changes: 0 additions & 15 deletions dns/cloudflare/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,6 @@ resource "cloudflare_record" "records" {
}
}

module "acme" {
count = var.issue_wildcard_cert ? 1 : 0
source = "../acme"
dns_provider = "cloudflare"
name = lower(var.name)
domain = var.domain
email = var.email
sudoer_username = var.sudoer_username
bastions = var.bastions
public_instances = var.public_instances
ssh_private_key = var.ssh_private_key
ssl_tags = var.ssl_tags
acme_key_pem = var.acme_key_pem
}

output "hostnames" {
value = distinct(compact([for record in module.record_generator.records : join(".", [record.name, var.domain]) if record.type == "A" ]))
}
30 changes: 0 additions & 30 deletions dns/cloudflare/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,6 @@ variable "name" {
variable "domain" {
}

variable "email" {
description = "Define the email address used to issue the wildcard certificate. This address will get certificate expiration reminder."
type = string
default = ""
}

variable "issue_wildcard_cert" {
description = "Use DNS-01 challenge to generate a wildcard certificate *.name.domain_name"
default = false
}

variable "acme_key_pem" {
type = string
default = ""
}

variable "sudoer_username" {
}

variable "vhosts" {
description = "List of vhost dns records to create as vhost.name.domain_name."
type = list(string)
Expand All @@ -39,15 +20,4 @@ variable "vhost_tag" {
default = "proxy"
}

variable "ssl_tags" {
description = "Define a list of tags the instances that will receive a copy of the wildcard SSL certificate can have."
default = ["proxy", "ssl"]
}

variable "public_instances" { }

variable "bastions" { }

variable "ssh_private_key" {
type = string
}
18 changes: 0 additions & 18 deletions dns/gcloud/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,24 +31,6 @@ resource "google_dns_record_set" "records" {
ttl = 300
}

module "acme" {
count = var.issue_wildcard_cert ? 1 : 0
source = "../acme"
dns_provider = "gcloud"
dns_provider_config = {
GCE_PROJECT = var.project
}
name = lower(var.name)
domain = var.domain
email = var.email
sudoer_username = var.sudoer_username
bastions = var.bastions
public_instances = var.public_instances
ssh_private_key = var.ssh_private_key
ssl_tags = var.ssl_tags
acme_key_pem = var.acme_key_pem
}

output "hostnames" {
value = distinct(compact([for record in module.record_generator.records : join(".", [record.name, var.domain]) if record.type == "A" ]))
}
30 changes: 0 additions & 30 deletions dns/gcloud/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,6 @@ variable "name" {
variable "domain" {
}

variable "email" {
description = "Define the email address used to issue the wildcard certificate. This address will get certificate expiration reminder."
type = string
default = ""
}

variable "issue_wildcard_cert" {
description = "Use DNS-01 challenge to generate a wildcard certificate *.name.domain_name"
default = false
}

variable "acme_key_pem" {
type = string
default = ""
}

variable "sudoer_username" {
}

variable "vhosts" {
description = "List of vhost dns records to create as vhost.name.domain_name."
type = list(string)
Expand All @@ -45,15 +26,4 @@ variable "vhost_tag" {
default = "proxy"
}

variable "ssl_tags" {
description = "Define a list of tags the instances that will receive a copy of the wildcard SSL certificate can have."
default = ["proxy", "ssl"]
}

variable "public_instances" { }

variable "bastions" { }

variable "ssh_private_key" {
type = string
}
2 changes: 1 addition & 1 deletion dns/txt/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ variable "vhosts" {
description = "List of vhost records A to create."
type = list(string)
default = ["ipa", "jupyter", "mokey", "explore"]
}
}
6 changes: 0 additions & 6 deletions examples/advanced/basic_puppet/openstack/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@ output "sudoer" {
# source = "git::https://github.com/ComputeCanada/magic_castle.git//dns/cloudflare"
# name = module.openstack.cluster_name
# domain = module.openstack.domain
# bastions = module.openstack.bastions
# public_instances = module.openstack.public_instances
# ssh_private_key = module.openstack.ssh_private_key
# sudoer_username = module.openstack.accounts.sudoer.username
# }

## Uncomment to register your domain name with Google Cloud
Expand All @@ -48,10 +45,7 @@ output "sudoer" {
# zone_name = "you-zone-name"
# name = module.openstack.cluster_name
# domain = module.openstack.domain
# bastions = module.openstack.bastions
# public_instances = module.openstack.public_instances
# ssh_private_key = module.openstack.ssh_private_key
# sudoer_username = module.openstack.accounts.sudoer.username
# }

# output "hostnames" {
Expand Down
6 changes: 0 additions & 6 deletions examples/advanced/k8s/openstack/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@ output "public_ip" {
# source = "git::https://github.com/ComputeCanada/magic_castle.git//dns/cloudflare"
# name = module.openstack.cluster_name
# domain = module.openstack.domain
# bastions = module.openstack.bastions
# public_instances = module.openstack.public_instances
# ssh_private_key = module.openstack.ssh_private_key
# sudoer_username = module.openstack.accounts.sudoer.username
# }

## Uncomment to register your domain name with Google Cloud
Expand All @@ -48,10 +45,7 @@ output "public_ip" {
# zone_name = "you-zone-name"
# name = module.openstack.cluster_name
# domain = module.openstack.domain
# bastions = module.openstack.bastions
# public_instances = module.openstack.public_instances
# ssh_private_key = module.openstack.ssh_private_key
# sudoer_username = module.openstack.accounts.sudoer.username
# }

# output "hostnames" {
Expand Down
6 changes: 0 additions & 6 deletions examples/advanced/lustre/openstack/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,7 @@ output "sudoer" {
# source = "git::https://github.com/ComputeCanada/magic_castle.git//dns/cloudflare"
# name = module.openstack.cluster_name
# domain = module.openstack.domain
# bastions = module.openstack.bastions
# public_instances = module.openstack.public_instances
# ssh_private_key = module.openstack.ssh_private_key
# sudoer_username = module.openstack.accounts.sudoer.username
# }

## Uncomment to register your domain name with Google Cloud
Expand All @@ -57,10 +54,7 @@ output "sudoer" {
# zone_name = "you-zone-name"
# name = module.openstack.cluster_name
# domain = module.openstack.domain
# bastions = module.openstack.bastions
# public_instances = module.openstack.public_instances
# ssh_private_key = module.openstack.ssh_private_key
# sudoer_username = module.openstack.accounts.sudoer.username
# }

# output "hostnames" {
Expand Down
6 changes: 0 additions & 6 deletions examples/advanced/spot_instances/aws/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,7 @@ output "public_ip" {
# source = "git::https://github.com/ComputeCanada/magic_castle.git//dns/cloudflare"
# name = module.aws.cluster_name
# domain = module.aws.domain
# bastions = module.aws.bastions
# public_instances = module.aws.public_instances
# ssh_private_key = module.aws.ssh_private_key
# sudoer_username = module.aws.accounts.sudoer.username
# }

## Uncomment to register your domain name with Google Cloud
Expand All @@ -66,10 +63,7 @@ output "public_ip" {
# zone_name = "you-zone-name"
# name = module.aws.cluster_name
# domain = module.aws.domain
# bastions = module.aws.bastions
# public_instances = module.aws.public_instances
# ssh_private_key = module.aws.ssh_private_key
# sudoer_username = module.aws.accounts.sudoer.username
# }

# output "hostnames" {
Expand Down
6 changes: 0 additions & 6 deletions examples/advanced/spot_instances/azure/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,7 @@ output "public_ip" {
# source = "git::https://github.com/ComputeCanada/magic_castle.git//dns/cloudflare"
# name = module.azure.cluster_name
# domain = module.azure.domain
# bastions = module.azure.bastions
# public_instances = module.azure.public_instances
# ssh_private_key = module.azure.ssh_private_key
# sudoer_username = module.azure.accounts.sudoer.username
# }

## Uncomment to register your domain name with Google Cloud
Expand All @@ -70,10 +67,7 @@ output "public_ip" {
# zone_name = "you-zone-name"
# name = module.azure.cluster_name
# domain = module.azure.domain
# bastions = module.azure.bastions
# public_instances = module.azure.public_instances
# ssh_private_key = module.azure.ssh_private_key
# sudoer_username = module.azure.accounts.sudoer.username
# }

# output "hostnames" {
Expand Down
Loading

0 comments on commit bfcde3a

Please sign in to comment.