Skip to content
Snippets Groups Projects
Commit 5e019392 authored by LEKHLAIKH Taha's avatar LEKHLAIKH Taha
Browse files

Update instances.tf

parent 96ebb871
No related branches found
No related tags found
No related merge requests found
Pipeline #14932 passed
......@@ -18,10 +18,6 @@ resource "openstack_compute_instance_v2" "cluster-node" {
network {
name = "project-net"
}
provisioner "file" {
source = "/kubernetes"
destination = "/home/ubunto"
}
}
......@@ -36,6 +32,23 @@ resource "openstack_compute_floatingip_associate_v2" "application" {
instance_id = "${openstack_compute_instance_v2.cluster-node.id}"
depends_on = [openstack_networking_router_v2.project_router]
}
resource "null_resource" "copy-test-file" {
connection {
type = "ssh"
private_key = "${openstack_compute_keypair_v2.keypair.private_key}"
host= "${openstack_networking_floatingip_v2.application.address}"
user = "ubuntu"
agent="false"
}
provisioner "file" {
source = "./kubernetes"
destination = "./"
}
depends_on=[openstack_compute_instance_v2.cluster-node]
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment