run terraform fmt

This commit is contained in:
phaer 2022-01-25 14:04:12 +01:00
parent f6046c4f96
commit 9bb945a302
3 changed files with 24 additions and 18 deletions

View File

@ -28,7 +28,8 @@ resource "hcloud_server" "agents" {
connection { connection {
user = "root" user = "root"
private_key = file(var.private_key) private_key = var.private_key == null ? null : file(var.private_key)
agent_identity = var.private_key == null ? file(var.public_key) : null
host = self.ipv4_address host = self.ipv4_address
} }
} }
@ -39,7 +40,8 @@ resource "hcloud_server" "agents" {
connection { connection {
user = "root" user = "root"
private_key = file(var.private_key) private_key = var.private_key == null ? null : file(var.private_key)
agent_identity = var.private_key == null ? file(var.public_key) : null
host = self.ipv4_address host = self.ipv4_address
} }
} }

View File

@ -24,7 +24,8 @@ resource "hcloud_server" "first_control_plane" {
connection { connection {
user = "root" user = "root"
private_key = file(var.private_key) private_key = var.private_key == null ? null : file(var.private_key)
agent_identity = var.private_key == null ? file(var.public_key) : null
host = self.ipv4_address host = self.ipv4_address
} }
} }
@ -35,7 +36,8 @@ resource "hcloud_server" "first_control_plane" {
connection { connection {
user = "root" user = "root"
private_key = file(var.private_key) private_key = var.private_key == null ? null : file(var.private_key)
agent_identity = var.private_key == null ? file(var.public_key) : null
host = self.ipv4_address host = self.ipv4_address
} }
} }

View File

@ -27,7 +27,8 @@ resource "hcloud_server" "control_planes" {
connection { connection {
user = "root" user = "root"
private_key = file(var.private_key) private_key = var.private_key == null ? null : file(var.private_key)
agent_identity = var.private_key == null ? file(var.public_key) : null
host = self.ipv4_address host = self.ipv4_address
} }
} }
@ -38,7 +39,8 @@ resource "hcloud_server" "control_planes" {
connection { connection {
user = "root" user = "root"
private_key = file(var.private_key) private_key = var.private_key == null ? null : file(var.private_key)
agent_identity = var.private_key == null ? file(var.public_key) : null
host = self.ipv4_address host = self.ipv4_address
} }
} }