Skip to content
Snippets Groups Projects
Commit 6c5a77d8 authored by Rob Kooper's avatar Rob Kooper
Browse files

formatting

parent 536dd36f
No related branches found
No related tags found
1 merge request!6Support for RKE2 and K3S
# 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 : ""
}
......@@ -97,7 +97,7 @@ resource "rancher2_cluster_role_template_binding" "admin_users" {
cluster_id = local.kube_id
role_template_id = "cluster-owner"
user_principal_id = "openldap_user://uid=${each.value},ou=People,dc=ncsa,dc=illinois,dc=edu"
depends_on = [ openstack_compute_instance_v2.machine ]
depends_on = [openstack_compute_instance_v2.machine]
lifecycle {
ignore_changes = [
annotations,
......@@ -113,7 +113,7 @@ resource "rancher2_cluster_role_template_binding" "admin_groups" {
cluster_id = local.kube_id
role_template_id = "cluster-owner"
user_principal_id = "openldap_group://cn=${each.value},ou=Groups,dc=ncsa,dc=illinois,dc=edu"
depends_on = [ openstack_compute_instance_v2.machine ]
depends_on = [openstack_compute_instance_v2.machine]
lifecycle {
ignore_changes = [
annotations,
......@@ -129,7 +129,7 @@ resource "rancher2_cluster_role_template_binding" "member_users" {
cluster_id = local.kube_id
role_template_id = "cluster-member"
user_principal_id = "openldap_user://uid=${each.value},ou=People,dc=ncsa,dc=illinois,dc=edu"
depends_on = [ openstack_compute_instance_v2.machine ]
depends_on = [openstack_compute_instance_v2.machine]
lifecycle {
ignore_changes = [
annotations,
......@@ -145,7 +145,7 @@ resource "rancher2_cluster_role_template_binding" "member_groups" {
cluster_id = local.kube_id
role_template_id = "cluster-member"
user_principal_id = "openldap_group://cn=${each.value},ou=Groups,dc=ncsa,dc=illinois,dc=edu"
depends_on = [ openstack_compute_instance_v2.machine ]
depends_on = [openstack_compute_instance_v2.machine]
lifecycle {
ignore_changes = [
annotations,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment