This repository has been archived by the owner on Jul 23, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #84 from stbenjam/terraform
vendor: update terraform-provider-ironic to v0.1.2
- Loading branch information
Showing
102 changed files
with
4,839 additions
and
1,345 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,49 @@ | ||
resource "ironic_node_v1" "openshift-master" { | ||
count = "${length(keys(var.master_nodes))}" | ||
name = "${lookup(var.master_nodes[format("openshift-master-%d", count.index)], "name")}" | ||
resource "ironic_node_v1" "openshift-master-node" { | ||
count = "${length(keys(var.master_nodes))}" | ||
name = "${lookup(var.master_nodes[format("openshift-master-%d", count.index)], "name")}" | ||
resource_class = "baremetal" | ||
|
||
target_provision_state = "active" | ||
user_data = "${var.ignition}" | ||
|
||
root_device = "${var.root_devices[format("openshift-master-%d", count.index)]}" | ||
driver = "${lookup(var.master_nodes[format("openshift-master-%d", count.index)], "driver")}" | ||
driver_info = "${var.driver_infos[format("openshift-master-%d", count.index)]}" | ||
inspect = true | ||
clean = true | ||
available = true | ||
|
||
ports = [ | ||
{ | ||
address = "${lookup(var.master_nodes[format("openshift-master-%d", count.index)], "port_address")}" | ||
address = "${lookup(var.master_nodes[format("openshift-master-%d", count.index)], "port_address")}" | ||
pxe_enabled = "true" | ||
}, | ||
] | ||
|
||
properties = "${var.properties[format("openshift-master-%d", count.index)]}" | ||
properties = "${var.properties[format("openshift-master-%d", count.index)]}" | ||
root_device = "${var.root_devices[format("openshift-master-%d", count.index)]}" | ||
|
||
driver = "${lookup(var.master_nodes[format("openshift-master-%d", count.index)], "driver")}" | ||
driver_info = "${var.driver_infos[format("openshift-master-%d", count.index)]}" | ||
|
||
management_interface = "${lookup(var.master_nodes[format("openshift-master-%d", count.index)], "management_interface")}" | ||
power_interface = "${lookup(var.master_nodes[format("openshift-master-%d", count.index)], "power_interface")}" | ||
vendor_interface = "${lookup(var.master_nodes[format("openshift-master-%d", count.index)], "vendor_interface")}" | ||
} | ||
|
||
resource "ironic_allocation_v1" "openshift-master-allocation" { | ||
name = "master-${count.index}" | ||
count = 3 | ||
resource_class = "baremetal" | ||
|
||
candidate_nodes = [ | ||
"${ironic_node_v1.openshift-master-node.*.id}", | ||
] | ||
} | ||
|
||
resource "ironic_deployment" "openshift-master-deployment" { | ||
count = 3 | ||
node_uuid = "${element(ironic_allocation_v1.openshift-master-allocation.*.node_uuid, count.index)}" | ||
|
||
instance_info = { | ||
image_source = "${var.image_source}" | ||
image_source = "${var.image_source}" | ||
image_checksum = "${var.image_checksum}" | ||
root_gb = "${var.root_gb}" | ||
root_gb = "${var.root_gb}" | ||
} | ||
|
||
management_interface = "${lookup(var.master_nodes[format("openshift-master-%d", count.index)], "management_interface")}" | ||
power_interface = "${lookup(var.master_nodes[format("openshift-master-%d", count.index)], "power_interface")}" | ||
vendor_interface = "${lookup(var.master_nodes[format("openshift-master-%d", count.index)], "vendor_interface")}" | ||
|
||
user_data = "${var.ignition}" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,44 @@ | ||
variable "image_source" { | ||
description = "The URL of the OS disk image" | ||
type = "string" | ||
type = "string" | ||
} | ||
|
||
variable "image_checksum" { | ||
type = "string" | ||
type = "string" | ||
description = "The URL or checksum value of the image" | ||
} | ||
|
||
variable "root_gb" { | ||
type = "string" | ||
type = "string" | ||
description = "Size of the root disk" | ||
} | ||
|
||
variable "root_disk" { | ||
type = "string" | ||
type = "string" | ||
description = "Location of the root disk" | ||
} | ||
|
||
variable "ignition" { | ||
type = "string" | ||
type = "string" | ||
description = "The content of the master ignition file" | ||
} | ||
|
||
variable "master_nodes" { | ||
type = "map" | ||
type = "map" | ||
description = "Master bare metal node details" | ||
} | ||
|
||
variable "properties" { | ||
type = "map" | ||
type = "map" | ||
description = "Master bare metal properties" | ||
} | ||
|
||
variable "root_devices" { | ||
type = "map" | ||
type = "map" | ||
description = "Master root device configuration" | ||
} | ||
|
||
variable "driver_infos" { | ||
type = "map" | ||
type = "map" | ||
description = "Master driver info" | ||
} | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 40 additions & 23 deletions
63
pkg/terraform/exec/plugins/vendor/github.com/gophercloud/gophercloud/doc.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
5 changes: 2 additions & 3 deletions
5
.../exec/plugins/vendor/github.com/gophercloud/gophercloud/openstack/baremetal/noauth/doc.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.