Created variables file for Packer
This commit is contained in:
1
packer/packer.auto.pkrvars.hcl.sample
Normal file
1
packer/packer.auto.pkrvars.hcl.sample
Normal file
@@ -0,0 +1 @@
|
||||
hcloud_api_token = ""
|
@@ -1,4 +1,6 @@
|
||||
source "hcloud" "main" {
|
||||
token = var.hcloud_api_token
|
||||
|
||||
image = "ubuntu-20.04"
|
||||
server_name = "wireguard-{{timestamp}}"
|
||||
server_type = "cx11"
|
||||
|
5
packer/variables.pkr.hcl
Normal file
5
packer/variables.pkr.hcl
Normal file
@@ -0,0 +1,5 @@
|
||||
variable "hcloud_api_token" {
|
||||
type = string
|
||||
description = "Hetzner Cloud API token"
|
||||
default = ""
|
||||
}
|
Reference in New Issue
Block a user