Skip to content
Snippets Groups Projects
Commit 0e29a081 authored by Ryan Randles Jones's avatar Ryan Randles Jones
Browse files

added comments to remote exec and file blocks

parent 95cea6cd
No related branches found
No related tags found
1 merge request!18Variable update branch
......@@ -84,6 +84,7 @@ resource "openstack_compute_floatingip_associate_v2" "ohpc" {
floating_ip = "${openstack_networking_floatingip_v2.ip_pool.address}"
instance_id = "${openstack_compute_instance_v2.ohpc.id}"
#defines ssh connection to ohpc and runs installs
provisioner "remote-exec" {
connection {
host = "${format("164.111.161.%s", element(split(".", openstack_networking_floatingip_v2.ip_pool.address),3))}"
......@@ -101,6 +102,7 @@ resource "openstack_compute_floatingip_associate_v2" "ohpc" {
]
}
# moves CRI_XCBC file into repo to use in next step
provisioner "file" {
source = "CRI_XCBC/"
destination = "/CRI_XCBC/"
......@@ -110,7 +112,8 @@ resource "openstack_compute_floatingip_associate_v2" "ohpc" {
private_key = "${file(var.ssh_private_key)}"
}
}
# uses ssh connection to run ansible playbook
provisioner "remote-exec" {
connection {
host = "${format("164.111.161.%s", element(split(".", openstack_networking_floatingip_v2.ip_pool.address),3))}"
......
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