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

updates

parent b3014d1d
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@ locals {
connection = {
host = "${format("164.111.161.%s", element(split(".", openstack_networking_floatingip_v2.ip_pool.address),3))}"
user = "centos"
private_key = "${file(var.ssh_key_private)}"
private_key = "${openstack_compute_keypair_v2.ohpc-keypair.name}"
}
}
......@@ -87,7 +87,7 @@ resource "openstack_compute_floatingip_associate_v2" "ohpc" {
connection {
host = "${format("164.111.161.%s", element(split(".", openstack_networking_floatingip_v2.ip_pool.address),3))}"
user = "centos"
private_key = "${file(var.ssh_key_private)}"
private_key = "${openstack_compute_keypair_v2.ohpc-keypair.name}"
}
inline = [
......@@ -107,7 +107,7 @@ resource "openstack_compute_floatingip_associate_v2" "ohpc" {
host = "${format("164.111.161.%s", element(split(".", openstack_networking_floatingip_v2.ip_pool.address),3))}"
#host = "${openstack_networking_floatingip_v2.terraform.address}"
user = "centos"
private_key = "${file(var.ssh_key_private)}"
private_key = "${openstack_compute_keypair_v2.ohpc-keypair.name}"
}
}
......@@ -116,7 +116,7 @@ resource "openstack_compute_floatingip_associate_v2" "ohpc" {
host = "${format("164.111.161.%s", element(split(".", openstack_networking_floatingip_v2.ip_pool.address),3))}"
#host = "${openstack_networking_floatingip_v2.ohpc.address}"
user = "centos"
private_key = "${file(var.ssh_key_private)}"
private_key = "${openstack_compute_keypair_v2.ohpc-keypair.name}"
}
inline = [
"sudo ansible-playbook -c local -i /CRI_XCBC/hosts -l `hostname -s` /CRI_XCBC/site.yaml -b"
......
......@@ -2,6 +2,3 @@ output "address" {
value = "${openstack_networking_floatingip_v2.ip_pool.address}"
}
output "terraform-provider" {
value = "Connected with OpenStack at ${var.auth_url}"
}
\ No newline at end of file
......@@ -9,8 +9,3 @@ variable "flavor" {
variable "pool" {
default = "bright-external-flat-externalnet"
}
variable "ssh_key_private" {
default = "~/.ssh/id_rsa"
description = "Path to the SSH public key for accessing cloud instances. Used for creating AWS keypair."
}
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