Skip to content

Commit

Permalink
PLT-512-1:Module support for ssh_keys (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
SivaanandM authored Jun 15, 2023
1 parent 57374ae commit a28b5c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions spectro-cluster-edge-vsphere.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ resource "spectrocloud_cluster_edge_vsphere" "this" {
edge_host_uid = each.value.edge_host_uid

cloud_config {
ssh_key = try(each.value.cloud_config.ssh_key, "")
ssh_keys = try(each.value.cloud_config.ssh_keys, [])
ssh_keys = concat(try(try(each.value.cloud_config.ssh_key, "") == "" ? try(each.value.cloud_config.ssh_keys, []) : [each.value.cloud_config.ssh_key], []), try(each.value.cloud_config.ssh_keys, []))
static_ip = each.value.cloud_config.static_ip
network_type = each.value.cloud_config.network_type
vip = each.value.cloud_config.vip
Expand Down
3 changes: 1 addition & 2 deletions spectro-cluster-libvirt.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ resource "spectrocloud_cluster_libvirt" "this" {
tags = try(each.value.tags, [])

cloud_config {
ssh_key = try(each.value.cloud_config.ssh_key, "")
ssh_keys = try(each.value.cloud_config.ssh_keys, [])
ssh_keys = concat(try(try(each.value.cloud_config.ssh_key, "") == "" ? try(each.value.cloud_config.ssh_keys, []) : [each.value.cloud_config.ssh_key], []), try(each.value.cloud_config.ssh_keys, []))
vip = try(each.value.cloud_config.vip, "")
ntp_servers = try(each.value.cloud_config.ntp_servers, [])
network_search_domain = try(each.value.cloud_config.search_domain, "")
Expand Down

0 comments on commit a28b5c9

Please sign in to comment.