mirror of
https://github.com/apricote/flatcar-packer-hcloud.git
synced 2026-01-13 13:21:01 +00:00
packer: use Flatcar release servers (#2)
Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
This commit is contained in:
parent
3089324472
commit
c7730392cc
1 changed files with 23 additions and 23 deletions
|
|
@ -21,14 +21,14 @@ variable "hcloud_server_type" {
|
|||
}
|
||||
}
|
||||
|
||||
variable "image_base_url" {
|
||||
variable "channel" {
|
||||
type = string
|
||||
default = "https://bincache.flatcar-linux.net/images"
|
||||
default = "beta"
|
||||
}
|
||||
|
||||
variable "image_version_id" {
|
||||
type = string
|
||||
default = "9999.0.0+hetzner"
|
||||
default = "current"
|
||||
}
|
||||
|
||||
variable "flatcar_install_script" {
|
||||
|
|
@ -43,8 +43,8 @@ locals {
|
|||
flatcar_oem_id = "hetzner"
|
||||
|
||||
board = {
|
||||
x86 = "amd64"
|
||||
arm = "arm64"
|
||||
x86 = "amd64-usr"
|
||||
arm = "arm64-usr"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -84,7 +84,7 @@ build {
|
|||
"chmod +x flatcar-install",
|
||||
|
||||
# Install flatcar
|
||||
"./flatcar-install -v -s -o hetzner -b ${var.image_base_url}/${local.board[source.name]} -V ${var.image_version_id}",
|
||||
"./flatcar-install -v -s -o hetzner -b https://${var.channel}.release.flatcar-linux.net/${local.board[source.name]} -V ${var.image_version_id}",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue