12345678910111213141516171819202122232425 |
- provider "pass" {
- store_dir = "../secrets"
- refresh_store = false
- }
- data "pass_password" "hcloud-token" {
- path = "hcloud-token"
- }
- provider "hcloud" {
- token = data.pass_password.hcloud-token.password
- }
- resource "hcloud_ssh_key" "concourse-web" {
- name = "conocurse-web"
- public_key = file("../public-keys/ssh/concourse")
- }
- resource "hcloud_server" "concourse-web" {
- name = "concourse-web"
- server_type = "cx11"
- image = "ubuntu-20.04"
- ssh_keys = [hcloud_ssh_key.concourse-web.name]
- }
|