mirror of
https://github.com/2martens/terraform.git
synced 2026-10-19 10:46:51 +02:00
Correct user for ssh to servers
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
resource "null_resource" "install_setup" {
|
resource "null_resource" "install_setup" {
|
||||||
connection {
|
connection {
|
||||||
host = hcloud_server.manager[0].ipv6_address
|
host = hcloud_server.manager[0].ipv6_address
|
||||||
user = "root"
|
user = "terraform"
|
||||||
type = "ssh"
|
type = "ssh"
|
||||||
private_key = var.terraform_private_ssh_key
|
private_key = var.terraform_private_ssh_key
|
||||||
timeout = "2m"
|
timeout = "2m"
|
||||||
@@ -45,7 +45,7 @@ resource "null_resource" "install_argocd_single" {
|
|||||||
|
|
||||||
connection {
|
connection {
|
||||||
host = hcloud_server.manager[0].ipv6_address
|
host = hcloud_server.manager[0].ipv6_address
|
||||||
user = "root"
|
user = "terraform"
|
||||||
type = "ssh"
|
type = "ssh"
|
||||||
private_key = var.terraform_private_ssh_key
|
private_key = var.terraform_private_ssh_key
|
||||||
timeout = "2m"
|
timeout = "2m"
|
||||||
@@ -67,7 +67,7 @@ resource "null_resource" "install_argocd_ha" {
|
|||||||
|
|
||||||
connection {
|
connection {
|
||||||
host = hcloud_server.manager[0].ipv6_address
|
host = hcloud_server.manager[0].ipv6_address
|
||||||
user = "root"
|
user = "terraform"
|
||||||
type = "ssh"
|
type = "ssh"
|
||||||
private_key = var.terraform_private_ssh_key
|
private_key = var.terraform_private_ssh_key
|
||||||
timeout = "2m"
|
timeout = "2m"
|
||||||
|
|||||||
@@ -116,7 +116,7 @@ resource "null_resource" "setup_tokens" {
|
|||||||
|
|
||||||
connection {
|
connection {
|
||||||
host = hcloud_server.manager[0].ipv6_address
|
host = hcloud_server.manager[0].ipv6_address
|
||||||
user = "root"
|
user = "terraform"
|
||||||
type = "ssh"
|
type = "ssh"
|
||||||
private_key = var.terraform_private_ssh_key
|
private_key = var.terraform_private_ssh_key
|
||||||
timeout = "2m"
|
timeout = "2m"
|
||||||
@@ -155,7 +155,7 @@ resource "null_resource" "join_nodes" {
|
|||||||
}
|
}
|
||||||
connection {
|
connection {
|
||||||
host = element(hcloud_server.manager.*.ipv6_address, count.index + 1)
|
host = element(hcloud_server.manager.*.ipv6_address, count.index + 1)
|
||||||
user = "root"
|
user = "terraform"
|
||||||
type = "ssh"
|
type = "ssh"
|
||||||
private_key = var.terraform_private_ssh_key
|
private_key = var.terraform_private_ssh_key
|
||||||
timeout = "20m"
|
timeout = "20m"
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ resource "null_resource" "join_workers" {
|
|||||||
}
|
}
|
||||||
connection {
|
connection {
|
||||||
host = element(hcloud_server.worker.*.ipv6_address, count.index)
|
host = element(hcloud_server.worker.*.ipv6_address, count.index)
|
||||||
user = "root"
|
user = "terraform"
|
||||||
type = "ssh"
|
type = "ssh"
|
||||||
private_key = var.terraform_private_ssh_key
|
private_key = var.terraform_private_ssh_key
|
||||||
timeout = "20m"
|
timeout = "20m"
|
||||||
|
|||||||
Reference in New Issue
Block a user