Skip to content

Commit 935c3c3

Browse files
committed
Update docs for v0.5.1 release
1 parent 6effa9a commit 935c3c3

File tree

3 files changed

+34
-25
lines changed

3 files changed

+34
-25
lines changed

CHANGES.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ Notable changes between releases.
44

55
## Latest
66

7+
## v0.5.1
8+
9+
* Read profile and group's to detect drift ([#68](https://github.com/poseidon/terraform-provider-matchbox/pull/68))
10+
* Update minimum Go version to v1.17
11+
* UpdateTerraform Plugin SDK
12+
713
## v0.5.0
814

915
* Migrate Terraform Plugin SDK from v1.9.0 to v2.8.0

README.md

Lines changed: 27 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ terraform {
2020
required_providers {
2121
matchbox = {
2222
source = "poseidon/matchbox"
23-
version = "0.4.1"
23+
version = "0.5.1"
2424
}
2525
}
2626
}
@@ -29,35 +29,38 @@ terraform {
2929
Define a Matchbox Profile or Group resource in Terraform.
3030

3131
```tf
32-
// Create a Container Linux install profile
33-
resource "matchbox_profile" "container-linux-install" {
34-
name = "container-linux-install"
35-
kernel = "/assets/coreos/${var.container_linux_version}/coreos_production_pxe.vmlinuz"
32+
// Fedora CoreOS profile
33+
resource "matchbox_profile" "fedora-coreos-install" {
34+
name = "worker"
35+
kernel = "https://builds.coreos.fedoraproject.org/prod/streams/${var.os_stream}/builds/${var.os_version}/x86_64/fedora-coreos-${var.os_version}-live-kernel-x86_64"
36+
3637
initrd = [
37-
"/assets/coreos/${var.container_linux_version}/coreos_production_pxe_image.cpio.gz"
38+
"--name main https://builds.coreos.fedoraproject.org/prod/streams/${var.os_stream}/builds/${var.os_version}/x86_64/fedora-coreos-${var.os_version}-live-initramfs.x86_64.img"
3839
]
40+
3941
args = [
40-
"coreos.config.url=http://${var.matchbox_http_endpoint}/ignition?uuid=$${uuid}&mac=$${mac:hexhyp}",
41-
"coreos.first_boot=yes",
42-
"console=tty0",
43-
"console=ttyS0",
44-
"coreos.autologin"
42+
"initrd=main",
43+
"coreos.live.rootfs_url=https://builds.coreos.fedoraproject.org/prod/streams/${var.os_stream}/builds/${var.os_version}/x86_64/fedora-coreos-${var.os_version}-live-rootfs.x86_64.img",
44+
"coreos.inst.install_dev=/dev/sda",
45+
"coreos.inst.ignition_url=${var.matchbox_http_endpoint}/ignition?uuid=$${uuid}&mac=$${mac:hexhyp}"
4546
]
46-
container_linux_config = "${file("./cl/coreos-install.yaml.tmpl")}"
47-
generic_config = "${file("./example.ks")}"
47+
48+
raw_ignition = data.ct_config.worker.rendered
4849
}
4950
50-
// Match a bare-metal machine
51-
resource "matchbox_group" "node1" {
52-
name = "node1"
53-
profile = "${matchbox_profile.container-linux-install.name}"
54-
selector = {
55-
mac = "52:54:00:a1:9c:ae"
56-
}
57-
metadata = {
58-
custom_variable = "machine_specific_value_here"
59-
ssh_authorized_key = "${var.ssh_authorized_key}"
60-
}
51+
data "ct_config" "worker" {
52+
content = templatefile("fcc/fedora-coreos.yaml", {
53+
ssh_authorized_key = var.ssh_authorized_key
54+
})
55+
strict = true
56+
}
57+
58+
// Default matcher group for machines
59+
resource "matchbox_group" "default" {
60+
name = "default"
61+
profile = matchbox_profile.fedora-coreos-install.name
62+
selector = {}
63+
metadata = {}
6164
}
6265
```
6366

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ terraform {
2020
required_providers {
2121
matchbox = {
2222
source = "poseidon/matchbox"
23-
version = "0.4.1"
23+
version = "0.5.1"
2424
}
2525
}
2626
}

0 commit comments

Comments
 (0)