Cleanup
Disable Discord Notifications for now
Revert "Disable Discord Notifications for now"
This reverts commit 4acd1a613e
.
This commit is contained in:
@@ -20,10 +20,10 @@ resource "local_sensitive_file" "ssh_private_key" {
|
||||
}
|
||||
|
||||
resource "hcloud_server" "under_test" {
|
||||
name = var.hcloud_server_name
|
||||
name = var.hcloud_server_under_test_name
|
||||
labels = { "os" = "coreos" }
|
||||
|
||||
server_type = "cx31"
|
||||
server_type = var.hcloud_server_under_test_type
|
||||
datacenter = var.hcloud_server_datacenter
|
||||
|
||||
# Image is ignored, as we boot into rescue mode, but is a required field
|
||||
@@ -61,28 +61,9 @@ resource "hcloud_server" "under_test" {
|
||||
inline = [
|
||||
"set -x",
|
||||
"set -e",
|
||||
# "apt update",
|
||||
# "apt install -y cargo",
|
||||
# "cargo install coreos-installer",
|
||||
"chmod 755 /usr/local/bin/coreos-installer",
|
||||
# Download and install Fedora CoreOS to /dev/sda
|
||||
"coreos-installer install /dev/sda -i /root/setup.ign",
|
||||
"shutdown -r now"
|
||||
]
|
||||
}
|
||||
|
||||
# # Configure CoreOS after installation
|
||||
# provisioner "remote-exec" {
|
||||
# connection {
|
||||
# host = hcloud_server.under_test.ipv4_address
|
||||
# timeout = "1m"
|
||||
# agent = true
|
||||
# user = "core"
|
||||
# }
|
||||
#
|
||||
# inline = [
|
||||
# "sudo hostnamectl set-hostname ${hcloud_server.under_test.name}"
|
||||
# # Add additional commands if needed
|
||||
# ]
|
||||
# }
|
||||
}
|
||||
|
Reference in New Issue
Block a user