Disable Discord Notifications for now

Revert "Disable Discord Notifications for now"

This reverts commit 4acd1a613e.
This commit is contained in:
Tobias Manske 2022-07-14 05:00:55 +02:00
parent 1fab179066
commit cdb62807d9
Signed by: tobias
GPG Key ID: E83C743C1FC2F79A
3 changed files with 15 additions and 39 deletions

View File

@ -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
# ]
# }
}

View File

@ -23,27 +23,26 @@ variable "files_dir" {
default = "artifacts/"
}
variable "hcloud_server_type" {
variable "hcloud_server_under_test_type" {
description = "vServer type name, lookup via `hcloud server-type list`"
type = string
default = "cx31"
}
variable "hcloud_server_tester_type" {
description = "vServer type name, lookup via `hcloud server-type list`"
type = string
default = "cx11"
}
variable "hcloud_server_under_test_name" {
description = "Name of the server"
type = string
default = "www1"
}
variable "hcloud_server_datacenter" {
description = "Desired datacenter location name, lookup via `hcloud datacenter list`"
type = string
default = "hel1-dc2"
}
variable "hcloud_server_name" {
description = "Name of the server"
type = string
default = "www1"
}
# Update version to the latest release of fcct
variable "tools_fcct_version" {
description = "See https://github.com/coreos/fcct/releases for available versions"
type = string
default = "0.6.0"
}

View File

@ -15,10 +15,6 @@ terraform {
version = ">= 3.1.0"
}
ignition = {
source = "community-terraform-providers/ignition"
version = ">= 2.1.0"
}
}
}