Commit 8028aa96 authored by Alex Hanselka's avatar Alex Hanselka
Browse files

feat: allow choice of server location

parent 0df0454c
Pipeline #3277 passed with stage
in 3 minutes and 23 seconds
......@@ -2,6 +2,11 @@ variable "node_name" {}
variable "image" {}
variable "type" {}
variable "server_location" {
type = "string"
default = "nbg1"
}
variable "ansible_groups" {
type = "list"
default = []
......@@ -33,6 +38,7 @@ resource "hcloud_server" "generic-hcloud" {
name = "${var.node_name}"
image = "${var.image}"
server_type = "${var.type}"
location = "${var.server_location}"
ssh_keys = ["${data.hcloud_ssh_key.ansible.id}", "${data.hcloud_ssh_key.ahanselka.id}"]
provisioner "local-exec" {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment