Fudge

infrastructure / terraform / main.tf

Commits | bovarysme Add instructions to upgrade OpenBSD in README.md Committed on Oct 18, 2020

484 B | Download

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
provider "vultr" {
  api_key = "${var.vultr_api_key}"
}

resource "vultr_server" "puffer" {
  region_id   = "${var.vultr_region_amsterdam}"
  os_id       = "${var.vultr_os_openbsd_67_x64}"
  plan_id     = "${var.vultr_plan_1gb}"
  enable_ipv6 = true
  ssh_key_ids = ["${vultr_ssh_key.default.id}"]
  hostname    = "${var.hostname}"
  label       = "puffer"
}

resource "vultr_ssh_key" "default" {
  name    = "${var.ssh_key["name"]}"
  ssh_key = "${file("${var.ssh_key["path"]}")}"
}