From 03a62144a79bfdce7e8bcc4f495cf2e451b60f5d Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Tue, 5 Mar 2024 19:01:52 +0100 Subject: [PATCH] liferay preprod: add the timescaledb network. --- openstack-tf/d4s-preprod/liferay/main.tf | 6 +- openstack-tf/d4s-preprod/liferay/outputs.tf | 24 + .../d4s-preprod/liferay/terraform.tfstate | 1281 ++++++++++++++++- 3 files changed, 1286 insertions(+), 25 deletions(-) create mode 100644 openstack-tf/d4s-preprod/liferay/outputs.tf diff --git a/openstack-tf/d4s-preprod/liferay/main.tf b/openstack-tf/d4s-preprod/liferay/main.tf index a1e8f0f..60cd6d4 100644 --- a/openstack-tf/d4s-preprod/liferay/main.tf +++ b/openstack-tf/d4s-preprod/liferay/main.tf @@ -18,7 +18,7 @@ data "terraform_remote_state" "privnet_dns_router" { } module "liferay" { - source = "../../modules/liferay" + source = "../../modules/liferay" liferay_data = { affinity_policy = "soft-anti-affinity" srv_name = "lr62" @@ -27,11 +27,11 @@ module "liferay" { boot_vol_size = 30 } - liferay_ip_addrs = ["10.1.32.24", "10.1.32.25"] + liferay_ip_addrs = ["10.1.32.24", "10.1.32.25"] liferay_recordsets = { liferay_main_record = { - name = join(".", ["next", data.terraform_remote_state.privnet_dns_router.outputs.dns_zone.zone_name]), + name = join(".", ["next", data.terraform_remote_state.privnet_dns_router.outputs.dns_zone.zone_name]), description = "Liferay Pre (next)" } } diff --git a/openstack-tf/d4s-preprod/liferay/outputs.tf b/openstack-tf/d4s-preprod/liferay/outputs.tf new file mode 100644 index 0000000..aa09bc8 --- /dev/null +++ b/openstack-tf/d4s-preprod/liferay/outputs.tf @@ -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 +} diff --git a/openstack-tf/d4s-preprod/liferay/terraform.tfstate b/openstack-tf/d4s-preprod/liferay/terraform.tfstate index ddd1216..06f9fff 100644 --- a/openstack-tf/d4s-preprod/liferay/terraform.tfstate +++ b/openstack-tf/d4s-preprod/liferay/terraform.tfstate @@ -1,9 +1,264 @@ { "version": 4, "terraform_version": "1.6.6", - "serial": 31, + "serial": 56, "lineage": "2cef4407-f7f5-0a46-74de-03956dd178ed", - "outputs": {}, + "outputs": { + "liferay_data": { + "value": { + "affinity_policy": "soft-anti-affinity", + "boot_vol_size": "30", + "srv_name": "lr62", + "vm_count": "2", + "vm_flavor": "m1.large" + }, + "type": [ + "map", + "string" + ] + }, + "liferay_ip_addrs": { + "value": [ + "10.1.32.24", + "10.1.32.25" + ], + "type": [ + "list", + "string" + ] + }, + "liferay_nfs_port_data": { + "value": [ + { + "fixed_ip": "172.17.0.177", + "id": "aaf50b2a-40e2-4bbe-8e4e-39f5d83dd08f/f6b26489-1dfd-489f-9fda-102954a91240", + "instance_id": "aaf50b2a-40e2-4bbe-8e4e-39f5d83dd08f", + "network_id": "5f4023cc-4016-404c-94e5-86220095fbaf", + "port_id": "f6b26489-1dfd-489f-9fda-102954a91240", + "region": "isti_area_pi_1", + "timeouts": null + }, + { + "fixed_ip": "172.17.3.68", + "id": "0b9deb27-50ba-409f-a9a7-b3a55b5e5b29/700c63d6-cf3a-4dc8-a794-9a00b2e8dd16", + "instance_id": "0b9deb27-50ba-409f-a9a7-b3a55b5e5b29", + "network_id": "5f4023cc-4016-404c-94e5-86220095fbaf", + "port_id": "700c63d6-cf3a-4dc8-a794-9a00b2e8dd16", + "region": "isti_area_pi_1", + "timeouts": null + } + ], + "type": [ + "tuple", + [ + [ + "object", + { + "fixed_ip": "string", + "id": "string", + "instance_id": "string", + "network_id": "string", + "port_id": "string", + "region": "string", + "timeouts": [ + "object", + { + "create": "string", + "delete": "string" + } + ] + } + ], + [ + "object", + { + "fixed_ip": "string", + "id": "string", + "instance_id": "string", + "network_id": "string", + "port_id": "string", + "region": "string", + "timeouts": [ + "object", + { + "create": "string", + "delete": "string" + } + ] + } + ] + ] + ] + }, + "liferay_nfs_volume_acls": { + "value": [ + { + "access_key": "", + "access_level": "rw", + "access_to": "172.17.0.177", + "access_type": "ip", + "id": "8c523216-ac58-4a7b-bc8e-17ca8586ab7d", + "region": "isti_area_pi_1", + "share_id": "d42079f9-c77c-4b61-ba8e-f2df987ef9bf", + "state": "active", + "timeouts": null + }, + { + "access_key": "", + "access_level": "rw", + "access_to": "172.17.3.68", + "access_type": "ip", + "id": "fbf108fe-bfe6-4f5a-b240-899042b1d9ee", + "region": "isti_area_pi_1", + "share_id": "d42079f9-c77c-4b61-ba8e-f2df987ef9bf", + "state": "active", + "timeouts": null + } + ], + "type": [ + "tuple", + [ + [ + "object", + { + "access_key": "string", + "access_level": "string", + "access_to": "string", + "access_type": "string", + "id": "string", + "region": "string", + "share_id": "string", + "state": "string", + "timeouts": [ + "object", + { + "create": "string", + "delete": "string", + "update": "string" + } + ] + } + ], + [ + "object", + { + "access_key": "string", + "access_level": "string", + "access_to": "string", + "access_type": "string", + "id": "string", + "region": "string", + "share_id": "string", + "state": "string", + "timeouts": [ + "object", + { + "create": "string", + "delete": "string", + "update": "string" + } + ] + } + ] + ] + ], + "sensitive": true + }, + "liferay_nfs_volume_data": { + "value": { + "all_metadata": {}, + "availability_zone": "nova", + "description": "NFS share for the liferay static data", + "export_locations": [ + { + "path": "172.17.0.7:/volumes/_nogroup/40293496-74da-4023-a428-563a5bea3d7a/008c093f-ce76-43c8-aa00-5c3f57a66244", + "preferred": "false" + } + ], + "has_replicas": false, + "host": "", + "id": "d42079f9-c77c-4b61-ba8e-f2df987ef9bf", + "is_public": false, + "metadata": null, + "name": "liferay_nfs_share", + "project_id": "6fdc02e2827b405dad99f34698659742", + "region": "isti_area_pi_1", + "replication_type": "", + "share_network_id": "", + "share_proto": "NFS", + "share_server_id": "", + "share_type": "default", + "size": 5, + "snapshot_id": "", + "timeouts": null + }, + "type": [ + "object", + { + "all_metadata": [ + "map", + "string" + ], + "availability_zone": "string", + "description": "string", + "export_locations": [ + "list", + [ + "object", + { + "path": "string", + "preferred": "string" + } + ] + ], + "has_replicas": "bool", + "host": "string", + "id": "string", + "is_public": "bool", + "metadata": [ + "map", + "string" + ], + "name": "string", + "project_id": "string", + "region": "string", + "replication_type": "string", + "share_network_id": "string", + "share_proto": "string", + "share_server_id": "string", + "share_type": "string", + "size": "number", + "snapshot_id": "string", + "timeouts": [ + "object", + { + "create": "string", + "delete": "string", + "update": "string" + } + ] + } + ] + }, + "liferay_recordsets": { + "value": { + "liferay_main_record": { + "description": "Liferay Pre (next)", + "name": "next.cloud-pre.d4science.org." + } + }, + "type": [ + "map", + [ + "object", + { + "description": "string", + "name": "string" + } + ] + ] + } + }, "resources": [ { "mode": "data", @@ -790,6 +1045,492 @@ } ] }, + { + "module": "module.liferay", + "mode": "data", + "type": "terraform_remote_state", + "name": "timescaledb", + "provider": "provider[\"terraform.io/builtin/terraform\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "backend": "local", + "config": { + "value": { + "path": "../timescaledb/terraform.tfstate" + }, + "type": [ + "object", + { + "path": "string" + } + ] + }, + "defaults": null, + "outputs": { + "value": { + "timescaledb_net": { + "admin_state_up": true, + "all_tags": [], + "availability_zone_hints": [], + "description": "Network used by the Timescaledb cluster and to access the service", + "dns_domain": "cloud-pre.d4science.org.", + "external": false, + "id": "435ac20a-8bd9-4e49-a86b-69bdfcd6967b", + "mtu": 8942, + "name": "timescaledb-net", + "port_security_enabled": true, + "qos_policy_id": "", + "region": "isti_area_pi_1", + "segments": [], + "shared": false, + "tags": [], + "tenant_id": "6fdc02e2827b405dad99f34698659742", + "timeouts": null, + "transparent_vlan": false, + "value_specs": null + }, + "timescaledb_servers": [ + { + "access_ip_v4": "10.1.33.181", + "access_ip_v6": "", + "admin_pass": null, + "all_metadata": {}, + "all_tags": [], + "availability_zone": "cnr-isti-nova-a", + "availability_zone_hints": "cnr-isti-nova-a", + "block_device": [ + { + "boot_index": 0, + "delete_on_termination": false, + "destination_type": "volume", + "device_type": "", + "disk_bus": "", + "guest_format": "", + "multiattach": false, + "source_type": "image", + "uuid": "54768889-8556-4be4-a2eb-82a4d9b34627", + "volume_size": 10, + "volume_type": "" + }, + { + "boot_index": -1, + "delete_on_termination": false, + "destination_type": "volume", + "device_type": "", + "disk_bus": "", + "guest_format": "", + "multiattach": false, + "source_type": "blank", + "uuid": "", + "volume_size": 30, + "volume_type": "" + } + ], + "config_drive": null, + "created": "2024-02-14 12:36:07 +0000 UTC", + "flavor_id": "4", + "flavor_name": "m1.medium", + "floating_ip": null, + "force_delete": false, + "id": "8d2331b8-0995-45dd-9755-d84b388ab3d4", + "image_id": "Attempt to boot from volume - no image supplied", + "image_name": "Ubuntu-Jammy-22.04", + "key_pair": "adellam", + "metadata": null, + "name": "timescaledb-01", + "network": [ + { + "access_network": false, + "fixed_ip_v4": "10.1.33.181", + "fixed_ip_v6": "", + "floating_ip": "", + "mac": "fa:16:3e:af:a7:22", + "name": "d4s-pre-cloud-main", + "port": "", + "uuid": "23fd8a99-d551-4ada-8d3a-9859542ebb8c" + }, + { + "access_network": false, + "fixed_ip_v4": "192.168.11.5", + "fixed_ip_v6": "", + "floating_ip": "", + "mac": "fa:16:3e:b5:65:23", + "name": "timescaledb-net", + "port": "", + "uuid": "435ac20a-8bd9-4e49-a86b-69bdfcd6967b" + } + ], + "network_mode": null, + "personality": [], + "power_state": "active", + "region": "isti_area_pi_1", + "scheduler_hints": [ + { + "additional_properties": {}, + "build_near_host_ip": "", + "different_cell": [], + "different_host": [], + "group": "84ce7a5c-ce77-43a6-8c49-39d61484e82e", + "query": [], + "same_host": [], + "target_cell": "" + } + ], + "security_groups": [ + "access_to_the_timescaledb_service", + "default_for_all", + "timescaledb_temporary" + ], + "stop_before_destroy": false, + "tags": [], + "timeouts": null, + "updated": "2024-02-29 16:53:56 +0000 UTC", + "user_data": "bb83b25fd1219aa1b850ece9be8d7b0f31714608", + "vendor_options": [], + "volume": [] + } + ], + "timescaledb_subnet": { + "all_tags": [], + "allocation_pool": [ + { + "end": "192.168.11.254", + "start": "192.168.11.20" + } + ], + "allocation_pools": [ + { + "end": "192.168.11.254", + "start": "192.168.11.20" + } + ], + "cidr": "192.168.11.0/24", + "description": "subnet used to connect to the shared TimeScaleDB service", + "dns_nameservers": [ + "146.48.29.97", + "146.48.29.98", + "146.48.29.99" + ], + "enable_dhcp": true, + "gateway_ip": "", + "host_routes": [], + "id": "cba5700b-db7f-4764-9fc9-5132367608fa", + "ip_version": 4, + "ipv6_address_mode": "", + "ipv6_ra_mode": "", + "name": "timescaledb-subnet", + "network_id": "435ac20a-8bd9-4e49-a86b-69bdfcd6967b", + "no_gateway": true, + "prefix_length": null, + "region": "isti_area_pi_1", + "service_types": [], + "subnetpool_id": "", + "tags": [], + "tenant_id": "6fdc02e2827b405dad99f34698659742", + "timeouts": null, + "value_specs": null + } + }, + "type": [ + "object", + { + "timescaledb_net": [ + "object", + { + "admin_state_up": "bool", + "all_tags": [ + "set", + "string" + ], + "availability_zone_hints": [ + "set", + "string" + ], + "description": "string", + "dns_domain": "string", + "external": "bool", + "id": "string", + "mtu": "number", + "name": "string", + "port_security_enabled": "bool", + "qos_policy_id": "string", + "region": "string", + "segments": [ + "set", + [ + "object", + { + "network_type": "string", + "physical_network": "string", + "segmentation_id": "number" + } + ] + ], + "shared": "bool", + "tags": [ + "set", + "string" + ], + "tenant_id": "string", + "timeouts": [ + "object", + { + "create": "string", + "delete": "string" + } + ], + "transparent_vlan": "bool", + "value_specs": [ + "map", + "string" + ] + } + ], + "timescaledb_servers": [ + "tuple", + [ + [ + "object", + { + "access_ip_v4": "string", + "access_ip_v6": "string", + "admin_pass": "string", + "all_metadata": [ + "map", + "string" + ], + "all_tags": [ + "set", + "string" + ], + "availability_zone": "string", + "availability_zone_hints": "string", + "block_device": [ + "list", + [ + "object", + { + "boot_index": "number", + "delete_on_termination": "bool", + "destination_type": "string", + "device_type": "string", + "disk_bus": "string", + "guest_format": "string", + "multiattach": "bool", + "source_type": "string", + "uuid": "string", + "volume_size": "number", + "volume_type": "string" + } + ] + ], + "config_drive": "bool", + "created": "string", + "flavor_id": "string", + "flavor_name": "string", + "floating_ip": "string", + "force_delete": "bool", + "id": "string", + "image_id": "string", + "image_name": "string", + "key_pair": "string", + "metadata": [ + "map", + "string" + ], + "name": "string", + "network": [ + "list", + [ + "object", + { + "access_network": "bool", + "fixed_ip_v4": "string", + "fixed_ip_v6": "string", + "floating_ip": "string", + "mac": "string", + "name": "string", + "port": "string", + "uuid": "string" + } + ] + ], + "network_mode": "string", + "personality": [ + "set", + [ + "object", + { + "content": "string", + "file": "string" + } + ] + ], + "power_state": "string", + "region": "string", + "scheduler_hints": [ + "set", + [ + "object", + { + "additional_properties": [ + "map", + "string" + ], + "build_near_host_ip": "string", + "different_cell": [ + "list", + "string" + ], + "different_host": [ + "list", + "string" + ], + "group": "string", + "query": [ + "list", + "string" + ], + "same_host": [ + "list", + "string" + ], + "target_cell": "string" + } + ] + ], + "security_groups": [ + "set", + "string" + ], + "stop_before_destroy": "bool", + "tags": [ + "set", + "string" + ], + "timeouts": [ + "object", + { + "create": "string", + "delete": "string", + "update": "string" + } + ], + "updated": "string", + "user_data": "string", + "vendor_options": [ + "set", + [ + "object", + { + "detach_ports_before_destroy": "bool", + "ignore_resize_confirmation": "bool" + } + ] + ], + "volume": [ + "set", + [ + "object", + { + "device": "string", + "id": "string", + "volume_id": "string" + } + ] + ] + } + ] + ] + ], + "timescaledb_subnet": [ + "object", + { + "all_tags": [ + "set", + "string" + ], + "allocation_pool": [ + "set", + [ + "object", + { + "end": "string", + "start": "string" + } + ] + ], + "allocation_pools": [ + "list", + [ + "object", + { + "end": "string", + "start": "string" + } + ] + ], + "cidr": "string", + "description": "string", + "dns_nameservers": [ + "list", + "string" + ], + "enable_dhcp": "bool", + "gateway_ip": "string", + "host_routes": [ + "list", + [ + "object", + { + "destination_cidr": "string", + "next_hop": "string" + } + ] + ], + "id": "string", + "ip_version": "number", + "ipv6_address_mode": "string", + "ipv6_ra_mode": "string", + "name": "string", + "network_id": "string", + "no_gateway": "bool", + "prefix_length": "number", + "region": "string", + "service_types": [ + "list", + "string" + ], + "subnetpool_id": "string", + "tags": [ + "set", + "string" + ], + "tenant_id": "string", + "timeouts": [ + "object", + { + "create": "string", + "delete": "string" + } + ], + "value_specs": [ + "map", + "string" + ] + } + ] + } + ] + }, + "workspace": null + }, + "sensitive_attributes": [] + } + ] + }, { "module": "module.liferay", "mode": "managed", @@ -876,14 +1617,14 @@ "security_groups": [ "default_for_all", "liferay_cluster_traffic", - "restricted_web_service", + "nfs_share_no_ingress", "traffic_from_the_main_load_balancers" ], "stop_before_destroy": false, "tags": [], "timeouts": null, "updated": "2023-12-01 16:52:40 +0000 UTC", - "user_data": "47d4769e61324c305c4b70ed6673de4fad84150d", + "user_data": "", "vendor_options": [], "volume": [] }, @@ -974,14 +1715,14 @@ "security_groups": [ "default_for_all", "liferay_cluster_traffic", - "restricted_web_service", + "nfs_share_no_ingress", "traffic_from_the_main_load_balancers" ], "stop_before_destroy": false, "tags": [], "timeouts": null, "updated": "2023-12-01 16:51:47 +0000 UTC", - "user_data": "47d4769e61324c305c4b70ed6673de4fad84150d", + "user_data": "", "vendor_options": [], "volume": [] }, @@ -995,6 +1736,114 @@ } ] }, + { + "module": "module.liferay", + "mode": "managed", + "type": "openstack_compute_interface_attach_v2", + "name": "nfs_port_to_liferay", + "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 0, + "attributes": { + "fixed_ip": "172.17.0.177", + "id": "aaf50b2a-40e2-4bbe-8e4e-39f5d83dd08f/f6b26489-1dfd-489f-9fda-102954a91240", + "instance_id": "aaf50b2a-40e2-4bbe-8e4e-39f5d83dd08f", + "network_id": "5f4023cc-4016-404c-94e5-86220095fbaf", + "port_id": "f6b26489-1dfd-489f-9fda-102954a91240", + "region": "isti_area_pi_1", + "timeouts": null + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=", + "dependencies": [ + "module.liferay.data.terraform_remote_state.privnet_dns_router", + "module.liferay.openstack_compute_instance_v2.liferay", + "module.liferay.openstack_compute_servergroup_v2.liferay", + "module.liferay.openstack_networking_port_v2.liferay_nfs_port", + "module.liferay.openstack_networking_secgroup_v2.liferay_cluster_traffic" + ] + }, + { + "index_key": 1, + "schema_version": 0, + "attributes": { + "fixed_ip": "172.17.3.68", + "id": "0b9deb27-50ba-409f-a9a7-b3a55b5e5b29/700c63d6-cf3a-4dc8-a794-9a00b2e8dd16", + "instance_id": "0b9deb27-50ba-409f-a9a7-b3a55b5e5b29", + "network_id": "5f4023cc-4016-404c-94e5-86220095fbaf", + "port_id": "700c63d6-cf3a-4dc8-a794-9a00b2e8dd16", + "region": "isti_area_pi_1", + "timeouts": null + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=", + "dependencies": [ + "module.liferay.data.terraform_remote_state.privnet_dns_router", + "module.liferay.openstack_compute_instance_v2.liferay", + "module.liferay.openstack_compute_servergroup_v2.liferay", + "module.liferay.openstack_networking_port_v2.liferay_nfs_port", + "module.liferay.openstack_networking_secgroup_v2.liferay_cluster_traffic" + ] + } + ] + }, + { + "module": "module.liferay", + "mode": "managed", + "type": "openstack_compute_interface_attach_v2", + "name": "timescaledb_port_to_liferay", + "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 0, + "attributes": { + "fixed_ip": "192.168.11.79", + "id": "aaf50b2a-40e2-4bbe-8e4e-39f5d83dd08f/327aac65-7fc0-4dfc-bbfe-e45187510e07", + "instance_id": "aaf50b2a-40e2-4bbe-8e4e-39f5d83dd08f", + "network_id": "435ac20a-8bd9-4e49-a86b-69bdfcd6967b", + "port_id": "327aac65-7fc0-4dfc-bbfe-e45187510e07", + "region": "isti_area_pi_1", + "timeouts": null + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=", + "dependencies": [ + "module.liferay.data.terraform_remote_state.privnet_dns_router", + "module.liferay.data.terraform_remote_state.timescaledb", + "module.liferay.openstack_compute_instance_v2.liferay", + "module.liferay.openstack_compute_servergroup_v2.liferay", + "module.liferay.openstack_networking_port_v2.liferay_timescaledb_port", + "module.liferay.openstack_networking_secgroup_v2.liferay_cluster_traffic" + ] + }, + { + "index_key": 1, + "schema_version": 0, + "attributes": { + "fixed_ip": "192.168.11.153", + "id": "0b9deb27-50ba-409f-a9a7-b3a55b5e5b29/c3e8d532-7408-485b-aa79-cb78f5e01cea", + "instance_id": "0b9deb27-50ba-409f-a9a7-b3a55b5e5b29", + "network_id": "435ac20a-8bd9-4e49-a86b-69bdfcd6967b", + "port_id": "c3e8d532-7408-485b-aa79-cb78f5e01cea", + "region": "isti_area_pi_1", + "timeouts": null + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=", + "dependencies": [ + "module.liferay.data.terraform_remote_state.privnet_dns_router", + "module.liferay.data.terraform_remote_state.timescaledb", + "module.liferay.openstack_compute_instance_v2.liferay", + "module.liferay.openstack_compute_servergroup_v2.liferay", + "module.liferay.openstack_networking_port_v2.liferay_timescaledb_port", + "module.liferay.openstack_networking_secgroup_v2.liferay_cluster_traffic" + ] + } + ] + }, { "module": "module.liferay", "mode": "managed", @@ -1062,6 +1911,321 @@ } ] }, + { + "module": "module.liferay", + "mode": "managed", + "type": "openstack_networking_port_secgroup_associate_v2", + "name": "liferay_nfs_port_secgroup", + "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 0, + "attributes": { + "all_security_group_ids": [ + "ddb16502-7217-4677-a8a7-ca0cbf9a779a" + ], + "enforce": false, + "id": "f6b26489-1dfd-489f-9fda-102954a91240", + "port_id": "f6b26489-1dfd-489f-9fda-102954a91240", + "region": "isti_area_pi_1", + "security_group_ids": [ + "ddb16502-7217-4677-a8a7-ca0cbf9a779a" + ] + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "module.liferay.data.terraform_remote_state.privnet_dns_router", + "module.liferay.openstack_networking_port_v2.liferay_nfs_port" + ] + }, + { + "index_key": 1, + "schema_version": 0, + "attributes": { + "all_security_group_ids": [ + "ddb16502-7217-4677-a8a7-ca0cbf9a779a" + ], + "enforce": false, + "id": "700c63d6-cf3a-4dc8-a794-9a00b2e8dd16", + "port_id": "700c63d6-cf3a-4dc8-a794-9a00b2e8dd16", + "region": "isti_area_pi_1", + "security_group_ids": [ + "ddb16502-7217-4677-a8a7-ca0cbf9a779a" + ] + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "module.liferay.data.terraform_remote_state.privnet_dns_router", + "module.liferay.openstack_networking_port_v2.liferay_nfs_port" + ] + } + ] + }, + { + "module": "module.liferay", + "mode": "managed", + "type": "openstack_networking_port_v2", + "name": "liferay_nfs_port", + "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 0, + "attributes": { + "admin_state_up": true, + "all_fixed_ips": [ + "172.17.0.177" + ], + "all_security_group_ids": [ + "ddb16502-7217-4677-a8a7-ca0cbf9a779a" + ], + "all_tags": [], + "allowed_address_pairs": [], + "binding": [ + { + "host_id": "", + "profile": "", + "vif_details": {}, + "vif_type": "", + "vnic_type": "normal" + } + ], + "description": "", + "device_id": "aaf50b2a-40e2-4bbe-8e4e-39f5d83dd08f", + "device_owner": "compute:cnr-isti-nova-a", + "dns_assignment": [ + { + "fqdn": "host-172-17-0-177.openstacklocal.", + "hostname": "host-172-17-0-177", + "ip_address": "172.17.0.177" + } + ], + "dns_name": "", + "extra_dhcp_option": [], + "fixed_ip": [ + { + "ip_address": "", + "subnet_id": "6ff0f9e8-0e74-4cc3-a268-7ed4af435696" + } + ], + "id": "f6b26489-1dfd-489f-9fda-102954a91240", + "mac_address": "fa:16:3e:e1:29:3e", + "name": "lr62-01", + "network_id": "5f4023cc-4016-404c-94e5-86220095fbaf", + "no_fixed_ip": null, + "no_security_groups": null, + "port_security_enabled": true, + "qos_policy_id": "", + "region": "isti_area_pi_1", + "security_group_ids": null, + "tags": [], + "tenant_id": "6fdc02e2827b405dad99f34698659742", + "timeouts": null, + "value_specs": null + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=", + "dependencies": [ + "module.liferay.data.terraform_remote_state.privnet_dns_router" + ] + }, + { + "index_key": 1, + "schema_version": 0, + "attributes": { + "admin_state_up": true, + "all_fixed_ips": [ + "172.17.3.68" + ], + "all_security_group_ids": [ + "ddb16502-7217-4677-a8a7-ca0cbf9a779a" + ], + "all_tags": [], + "allowed_address_pairs": [], + "binding": [ + { + "host_id": "", + "profile": "", + "vif_details": {}, + "vif_type": "", + "vnic_type": "normal" + } + ], + "description": "", + "device_id": "0b9deb27-50ba-409f-a9a7-b3a55b5e5b29", + "device_owner": "compute:cnr-isti-nova-a", + "dns_assignment": [ + { + "fqdn": "host-172-17-3-68.openstacklocal.", + "hostname": "host-172-17-3-68", + "ip_address": "172.17.3.68" + } + ], + "dns_name": "", + "extra_dhcp_option": [], + "fixed_ip": [ + { + "ip_address": "", + "subnet_id": "6ff0f9e8-0e74-4cc3-a268-7ed4af435696" + } + ], + "id": "700c63d6-cf3a-4dc8-a794-9a00b2e8dd16", + "mac_address": "fa:16:3e:89:7f:ef", + "name": "lr62-02", + "network_id": "5f4023cc-4016-404c-94e5-86220095fbaf", + "no_fixed_ip": null, + "no_security_groups": null, + "port_security_enabled": true, + "qos_policy_id": "", + "region": "isti_area_pi_1", + "security_group_ids": null, + "tags": [], + "tenant_id": "6fdc02e2827b405dad99f34698659742", + "timeouts": null, + "value_specs": null + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=", + "dependencies": [ + "module.liferay.data.terraform_remote_state.privnet_dns_router" + ] + } + ] + }, + { + "module": "module.liferay", + "mode": "managed", + "type": "openstack_networking_port_v2", + "name": "liferay_timescaledb_port", + "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", + "instances": [ + { + "index_key": 0, + "schema_version": 0, + "attributes": { + "admin_state_up": true, + "all_fixed_ips": [ + "192.168.11.79" + ], + "all_security_group_ids": [ + "c01f6017-3e5b-4a89-ade1-53be2974b678" + ], + "all_tags": [], + "allowed_address_pairs": [], + "binding": [ + { + "host_id": "", + "profile": "", + "vif_details": {}, + "vif_type": "", + "vnic_type": "normal" + } + ], + "description": "", + "device_id": "", + "device_owner": "", + "dns_assignment": [ + { + "fqdn": "host-192-168-11-79.openstacklocal.", + "hostname": "host-192-168-11-79", + "ip_address": "192.168.11.79" + } + ], + "dns_name": "", + "extra_dhcp_option": [], + "fixed_ip": [ + { + "ip_address": "", + "subnet_id": "cba5700b-db7f-4764-9fc9-5132367608fa" + } + ], + "id": "327aac65-7fc0-4dfc-bbfe-e45187510e07", + "mac_address": "fa:16:3e:34:fb:2b", + "name": "lr62-01", + "network_id": "435ac20a-8bd9-4e49-a86b-69bdfcd6967b", + "no_fixed_ip": null, + "no_security_groups": null, + "port_security_enabled": true, + "qos_policy_id": "", + "region": "isti_area_pi_1", + "security_group_ids": null, + "tags": null, + "tenant_id": "6fdc02e2827b405dad99f34698659742", + "timeouts": null, + "value_specs": null + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=", + "dependencies": [ + "module.liferay.data.terraform_remote_state.timescaledb" + ] + }, + { + "index_key": 1, + "schema_version": 0, + "attributes": { + "admin_state_up": true, + "all_fixed_ips": [ + "192.168.11.153" + ], + "all_security_group_ids": [ + "c01f6017-3e5b-4a89-ade1-53be2974b678" + ], + "all_tags": [], + "allowed_address_pairs": [], + "binding": [ + { + "host_id": "", + "profile": "", + "vif_details": {}, + "vif_type": "", + "vnic_type": "normal" + } + ], + "description": "", + "device_id": "", + "device_owner": "", + "dns_assignment": [ + { + "fqdn": "host-192-168-11-153.openstacklocal.", + "hostname": "host-192-168-11-153", + "ip_address": "192.168.11.153" + } + ], + "dns_name": "", + "extra_dhcp_option": [], + "fixed_ip": [ + { + "ip_address": "", + "subnet_id": "cba5700b-db7f-4764-9fc9-5132367608fa" + } + ], + "id": "c3e8d532-7408-485b-aa79-cb78f5e01cea", + "mac_address": "fa:16:3e:7d:46:5b", + "name": "lr62-02", + "network_id": "435ac20a-8bd9-4e49-a86b-69bdfcd6967b", + "no_fixed_ip": null, + "no_security_groups": null, + "port_security_enabled": true, + "qos_policy_id": "", + "region": "isti_area_pi_1", + "security_group_ids": null, + "tags": null, + "tenant_id": "6fdc02e2827b405dad99f34698659742", + "timeouts": null, + "value_specs": null + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=", + "dependencies": [ + "module.liferay.data.terraform_remote_state.timescaledb" + ] + } + ] + }, { "module": "module.liferay", "mode": "managed", @@ -1268,29 +2432,102 @@ { "module": "module.liferay", "mode": "managed", - "type": "openstack_objectstorage_container_v1", - "name": "liferay", + "type": "openstack_sharedfilesystem_share_access_v2", + "name": "liferay_nfs_share_access", "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", "instances": [ { - "schema_version": 1, + "index_key": 0, + "schema_version": 0, "attributes": { - "container_read": null, - "container_sync_key": null, - "container_sync_to": null, - "container_write": null, - "content_type": null, - "force_destroy": false, - "id": "liferay-data", - "metadata": null, - "name": "liferay-data", + "access_key": "", + "access_level": "rw", + "access_to": "172.17.0.177", + "access_type": "ip", + "id": "8c523216-ac58-4a7b-bc8e-17ca8586ab7d", "region": "isti_area_pi_1", - "storage_policy": "default-placement", - "versioning": false, - "versioning_legacy": [] + "share_id": "d42079f9-c77c-4b61-ba8e-f2df987ef9bf", + "state": "active", + "timeouts": null }, "sensitive_attributes": [], - "private": "eyJzY2hlbWFfdmVyc2lvbiI6IjEifQ==" + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH19", + "dependencies": [ + "module.liferay.data.terraform_remote_state.privnet_dns_router", + "module.liferay.openstack_compute_instance_v2.liferay", + "module.liferay.openstack_compute_interface_attach_v2.nfs_port_to_liferay", + "module.liferay.openstack_compute_servergroup_v2.liferay", + "module.liferay.openstack_networking_port_v2.liferay_nfs_port", + "module.liferay.openstack_networking_secgroup_v2.liferay_cluster_traffic", + "module.liferay.openstack_sharedfilesystem_share_v2.liferay_static" + ] + }, + { + "index_key": 1, + "schema_version": 0, + "attributes": { + "access_key": "", + "access_level": "rw", + "access_to": "172.17.3.68", + "access_type": "ip", + "id": "fbf108fe-bfe6-4f5a-b240-899042b1d9ee", + "region": "isti_area_pi_1", + "share_id": "d42079f9-c77c-4b61-ba8e-f2df987ef9bf", + "state": "active", + "timeouts": null + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH19", + "dependencies": [ + "module.liferay.data.terraform_remote_state.privnet_dns_router", + "module.liferay.openstack_compute_instance_v2.liferay", + "module.liferay.openstack_compute_interface_attach_v2.nfs_port_to_liferay", + "module.liferay.openstack_compute_servergroup_v2.liferay", + "module.liferay.openstack_networking_port_v2.liferay_nfs_port", + "module.liferay.openstack_networking_secgroup_v2.liferay_cluster_traffic", + "module.liferay.openstack_sharedfilesystem_share_v2.liferay_static" + ] + } + ] + }, + { + "module": "module.liferay", + "mode": "managed", + "type": "openstack_sharedfilesystem_share_v2", + "name": "liferay_static", + "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "all_metadata": {}, + "availability_zone": "nova", + "description": "NFS share for the liferay static data", + "export_locations": [ + { + "path": "172.17.0.7:/volumes/_nogroup/40293496-74da-4023-a428-563a5bea3d7a/008c093f-ce76-43c8-aa00-5c3f57a66244", + "preferred": "false" + } + ], + "has_replicas": false, + "host": "", + "id": "d42079f9-c77c-4b61-ba8e-f2df987ef9bf", + "is_public": false, + "metadata": null, + "name": "liferay_nfs_share", + "project_id": "6fdc02e2827b405dad99f34698659742", + "region": "isti_area_pi_1", + "replication_type": "", + "share_network_id": "", + "share_proto": "NFS", + "share_server_id": "", + "share_type": "default", + "size": 5, + "snapshot_id": "", + "timeouts": null + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH19" } ] }