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

uses ohpc_user variable for host

parent 617a4b83
No related branches found
No related tags found
1 merge request!18Variable update branch
...@@ -86,8 +86,8 @@ resource "openstack_compute_floatingip_associate_v2" "ohpc" { ...@@ -86,8 +86,8 @@ resource "openstack_compute_floatingip_associate_v2" "ohpc" {
# defines ssh connection # defines ssh connection
connection { connection {
host = "${format("164.111.161.%s", element(split(".", openstack_networking_floatingip_v2.ip_pool.address),3))}" host = "${format(var.host_id)}"
user = "centos" user = "${var.ohpc_user}"
private_key = "${file(var.ssh_private_key)}" private_key = "${file(var.ssh_private_key)}"
} }
......
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