Porting changes from upstream #2
|
@ -0,0 +1,38 @@
|
|||
# Define required providers
|
||||
terraform {
|
||||
required_version = ">= 0.14.0"
|
||||
required_providers {
|
||||
openstack = {
|
||||
source = "terraform-provider-openstack/openstack"
|
||||
version = "~> 1.53.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
data "terraform_remote_state" "privnet_dns_router" {
|
||||
backend = "local"
|
||||
|
||||
config = {
|
||||
path = "../project-setup/terraform.tfstate"
|
||||
}
|
||||
}
|
||||
|
||||
module "liferay" {
|
||||
source = "../../modules/liferay"
|
||||
liferay_data = {
|
||||
affinity_policy = "anti-affinity"
|
||||
srv_name = "lr62"
|
||||
vm_count = 2
|
||||
vm_flavor = "m1.large"
|
||||
boot_vol_size = 30
|
||||
}
|
||||
|
||||
liferay_ip_addrs = ["10.1.40.40", "10.1.40.41"]
|
||||
|
||||
liferay_recordsets = {
|
||||
liferay_main_record = {
|
||||
name = join(".", ["infra-gateway", data.terraform_remote_state.privnet_dns_router.outputs.dns_zone.zone_name]),
|
||||
description = "Liferay Production"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,24 @@
|
|||
output "liferay_data" {
|
||||
value = module.liferay.liferay_data
|
||||
}
|
||||
|
||||
output "liferay_ip_addrs" {
|
||||
value = module.liferay.liferay_ip_addrs
|
||||
}
|
||||
|
||||
output "liferay_recordsets" {
|
||||
value = module.liferay.liferay_recordsets
|
||||
}
|
||||
|
||||
output "liferay_nfs_port_data" {
|
||||
value = module.liferay.nfs_port_data
|
||||
}
|
||||
|
||||
output "liferay_nfs_volume_data" {
|
||||
value = module.liferay.liferay_nfs_volume_data
|
||||
}
|
||||
|
||||
output "liferay_nfs_volume_acls" {
|
||||
value = module.liferay.liferay_nfs_volume_acls
|
||||
sensitive = true
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
provider "openstack" {
|
||||
cloud = "d4s-production"
|
||||
}
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue