Skip to content
Snippets Groups Projects
Commit 9722efb4 authored by Nathan Rodet's avatar Nathan Rodet
Browse files

simplified name

parent 7d64b182
Branches
No related tags found
No related merge requests found
......@@ -62,9 +62,9 @@ runcmd:
# Install Atrium
#
- "mkdir -p /root/atrium/data && mkdir -p /root/atrium/letsencrypt_cache"
- 'sed -i "s/%atrium_hostname%/$(scw-userdata atrium_hostname)/g" /root/atrium.yaml'
- 'sed -i "s/%atrium_letsencrypt_email%/$(scw-userdata atrium_letsencrypt_email)/g" /root/atrium.yaml'
- 'sed -i "s/%atrium_count_index%/$(scw-userdata atrium_count_index)/g" /root/atrium.yaml'
- 'sed -i "s/%atrium_private_ip%/$(scw-userdata atrium_private_ip)/g" /root/atrium.yaml'
- "mv /root/atrium.yaml /root/atrium/atrium.yaml"
- "chown -Rf 1000:1000 /root/atrium"
#
......
......
......@@ -14,7 +14,7 @@ resource "scaleway_instance_ip" "public_ip" {
resource "scaleway_domain_record" "subdomain_record" {
count = var.INSTANCES_COUNT
dns_zone = "daag.alpha.grandlyon.com"
name = "${count.index}-${var.ENVIRONMENT}"
name = "${var.ENVIRONMENT}${count.index}"
type = "A"
data = scaleway_instance_ip.public_ip[count.index].address
ttl = 3600
......@@ -23,7 +23,7 @@ resource "scaleway_domain_record" "subdomain_record" {
resource "scaleway_domain_record" "host_subdomain_record" {
count = var.INSTANCES_COUNT
dns_zone = "daag.alpha.grandlyon.com"
name = "*.${count.index}-${var.ENVIRONMENT}"
name = "*.${var.ENVIRONMENT}${count.index}"
type = "A"
data = scaleway_instance_ip.public_ip[count.index].address
ttl = 3600
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment