Skip to content
This repository has been archived by the owner on Aug 18, 2023. It is now read-only.

Commit

Permalink
Remove domain name from dns config (#31)
Browse files Browse the repository at this point in the history
Fixes #29

Signed-off-by: Yussuf Shaikh <yussuf@us.ibm.com>
  • Loading branch information
yussufsh authored Jul 29, 2020
1 parent 75b1214 commit f34c667
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions modules/4_nodes/nodes.tf
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ data "ignition_file" "b_hostname" {
path = "/etc/hostname"
content {
content = <<EOF
bootstrap.${var.cluster_id}.${var.cluster_domain}
bootstrap
EOF
}
}
Expand All @@ -69,7 +69,7 @@ data "ignition_file" "m_hostname" {
path = "/etc/hostname"
content {
content = <<EOF
master-${count.index}.${var.cluster_id}.${var.cluster_domain}
master-${count.index}
EOF
}
}
Expand All @@ -81,7 +81,7 @@ data "ignition_file" "w_hostname" {

content {
content = <<EOF
worker-${count.index}.${var.cluster_id}.${var.cluster_domain}
worker-${count.index}
EOF
}
}
Expand Down
6 changes: 3 additions & 3 deletions modules/5_install/install.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,20 @@ locals {
bootstrap_info = {
ip = var.bootstrap_ip,
mac = var.bootstrap_mac,
name = "bootstrap.${var.cluster_id}.${var.cluster_domain}"
name = "bootstrap"
}
master_info = [ for ix in range(length(var.master_ips)) :
{
ip = var.master_ips[ix],
mac = var.master_macs[ix],
name = "master-${ix}.${var.cluster_id}.${var.cluster_domain}"
name = "master-${ix}"
}
]
worker_info = [ for ix in range(length(var.worker_ips)) :
{
ip = var.worker_ips[ix],
mac = var.worker_macs[ix],
name = "worker-${ix}.${var.cluster_id}.${var.cluster_domain}"
name = "worker-${ix}"
}
]

Expand Down

0 comments on commit f34c667

Please sign in to comment.