From 5c8fdfb305842f2ba71775a815cd6a73364b74fe Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Mon, 18 Mar 2024 18:02:30 +0100 Subject: [PATCH] Liferay: the NFS share is now a variable. --- openstack-tf/modules/liferay/liferay-variables.tf | 3 +++ openstack-tf/modules/liferay/liferay.tf | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/openstack-tf/modules/liferay/liferay-variables.tf b/openstack-tf/modules/liferay/liferay-variables.tf index a7baa62..f7a7a88 100644 --- a/openstack-tf/modules/liferay/liferay-variables.tf +++ b/openstack-tf/modules/liferay/liferay-variables.tf @@ -6,6 +6,8 @@ variable "liferay_data" { vm_count = 1 vm_flavor = "m1.large" boot_vol_size = 30 + share_description = "NFS share for the liferay static data" + share_name = "liferay_nfs_share" } } @@ -26,3 +28,4 @@ variable "liferay_recordsets" { } } } + diff --git a/openstack-tf/modules/liferay/liferay.tf b/openstack-tf/modules/liferay/liferay.tf index 7cf0b64..32eb259 100644 --- a/openstack-tf/modules/liferay/liferay.tf +++ b/openstack-tf/modules/liferay/liferay.tf @@ -166,8 +166,8 @@ resource "openstack_compute_interface_attach_v2" "nfs_port_to_liferay" { # Create a NFS share resource "openstack_sharedfilesystem_share_v2" "liferay_static" { - name = "liferay_nfs_share" - description = "NFS share for the liferay static data" + name = var.liferay_data.share_name + description = var.liferay_data.share_description share_proto = "NFS" size = 5 }