Skip to content

Commit

Permalink
Expose flatcar-install OEM parameter
Browse files Browse the repository at this point in the history
By exposing this parameter it is possible to install OEM specific software
during the `flatcar-install` invocation.
  • Loading branch information
Lucas Resch authored and dghubble committed Apr 1, 2023
1 parent 5f30321 commit 6bd2a1a
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,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))

### Known Issues

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" |

0 comments on commit 6bd2a1a

Please sign in to comment.