Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose flatcar-install OEM parameter #1302

Merged
merged 1 commit into from
Apr 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Notable changes between versions.
### Bare-Metal

* Add a `worker` module to allow customizing individual worker nodes ([#1295](https://github.com/poseidon/typhoon/pull/1295))
* Expose `-o OEM` parameter of `flatcar-install` script ([#1302](https://github.com/poseidon/typhoon/pull/1302))

## v1.26.1

Expand Down
1 change: 1 addition & 0 deletions bare-metal/flatcar-linux/kubernetes/butane/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ storage:
-d ${install_disk} \
-C ${os_channel} \
-V ${os_version} \
-o ${oem_type} \
${baseurl_flag} \
-i ignition.json
udevadm settle
Expand Down
1 change: 1 addition & 0 deletions bare-metal/flatcar-linux/kubernetes/profiles.tf
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ data "ct_config" "install" {
mac = concat(var.controllers.*.mac, var.workers.*.mac)[count.index]
install_disk = var.install_disk
ssh_authorized_key = var.ssh_authorized_key
oem_type = var.oem_type
# only cached profile adds -b baseurl
baseurl_flag = var.cached_install ? "-b ${var.matchbox_http_endpoint}/assets/flatcar" : ""
})
Expand Down
11 changes: 11 additions & 0 deletions bare-metal/flatcar-linux/kubernetes/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,17 @@ variable "enable_aggregation" {
default = true
}

variable "oem_type" {
type = string
description = <<EOD
An OEM type to install with flatcar-install. Find available types by looking for Flatcar image files
ending in `image.bin.bz2`. The OEM identifier is contained in the filename.
E.g., `flatcar_production_vmware_raw_image.bin.bz2` leads to `vmware_raw`.
See: https://www.flatcar.org/docs/latest/installing/bare-metal/installing-to-disk/#choose-a-channel
EOD
default = ""
}

# unofficial, undocumented, unsupported

variable "cluster_domain_suffix" {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ storage:
-d ${install_disk} \
-C ${os_channel} \
-V ${os_version} \
-o ${oem_type} \
${baseurl_flag} \
-i ignition.json
udevadm settle
Expand Down
1 change: 1 addition & 0 deletions bare-metal/flatcar-linux/kubernetes/worker/matchbox.tf
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ data "ct_config" "install" {
mac = var.mac
install_disk = var.install_disk
ssh_authorized_key = var.ssh_authorized_key
oem_type = var.oem_type
# only cached profile adds -b baseurl
baseurl_flag = var.cached_install ? "-b ${var.matchbox_http_endpoint}/assets/flatcar" : ""
})
Expand Down
6 changes: 6 additions & 0 deletions bare-metal/flatcar-linux/kubernetes/worker/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,12 @@ variable "kernel_args" {
default = []
}

variable "oem_type" {
type = string
default = ""
description = "An OEM type to install with flatcar-install."
}

# unofficial, undocumented, unsupported

variable "service_cidr" {
Expand Down
1 change: 1 addition & 0 deletions bare-metal/flatcar-linux/kubernetes/workers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@ module "workers" {
cached_install = var.cached_install
install_disk = var.install_disk
kernel_args = var.kernel_args
oem_type = var.oem_type
}

2 changes: 1 addition & 1 deletion docs/flatcar-linux/bare-metal.md
Original file line number Diff line number Diff line change
Expand Up @@ -383,4 +383,4 @@ Check the [variables.tf](https://github.com/poseidon/typhoon/blob/master/bare-me
| kernel_args | Additional kernel args to provide at PXE boot | [] | ["kvm-intel.nested=1"] |
| worker_node_labels | Map from worker name to list of initial node labels | {} | {"node2" = ["role=special"]} |
| worker_node_taints | Map from worker name to list of initial node taints | {} | {"node2" = ["role=special:NoSchedule"]} |

| oem_type | An OEM type to install with `flatcar-install`. | "" | "vmware_raw" |