Commit 6bfa8a54 authored by Bo-Chun Chen's avatar Bo-Chun Chen
Browse files

Specify private ip on ood

parent f02cc123
......@@ -82,6 +82,7 @@ module "create-ood-instance" {
flavor = var.flavor
key_pair = "${module.import-keypair.keypair_name}"
internal_network = var.internal_network
internal_ip = var.ood_private_ip
external_network = var.external_network
floating_ip_ood = "${module.floating-ip-address.ood_address}"
host_prefix = var.host_prefix
......
......@@ -9,6 +9,7 @@ variable "flavor" {}
variable "key_pair" {type = "string"}
variable "internal_network" {}
variable "internal_ip" {}
variable "external_network" {}
# is created in floating-ip module and called in root module
......@@ -34,6 +35,7 @@ resource "openstack_compute_instance_v2" "ood" {
}
network {
name = var.internal_network
fixed_ip_v4 = var.internal_ip
}
}
......
......@@ -18,6 +18,7 @@ variable "ohpc_private_ip" {default = "10.1.1.10"}
variable "ood_instance_name" { default = "ood"}
variable "image_ohpc" {default = "CentOS-7-x86_64-GenericCloud-1905"}
variable "image_ood" {default = "CentOS-7-x86_64-GenericCloud-1905"}
variable "ood_private_ip" {default = "10.1.1.11"}
variable "flavor" {default = "m1.medium"}
variable "internal_network" {default = "clusternet"}
variable "external_network" {default = "dmznet"}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment