Skip to content

Commit

Permalink
Merge pull request #2784 from Fedosin/fip_timeout
Browse files Browse the repository at this point in the history
Bug 1780534: create bootstrap floating ip after the bootstrap machine
  • Loading branch information
openshift-merge-robot authored Dec 12, 2019
2 parents 0560e0e + 669337a commit e445afa
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions data/data/openstack/bootstrap/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,6 @@ resource "openstack_networking_port_v2" "bootstrap_port" {
}
}

resource "openstack_networking_floatingip_v2" "bootstrap_fip" {
description = "${var.cluster_id}-bootstrap-fip"
pool = var.external_network
port_id = openstack_networking_port_v2.bootstrap_port.id
tags = ["openshiftClusterID=${var.cluster_id}"]
}

data "openstack_compute_flavor_v2" "bootstrap_flavor" {
name = var.flavor_name
}
Expand All @@ -52,3 +45,12 @@ resource "openstack_compute_instance_v2" "bootstrap" {
openshiftClusterID = var.cluster_id
}
}

resource "openstack_networking_floatingip_v2" "bootstrap_fip" {
description = "${var.cluster_id}-bootstrap-fip"
pool = var.external_network
port_id = openstack_networking_port_v2.bootstrap_port.id
tags = ["openshiftClusterID=${var.cluster_id}"]

depends_on = ["openstack_compute_instance_v2.bootstrap"]
}

0 comments on commit e445afa

Please sign in to comment.