diff --git a/README.md b/README.md index 1b96f78..8709f1c 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# flatcar-merit-update-engine +# flatcar-pxe-update-engine Substitute for the [Flatcar update_engine](https://github.com/kinvolk/update_engine) that enables automated @@ -24,5 +24,5 @@ works seamlessly with the `update_engine_client` and reboot orchestrators like ## Deploy See [terraform/](terraform/) for a Terraform module that provides ignition -config for running the merit update engine as a systemd service. Refer to the +config for running the flatcar-pxe-update-engine as a systemd service. Refer to the [README](terraform/README.md) for instructions. diff --git a/go.mod b/go.mod index e4205a2..1611f25 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/utilitywarehouse/flatcar-merit-update-engine +module github.com/utilitywarehouse/flatcar-pxe-update-engine go 1.18 diff --git a/terraform/README.md b/terraform/README.md index 48df787..435ea20 100644 --- a/terraform/README.md +++ b/terraform/README.md @@ -1,4 +1,4 @@ -# flatcar-merit-update-engine/terraform +# flatcar-pxe-update-engine/terraform ## Input Variables @@ -9,7 +9,7 @@ Refer to [variables.tf](variables.tf). At a minimum you should include these outputs in your ignition config: - `unit` - ignition systemd unit -- `file` - merit-update-agent binary ignition file +- `file` - pxe-update-agent binary ignition file If you intend to use `locksmithd` to orchestrate updates, then you should use the following: @@ -20,19 +20,19 @@ following: ## Usage ```hcl -module "merit_update_engine" { - source = "github.com/utilitywarehouse/flatcar-merit-update-engine//terraform?ref=master" +module "pxe_update_engine" { + source = "github.com/utilitywarehouse/flatcar-pxe-update-engine//terraform?ref=master" version_url = "http://my-flatcar-mirror.example.com/assets/flatcar/stable/version.txt" } data "ignition_config" "node" { files = [ - module.merit_update_engine.file, + module.pxe_update_engine.file, ] systemd = [ - module.merit_update_engine.unit, - module.merit_update_engine.locksmithd_unit, + module.pxe_update_engine.unit, + module.pxe_update_engine.locksmithd_unit, ] } ``` diff --git a/terraform/main.tf b/terraform/main.tf index 6dc9bec..00a94e3 100644 --- a/terraform/main.tf +++ b/terraform/main.tf @@ -1,14 +1,14 @@ -data "ignition_file" "merit_update_engine" { +data "ignition_file" "pxe_update_engine" { mode = 493 filesystem = "root" - path = "/opt/bin/merit-update-engine" + path = "/opt/bin/pxe-update-engine" source { - source = "https://github.com/utilitywarehouse/flatcar-merit-update-engine/releases/download/${var.release_version}/flatcar-merit-update-engine_${var.release_version}_linux_amd64" + source = "https://github.com/utilitywarehouse/flatcar-pxe-update-engine/releases/download/${var.release_version}/flatcar-pxe-update-engine_${var.release_version}_linux_amd64" } } -data "ignition_systemd_unit" "merit_update_engine" { +data "ignition_systemd_unit" "pxe_update_engine" { name = "update-engine.service" content = templatefile("${path.module}/resources/update-engine.service", { diff --git a/terraform/outputs.tf b/terraform/outputs.tf index 40923fe..5495697 100644 --- a/terraform/outputs.tf +++ b/terraform/outputs.tf @@ -1,9 +1,9 @@ output "file" { - value = data.ignition_file.merit_update_engine.rendered + value = data.ignition_file.pxe_update_engine.rendered } output "unit" { - value = data.ignition_systemd_unit.merit_update_engine.rendered + value = data.ignition_systemd_unit.pxe_update_engine.rendered } output "locksmithd_unit" { diff --git a/terraform/resources/update-engine.service b/terraform/resources/update-engine.service index aa0b925..7b80542 100644 --- a/terraform/resources/update-engine.service +++ b/terraform/resources/update-engine.service @@ -4,7 +4,7 @@ Description=Update Engine [Service] Type=dbus BusName=com.coreos.update1 -ExecStart=/opt/bin/merit-update-engine -version-url=${version_url} +ExecStart=/opt/bin/pxe-update-engine -version-url=${version_url} Restart=always RestartSec=30