mirror of
https://github.com/outbackdingo/matchbox.git
synced 2026-01-27 10:19:35 +00:00
Change simple-install syntax for Terraform v0.12 (#804)
* Switch selector blocks to assignments for Terraform v0.12
This commit is contained in:
@@ -4,7 +4,7 @@ resource "matchbox_group" "default" {
|
||||
profile = "${matchbox_profile.coreos-install.name}"
|
||||
|
||||
# no selector means all machines can be matched
|
||||
metadata {
|
||||
metadata = {
|
||||
ignition_endpoint = "${var.matchbox_http_endpoint}/ignition"
|
||||
ssh_authorized_key = "${var.ssh_authorized_key}"
|
||||
}
|
||||
@@ -15,11 +15,11 @@ resource "matchbox_group" "node1" {
|
||||
name = "node1"
|
||||
profile = "${matchbox_profile.simple.name}"
|
||||
|
||||
selector {
|
||||
selector = {
|
||||
os = "installed"
|
||||
}
|
||||
|
||||
metadata {
|
||||
metadata = {
|
||||
ssh_authorized_key = "${var.ssh_authorized_key}"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user