mirror of
https://github.com/2martens/terraform.git
synced 2026-10-17 15:46:52 +02:00
Fixed host values for provisioners
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
resource "null_resource" "install_setup" {
|
resource "null_resource" "install_setup" {
|
||||||
connection {
|
connection {
|
||||||
host = hcloud_server_network.manager_private[0].ip
|
host = hcloud_server.manager[0].ipv6_address
|
||||||
user = "root"
|
user = "root"
|
||||||
type = "ssh"
|
type = "ssh"
|
||||||
private_key = var.terraform_private_ssh_key
|
private_key = var.terraform_private_ssh_key
|
||||||
@@ -44,7 +44,7 @@ resource "null_resource" "install_argocd_single" {
|
|||||||
count = var.number_nodes < 3 ? 1 : 0
|
count = var.number_nodes < 3 ? 1 : 0
|
||||||
|
|
||||||
connection {
|
connection {
|
||||||
host = hcloud_server_network.manager_private[0].ip
|
host = hcloud_server.manager[0].ipv6_address
|
||||||
user = "root"
|
user = "root"
|
||||||
type = "ssh"
|
type = "ssh"
|
||||||
private_key = var.terraform_private_ssh_key
|
private_key = var.terraform_private_ssh_key
|
||||||
@@ -66,7 +66,7 @@ resource "null_resource" "install_argocd_ha" {
|
|||||||
count = var.number_nodes >= 3 ? 1 : 0
|
count = var.number_nodes >= 3 ? 1 : 0
|
||||||
|
|
||||||
connection {
|
connection {
|
||||||
host = hcloud_server_network.manager_private[0].ip
|
host = hcloud_server.manager[0].ipv6_address
|
||||||
user = "root"
|
user = "root"
|
||||||
type = "ssh"
|
type = "ssh"
|
||||||
private_key = var.terraform_private_ssh_key
|
private_key = var.terraform_private_ssh_key
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ resource "null_resource" "setup_tokens" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
connection {
|
connection {
|
||||||
host = hcloud_server_network.manager_private[0].ip
|
host = hcloud_server.manager[0].ipv6_address
|
||||||
user = "root"
|
user = "root"
|
||||||
type = "ssh"
|
type = "ssh"
|
||||||
private_key = var.terraform_private_ssh_key
|
private_key = var.terraform_private_ssh_key
|
||||||
@@ -134,7 +134,7 @@ resource "null_resource" "join_nodes" {
|
|||||||
rerun = random_id.cluster_token.hex
|
rerun = random_id.cluster_token.hex
|
||||||
}
|
}
|
||||||
connection {
|
connection {
|
||||||
host = element(hcloud_server_network.manager_private.*.ip, count.index + 1)
|
host = element(hcloud_server.manager.*.ipv6_address, count.index + 1)
|
||||||
user = "root"
|
user = "root"
|
||||||
type = "ssh"
|
type = "ssh"
|
||||||
private_key = var.terraform_private_ssh_key
|
private_key = var.terraform_private_ssh_key
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ resource "null_resource" "join_workers" {
|
|||||||
rerun = random_id.cluster_token.hex
|
rerun = random_id.cluster_token.hex
|
||||||
}
|
}
|
||||||
connection {
|
connection {
|
||||||
host = element(hcloud_server_network.worker_private.*.ip, count.index)
|
host = element(hcloud_server.worker.*.ipv6_address, count.index)
|
||||||
user = "root"
|
user = "root"
|
||||||
type = "ssh"
|
type = "ssh"
|
||||||
private_key = var.terraform_private_ssh_key
|
private_key = var.terraform_private_ssh_key
|
||||||
|
|||||||
Reference in New Issue
Block a user