Skip to content

Commit

Permalink
Rename repository merit->pxe
Browse files Browse the repository at this point in the history
There is nothing UW specific about the application, can be used by any
environment using PXE boot and Flatcar.
  • Loading branch information
george-angel committed May 20, 2022
1 parent 37101ca commit 67c37ee
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/utilitywarehouse/flatcar-merit-update-engine
module github.com/utilitywarehouse/flatcar-pxe-update-engine

go 1.18

Expand Down
14 changes: 7 additions & 7 deletions terraform/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# flatcar-merit-update-engine/terraform
# flatcar-pxe-update-engine/terraform

## Input Variables

Expand All @@ -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:
Expand All @@ -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,
]
}
```
8 changes: 4 additions & 4 deletions terraform/main.tf
Original file line number Diff line number Diff line change
@@ -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",
{
Expand Down
4 changes: 2 additions & 2 deletions terraform/outputs.tf
Original file line number Diff line number Diff line change
@@ -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" {
Expand Down
2 changes: 1 addition & 1 deletion terraform/resources/update-engine.service
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 67c37ee

Please sign in to comment.