Liferay: the NFS share is now a variable.

This commit is contained in:
Andrea Dell'Amico 2024-03-18 18:02:30 +01:00
parent 3996cd0d54
commit 5c8fdfb305
Signed by untrusted user: andrea.dellamico
GPG Key ID: 147ABE6CEB9E20FF
2 changed files with 5 additions and 2 deletions

View File

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

View File

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