Skip to content
Snippets Groups Projects

Support for RKE2 and K3S

Merged Rob Kooper requested to merge rke2-k3s into main
2 files
+ 7
7
Compare changes
  • Side-by-side
  • Inline
Files
2
# Each cluster will either have a shared key, or their own
# unique key.
resource "openstack_compute_keypair_v2" "key" {
count = var.openstack_ssh_key == "" ? 1 : 0
name = var.cluster_name
count = var.openstack_ssh_key == "" ? 1 : 0
name = var.cluster_name
}
data "openstack_compute_keypair_v2" "key" {
@@ -13,6 +13,6 @@ data "openstack_compute_keypair_v2" "key" {
# set local variable to hold final key, either created or
# loaded.
locals {
key_name = var.openstack_ssh_key == "" ? openstack_compute_keypair_v2.key[0].name : data.openstack_compute_keypair_v2.key[0].name
key_name = var.openstack_ssh_key == "" ? openstack_compute_keypair_v2.key[0].name : data.openstack_compute_keypair_v2.key[0].name
private_key = var.openstack_ssh_key == "" ? openstack_compute_keypair_v2.key[0].private_key : ""
}
Loading