Skip to content

Commit

Permalink
Merge pull request #6289 from mjturek/enable_global_routing
Browse files Browse the repository at this point in the history
Power VS: Enable global routing for cloud connection and specify dns
  • Loading branch information
openshift-merge-robot authored Sep 2, 2022
2 parents 82dcbcc + 6e8702c commit f6c8f52
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions data/data/powervs/cluster/power_network/pi_network.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,17 @@ resource "ibm_pi_dhcp" "new_dhcp_service" {
count = var.pvs_network_name == "" ? 1 : 0
pi_cloud_instance_id = var.cloud_instance_id
pi_cloud_connection_id = data.ibm_pi_cloud_connection.cloud_connection.id
pi_dns_server = "1.1.1.1"
}

resource "ibm_pi_cloud_connection" "new_cloud_connection" {
count = var.cloud_conn_name == "" ? 1 : 0
pi_cloud_instance_id = var.cloud_instance_id
pi_cloud_connection_name = "cloud-con-${var.cluster_id}"
pi_cloud_connection_speed = 50
pi_cloud_connection_vpc_enabled = true
pi_cloud_connection_vpc_crns = [var.vpc_crn]
count = var.cloud_conn_name == "" ? 1 : 0
pi_cloud_instance_id = var.cloud_instance_id
pi_cloud_connection_name = "cloud-con-${var.cluster_id}"
pi_cloud_connection_speed = 50
pi_cloud_connection_global_routing = true
pi_cloud_connection_vpc_enabled = true
pi_cloud_connection_vpc_crns = [var.vpc_crn]
}

data "ibm_pi_cloud_connection" "cloud_connection" {
Expand Down

0 comments on commit f6c8f52

Please sign in to comment.