refactor: move images to images/
Signed-off-by: Vojtěch Mareš <vojtech@mares.cz>
This commit is contained in:
parent
ff8f943b3f
commit
1bfc4141b4
3 changed files with 13 additions and 19 deletions
|
|
@ -2,14 +2,13 @@ packer {
|
|||
required_plugins {
|
||||
hcloud = {
|
||||
source = "github.com/hetznercloud/hcloud"
|
||||
version = ">= 1.6.0, <= 2.0.0"
|
||||
version = ">= 1.6.0, < 2.0.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
variable "channel" {
|
||||
type = string
|
||||
default = "stable"
|
||||
locals {
|
||||
flatcar_channel = "stable"
|
||||
}
|
||||
|
||||
variable "hcloud_token" {
|
||||
|
|
@ -37,13 +36,13 @@ build {
|
|||
source "hcloud.flatcar" {
|
||||
name = "x86"
|
||||
server_type = "cx22"
|
||||
snapshot_name = "flatcar-${var.channel}-amd64-${formatdate("YYYY-MM-DD", timestamp())}"
|
||||
snapshot_name = "flatcar-${local.flatcar_channel}-amd64-${formatdate("YYYY-MM-DD", timestamp())}"
|
||||
}
|
||||
|
||||
source "hcloud.flatcar" {
|
||||
name = "arm"
|
||||
server_type = "cax11"
|
||||
snapshot_name = "flatcar-${var.channel}-arm64-${formatdate("YYYY-MM-DD", timestamp())}"
|
||||
snapshot_name = "flatcar-${local.flatcar_channel}-arm64-${formatdate("YYYY-MM-DD", timestamp())}"
|
||||
}
|
||||
|
||||
provisioner "shell" {
|
||||
|
|
@ -54,7 +53,7 @@ build {
|
|||
"chmod +x flatcar-install",
|
||||
|
||||
# Install flatcar
|
||||
"./flatcar-install -s -o hetzner -C ${var.channel}",
|
||||
"./flatcar-install -s -o hetzner -C ${local.flatcar_channel}",
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in a new issue