Liferay resources in production.

This commit is contained in:
Andrea Dell'Amico 2024-03-12 15:23:39 +01:00
parent 89892d29b4
commit 75c6d4e9b1
Signed by: andrea.dellamico
GPG Key ID: 147ABE6CEB9E20FF
4 changed files with 2847 additions and 0 deletions

View File

@ -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"
}
}
}

View File

@ -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
}

View File

@ -0,0 +1,3 @@
provider "openstack" {
cloud = "d4s-production"
}

File diff suppressed because it is too large Load Diff