From 3c04dace24635c67979f6f522fdfe509fbf8de4d Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Mon, 25 Mar 2024 16:45:05 +0100 Subject: [PATCH] Manila shares for the dev CCP. --- .../d4s-dev/manila-swarm-shares/ccp-dev.tf | 55 + .../d4s-dev/manila-swarm-shares/main.tf | 51 + .../d4s-dev/manila-swarm-shares/provider.tf | 3 + .../manila-swarm-shares/terraform.tfstate | 1499 +++++++++++++++++ .../manila-swarm-shares/ccp-production.tf | 82 + 5 files changed, 1690 insertions(+) create mode 100644 openstack-tf/d4s-dev/manila-swarm-shares/ccp-dev.tf create mode 100644 openstack-tf/d4s-dev/manila-swarm-shares/main.tf create mode 100644 openstack-tf/d4s-dev/manila-swarm-shares/provider.tf create mode 100644 openstack-tf/d4s-dev/manila-swarm-shares/terraform.tfstate create mode 100644 openstack-tf/d4s-production/manila-swarm-shares/ccp-production.tf diff --git a/openstack-tf/d4s-dev/manila-swarm-shares/ccp-dev.tf b/openstack-tf/d4s-dev/manila-swarm-shares/ccp-dev.tf new file mode 100644 index 0000000..f9ac69a --- /dev/null +++ b/openstack-tf/d4s-dev/manila-swarm-shares/ccp-dev.tf @@ -0,0 +1,55 @@ +# NFS shares required by the CCP +# Create a NFS share for the repository data +# +resource "openstack_sharedfilesystem_share_v2" "ccp_dev_repository_data" { + name = "ccp_dev_repository_data" + description = "NFS share for the CCP repository data" + share_proto = "NFS" + size = 5 +} + +# Allow access to the NFS share +resource "openstack_sharedfilesystem_share_access_v2" "ccp_dev_repository_nfs_access" { + for_each = var.swarm_manila_interfaces_ip + share_id = openstack_sharedfilesystem_share_v2.ccp_dev_repository_data.id + access_type = "ip" + access_to = each.value + access_level = "rw" +} + +# NFS shares required by the CCP +# Create a NFS share for the method logs +# +resource "openstack_sharedfilesystem_share_v2" "ccp_dev_methods_logs" { + name = "ccp_dev_method_logs" + description = "NFS share for the CCP method logs" + share_proto = "NFS" + size = 1 +} + +# Allow access to the NFS share +resource "openstack_sharedfilesystem_share_access_v2" "ccp_dev_methods_logs_nfs_access" { + for_each = var.swarm_manila_interfaces_ip + share_id = openstack_sharedfilesystem_share_v2.ccp_dev_methods_logs.id + access_type = "ip" + access_to = each.value + access_level = "rw" +} + +output "ccp_dev_repository_data" { + value = openstack_sharedfilesystem_share_v2.ccp_dev_repository_data +} + +output "ccp_dev_repository_data_nfs_acls" { + value = openstack_sharedfilesystem_share_access_v2.ccp_dev_repository_nfs_access + sensitive = true +} + +output "ccp_dev_methods_logs" { + value = openstack_sharedfilesystem_share_v2.ccp_dev_methods_logs +} + +output "ccp_dev_methods_logs_access_nfs_acls" { + value = openstack_sharedfilesystem_share_access_v2.ccp_dev_methods_logs_nfs_access + sensitive = true +} diff --git a/openstack-tf/d4s-dev/manila-swarm-shares/main.tf b/openstack-tf/d4s-dev/manila-swarm-shares/main.tf new file mode 100644 index 0000000..1d648fd --- /dev/null +++ b/openstack-tf/d4s-dev/manila-swarm-shares/main.tf @@ -0,0 +1,51 @@ +# 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" + } +} + +# data "terraform_remote_state" "main_infrastructure" { +# backend = "local" + +# config = { +# path = "../basic-infrastructure/terraform.tfstate" +# } +# } + +# SSH settings +module "ssh_settings" { + source = "../../modules/ssh-key-ref" +} +# +# Uses common_variables as module +# +module "common_variables" { + source = "../../modules/common_variables" +} + +variable "swarm_manila_interfaces_ip" { + type = map(string) + default = { + "mgr_1" = "172.17.2.74" + "mgr_2" = "172.17.3.218" + "mgr_3" = "172.17.2.230" + "worker_1" = "172.17.0.166" + "worker_2" = "172.17.2.171" + "worker_3" = "172.17.0.146" + "worker_4" = "172.17.1.195" + "worker_5" = "172.17.2.187" + } +} diff --git a/openstack-tf/d4s-dev/manila-swarm-shares/provider.tf b/openstack-tf/d4s-dev/manila-swarm-shares/provider.tf new file mode 100644 index 0000000..fa7a121 --- /dev/null +++ b/openstack-tf/d4s-dev/manila-swarm-shares/provider.tf @@ -0,0 +1,3 @@ +provider "openstack" { + cloud = "d4s-dev" +} diff --git a/openstack-tf/d4s-dev/manila-swarm-shares/terraform.tfstate b/openstack-tf/d4s-dev/manila-swarm-shares/terraform.tfstate new file mode 100644 index 0000000..8bf9ef6 --- /dev/null +++ b/openstack-tf/d4s-dev/manila-swarm-shares/terraform.tfstate @@ -0,0 +1,1499 @@ +{ + "version": 4, + "terraform_version": "1.6.6", + "serial": 22, + "lineage": "e184a573-599e-564f-4f4a-d9d689d9ff9b", + "outputs": { + "ccp_dev_methods_logs": { + "value": { + "all_metadata": {}, + "availability_zone": "nova", + "description": "NFS share for the CCP method logs", + "export_locations": [ + { + "path": "172.17.0.7:/volumes/_nogroup/a1911e26-ed39-4761-b314-ca1a398eb04f/38f00553-f8be-4eef-9a94-4d0973c7ea7c", + "preferred": "false" + } + ], + "has_replicas": false, + "host": "", + "id": "19e32163-f18b-4b39-9e75-add8a274193b", + "is_public": false, + "metadata": null, + "name": "ccp_dev_method_logs", + "project_id": "e8f8ca72f30648a8b389b4e745ac83a9", + "region": "isti_area_pi_1", + "replication_type": "", + "share_network_id": "", + "share_proto": "NFS", + "share_server_id": "", + "share_type": "default", + "size": 1, + "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" + } + ] + } + ] + }, + "ccp_dev_methods_logs_access_nfs_acls": { + "value": { + "mgr_1": { + "access_key": "", + "access_level": "rw", + "access_to": "172.17.2.74", + "access_type": "ip", + "id": "83e7179c-abe1-4bfc-be24-47807bb94b25", + "region": "isti_area_pi_1", + "share_id": "19e32163-f18b-4b39-9e75-add8a274193b", + "state": "active", + "timeouts": null + }, + "mgr_2": { + "access_key": "", + "access_level": "rw", + "access_to": "172.17.3.218", + "access_type": "ip", + "id": "c1f35419-81ac-446b-b889-6a5f10241185", + "region": "isti_area_pi_1", + "share_id": "19e32163-f18b-4b39-9e75-add8a274193b", + "state": "active", + "timeouts": null + }, + "mgr_3": { + "access_key": "", + "access_level": "rw", + "access_to": "172.17.2.230", + "access_type": "ip", + "id": "d2a91de5-22a7-4090-94e8-c70920dd8286", + "region": "isti_area_pi_1", + "share_id": "19e32163-f18b-4b39-9e75-add8a274193b", + "state": "active", + "timeouts": null + }, + "worker_1": { + "access_key": "", + "access_level": "rw", + "access_to": "172.17.0.166", + "access_type": "ip", + "id": "fa224b83-050c-4919-ada1-5511332a417a", + "region": "isti_area_pi_1", + "share_id": "19e32163-f18b-4b39-9e75-add8a274193b", + "state": "active", + "timeouts": null + }, + "worker_2": { + "access_key": "", + "access_level": "rw", + "access_to": "172.17.2.171", + "access_type": "ip", + "id": "4fd9d57c-0cf7-4bd5-aee9-1da8ef0f6503", + "region": "isti_area_pi_1", + "share_id": "19e32163-f18b-4b39-9e75-add8a274193b", + "state": "active", + "timeouts": null + }, + "worker_3": { + "access_key": "", + "access_level": "rw", + "access_to": "172.17.0.146", + "access_type": "ip", + "id": "539fbbef-a99a-4c7a-942d-71a1517a0fd0", + "region": "isti_area_pi_1", + "share_id": "19e32163-f18b-4b39-9e75-add8a274193b", + "state": "active", + "timeouts": null + }, + "worker_4": { + "access_key": "", + "access_level": "rw", + "access_to": "172.17.1.195", + "access_type": "ip", + "id": "cdeee9e8-4f64-4ebc-8ea2-1fcb29e93d31", + "region": "isti_area_pi_1", + "share_id": "19e32163-f18b-4b39-9e75-add8a274193b", + "state": "active", + "timeouts": null + }, + "worker_5": { + "access_key": "", + "access_level": "rw", + "access_to": "172.17.2.187", + "access_type": "ip", + "id": "0233fa77-63f1-494d-b0a9-648712b01e4d", + "region": "isti_area_pi_1", + "share_id": "19e32163-f18b-4b39-9e75-add8a274193b", + "state": "active", + "timeouts": null + } + }, + "type": [ + "object", + { + "mgr_1": [ + "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" + } + ] + } + ], + "mgr_2": [ + "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" + } + ] + } + ], + "mgr_3": [ + "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" + } + ] + } + ], + "worker_1": [ + "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" + } + ] + } + ], + "worker_2": [ + "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" + } + ] + } + ], + "worker_3": [ + "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" + } + ] + } + ], + "worker_4": [ + "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" + } + ] + } + ], + "worker_5": [ + "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 + }, + "ccp_dev_repository_data": { + "value": { + "all_metadata": {}, + "availability_zone": "nova", + "description": "NFS share for the CCP repository data", + "export_locations": [ + { + "path": "172.17.0.7:/volumes/_nogroup/d1809e82-98a3-4559-857f-565f5b8afa22/ddeac9ca-ec01-45d1-9973-f7fdfb670684", + "preferred": "false" + } + ], + "has_replicas": false, + "host": "", + "id": "3823a9d5-a2f6-4963-8c25-e2f124346264", + "is_public": false, + "metadata": null, + "name": "ccp_dev_repository_data", + "project_id": "e8f8ca72f30648a8b389b4e745ac83a9", + "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" + } + ] + } + ] + }, + "ccp_dev_repository_data_nfs_acls": { + "value": { + "mgr_1": { + "access_key": "", + "access_level": "rw", + "access_to": "172.17.2.74", + "access_type": "ip", + "id": "0ec100a6-625a-4023-ae36-8f9cae829b3b", + "region": "isti_area_pi_1", + "share_id": "3823a9d5-a2f6-4963-8c25-e2f124346264", + "state": "active", + "timeouts": null + }, + "mgr_2": { + "access_key": "", + "access_level": "rw", + "access_to": "172.17.3.218", + "access_type": "ip", + "id": "79815653-da50-464d-8347-89afa001e97d", + "region": "isti_area_pi_1", + "share_id": "3823a9d5-a2f6-4963-8c25-e2f124346264", + "state": "active", + "timeouts": null + }, + "mgr_3": { + "access_key": "", + "access_level": "rw", + "access_to": "172.17.2.230", + "access_type": "ip", + "id": "470081f4-34a5-4d1e-be5a-065256e2ec0a", + "region": "isti_area_pi_1", + "share_id": "3823a9d5-a2f6-4963-8c25-e2f124346264", + "state": "active", + "timeouts": null + }, + "worker_1": { + "access_key": "", + "access_level": "rw", + "access_to": "172.17.0.166", + "access_type": "ip", + "id": "a4a636f8-1af4-4416-8245-6174a80e4050", + "region": "isti_area_pi_1", + "share_id": "3823a9d5-a2f6-4963-8c25-e2f124346264", + "state": "active", + "timeouts": null + }, + "worker_2": { + "access_key": "", + "access_level": "rw", + "access_to": "172.17.2.171", + "access_type": "ip", + "id": "af69391b-06d4-4932-b23c-6c3ca720dcfd", + "region": "isti_area_pi_1", + "share_id": "3823a9d5-a2f6-4963-8c25-e2f124346264", + "state": "active", + "timeouts": null + }, + "worker_3": { + "access_key": "", + "access_level": "rw", + "access_to": "172.17.0.146", + "access_type": "ip", + "id": "c575eb3e-4a77-42ea-98e4-acd3f52726cc", + "region": "isti_area_pi_1", + "share_id": "3823a9d5-a2f6-4963-8c25-e2f124346264", + "state": "active", + "timeouts": null + }, + "worker_4": { + "access_key": "", + "access_level": "rw", + "access_to": "172.17.1.195", + "access_type": "ip", + "id": "db86ceed-c779-4dac-81e4-8eaf466f40b9", + "region": "isti_area_pi_1", + "share_id": "3823a9d5-a2f6-4963-8c25-e2f124346264", + "state": "active", + "timeouts": null + }, + "worker_5": { + "access_key": "", + "access_level": "rw", + "access_to": "172.17.2.187", + "access_type": "ip", + "id": "70667323-0658-4172-bb17-fc1eec786aee", + "region": "isti_area_pi_1", + "share_id": "3823a9d5-a2f6-4963-8c25-e2f124346264", + "state": "active", + "timeouts": null + } + }, + "type": [ + "object", + { + "mgr_1": [ + "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" + } + ] + } + ], + "mgr_2": [ + "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" + } + ] + } + ], + "mgr_3": [ + "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" + } + ] + } + ], + "worker_1": [ + "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" + } + ] + } + ], + "worker_2": [ + "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" + } + ] + } + ], + "worker_3": [ + "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" + } + ] + } + ], + "worker_4": [ + "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" + } + ] + } + ], + "worker_5": [ + "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 + } + }, + "resources": [ + { + "mode": "data", + "type": "terraform_remote_state", + "name": "privnet_dns_router", + "provider": "provider[\"terraform.io/builtin/terraform\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "backend": "local", + "config": { + "value": { + "path": "../project-setup/terraform.tfstate" + }, + "type": [ + "object", + { + "path": "string" + } + ] + }, + "defaults": null, + "outputs": { + "value": { + "almalinux_9": { + "name": "AlmaLinux-9.0-20220718", + "uuid": "541650fc-dd19-4f38-bb1d-7333ed9dd688" + }, + "availability_zone_no_gpu_name": "cnr-isti-nova-a", + "availability_zone_with_gpu_name": "cnr-isti-nova-gpu-a", + "availability_zones_names": { + "availability_zone_no_gpu": "cnr-isti-nova-a", + "availability_zone_with_gpu": "cnr-isti-nova-gpu-a" + }, + "basic_services_ip": { + "ca": "10.1.29.247", + "ca_cidr": "10.1.29.247/32", + "haproxy_l7_1": "10.1.28.50", + "haproxy_l7_1_cidr": "10.1.28.50/32", + "haproxy_l7_2": "10.1.30.241", + "haproxy_l7_2_cidr": "10.1.30.241/32", + "octavia_main": "10.1.28.227", + "octavia_main_cidr": "10.1.28.227/32", + "prometheus": "10.1.30.129", + "prometheus_cidr": "10.1.30.129/32", + "ssh_jump": "10.1.29.164", + "ssh_jump_cidr": "10.1.29.164/32" + }, + "centos_7": { + "name": "CentOS-7", + "uuid": "f0187a99-64f6-462a-ab5f-ef52fe62f2ca" + }, + "default_security_group_name": "default", + "dns_zone": { + "description": "DNS primary zone for the d4s-dev-cloud project", + "email": "postmaster@isti.cnr.it", + "ttl": "8600", + "zone_name": "cloud-dev.d4science.org." + }, + "dns_zone_id": "cbae638a-9d99-44aa-946c-0f5ffb7fc488", + "el7_data_file": "../../openstack_vm_data_scripts/el7.sh", + "external_gateway_ip": [ + { + "ip_address": "146.48.31.109", + "subnet_id": "57f87509-4016-46fb-b8c3-25fca7f72ccb" + } + ], + "external_network": { + "id": "1d2ff137-6ff7-4017-be2b-0d6c4af2353b", + "name": "external-network" + }, + "external_network_id": "1d2ff137-6ff7-4017-be2b-0d6c4af2353b", + "external_router": { + "description": "D4Science DEV main router", + "id": "2ae28c5f-036b-45db-bc9f-5bab8fa3e914", + "name": "d4s-dev-cloud-external-router" + }, + "flavor_list": { + "c1_large": "c1.large", + "c1_medium": "c1.medium", + "c1_small": "c1.small", + "c2_large": "c2.large", + "m1_large": "m1.large", + "m1_medium": "m1.medium", + "m1_xlarge": "m1.xlarge", + "m1_xxl": "m1.xxl", + "m2_large": "m2.large", + "m2_medium": "m2.medium", + "m2_small": "m2.small", + "m3_large": "m3.large" + }, + "floating_ip_pools": { + "main_public_ip_pool": "external-network" + }, + "haproxy_l7_data": { + "flavor": "m1.medium", + "haproxy_1": "haproxy-l7-1", + "haproxy_2": "haproxy-l7-2", + "name": "main-haproxy-l7", + "vm_count": "2" + }, + "internal_ca_data": { + "flavor": "m1.small", + "name": "ca" + }, + "main_haproxy_l7_ip": [ + "10.1.28.50", + "10.1.30.241" + ], + "main_private_network": { + "description": "D4Science DEV private network (use this as the main network)", + "name": "d4s-dev-cloud-main" + }, + "main_private_network_id": "e0af5eba-f24a-4d0d-8184-bc654b980c4a", + "main_private_subnet": { + "allocation_end": "10.1.31.254", + "allocation_start": "10.1.28.30", + "cidr": "10.1.28.0/22", + "description": "D4Science DEV main private subnet", + "gateway_ip": "10.1.28.1", + "name": "d4s-dev-cloud-sub" + }, + "main_region": "isti_area_pi_1", + "main_subnet_network_id": "2aa977f2-80b4-447c-a6b0-dfa06bf68751", + "mtu_size": 8942, + "networks_list": { + "cassandra": "cassandra-net", + "orientdb": "orientdb-net", + "orientdb_se": "orientdb-se-net", + "shared_postgresql": "postgresql-srv-net", + "swarm": "swarm-nfs-net", + "timescaledb": "timescaledb-net" + }, + "networks_with_d4s_services": { + "garr_ct1_net": "90.147.166.0/23", + "garr_na_net": "90.147.152.0/24", + "garr_pa1_net": "90.147.188.0/23", + "infrascience_net": "146.48.122.0/23", + "isti_net": "146.48.80.0/21", + "s2i2s_net": "146.48.28.0/22" + }, + "nfs_share_no_ingress_secgroup_id": "5887da8d-e362-4509-93ac-8a70bf8baef9", + "octavia_information": { + "main_lb_description": "Main L4 load balancer for the D4Science DEV", + "main_lb_hostname": "main-lb", + "main_lb_name": "lb-dev-l4", + "octavia_flavor": "octavia_amphora-mvcpu-ha", + "octavia_flavor_id": "394988b5-6603-4a1e-a939-8e177c6681c7" + }, + "os_project_data": { + "id": "e8f8ca72f30648a8b389b4e745ac83a9" + }, + "policy_list": { + "affinity": "affinity", + "anti_affinity": "anti-affinity", + "soft_affinity": "soft-affinity", + "soft_anti_affinity": "soft-anti-affinity" + }, + "prometheus_server_data": { + "flavor": "m1.medium", + "name": "prometheus", + "public_grafana_server_cidr": "146.48.28.103/32", + "vol_data_device": "/dev/vdb", + "vol_data_name": "prometheus-data", + "vol_data_size": "100" + }, + "resolvers_ip": [ + "146.48.29.97", + "146.48.29.98", + "146.48.29.99" + ], + "resource_registry_addresses": {}, + "security_group_list": { + "acaland": "acaland's dev machine", + "access_to_orientdb": "access_to_orientdb", + "access_to_orientdb_se": "access_to_orientdb_se", + "access_to_the_timescaledb_service": "access_to_the_timescaledb_service", + "cassandra": "Cassandra", + "dataminer-publish": "dataminer-publish", + "debugging_from_jump_node": "debugging_from_jump_node", + "default": "default", + "docker_swarm": "Docker Swarm", + "docker_swarm_NFS": "Docker Swarm NFS", + "haproxy": "traffic_from_main_lb_to_haproxy_l7", + "http_and_https_from_the_load_balancers": "traffic_from_the_main_load_balancers", + "limited_HTTPS_access": "restricted_web_service", + "limited_SSH_access": "Limited SSH access", + "mongo": "mongo", + "nfs_share_no_ingress": "nfs_share_no_ingress", + "orientdb_internal_docker_traffic": "orientdb_internal_docker_traffic", + "postgreSQL": "PostgreSQL service", + "public_HTTPS": "Public HTTPS" + }, + "shared_postgresql_server_data": { + "allocation_pool_end": "192.168.3.254", + "allocation_pool_start": "192.168.0.100", + "flavor": "m1.medium", + "name": "shared-postgresql-server", + "network_cidr": "192.168.0.0/22", + "network_description": "Network used to communicate with the shared postgresql service", + "network_name": "postgresql-srv-net", + "server_cidr": "192.168.0.5/22", + "server_ip": "192.168.0.5", + "vol_data_device": "/dev/vdb", + "vol_data_name": "shared-postgresql-data", + "vol_data_size": "100" + }, + "smartexecutor_addresses": {}, + "ssh_jump_proxy": { + "flavor": "m2.small", + "name": "ssh-jump-proxy" + }, + "ssh_sources": { + "d4s_vpn_1_cidr": "146.48.122.27/32", + "d4s_vpn_2_cidr": "146.48.122.49/32", + "infrascience_net_cidr": "146.48.122.0/23", + "s2i2s_vpn_1_cidr": "146.48.28.10/32", + "s2i2s_vpn_2_cidr": "146.48.28.11/32", + "shell_d4s_cidr": "146.48.122.95/32" + }, + "storage_nfs_network_id": "5f4023cc-4016-404c-94e5-86220095fbaf", + "storage_nfs_subnet_id": "6ff0f9e8-0e74-4cc3-a268-7ed4af435696", + "ubuntu1804_data_file": "../../openstack_vm_data_scripts/ubuntu1804.sh", + "ubuntu2204_data_file": "../../openstack_vm_data_scripts/ubuntu2204.sh", + "ubuntu_1804": { + "name": "Ubuntu-Bionic-18.04", + "user_data_file": "../../openstack_vm_data_scripts/ubuntu1804.sh", + "uuid": "7ed6a2cd-2b07-482e-8ce4-f018dff16c89" + }, + "ubuntu_2204": { + "name": "Ubuntu-Jammy-22.04", + "user_data_file": "../../openstack_vm_data_scripts/ubuntu2204.sh", + "uuid": "54768889-8556-4be4-a2eb-82a4d9b34627" + } + }, + "type": [ + "object", + { + "almalinux_9": [ + "map", + "string" + ], + "availability_zone_no_gpu_name": "string", + "availability_zone_with_gpu_name": "string", + "availability_zones_names": [ + "map", + "string" + ], + "basic_services_ip": [ + "map", + "string" + ], + "centos_7": [ + "map", + "string" + ], + "default_security_group_name": "string", + "dns_zone": [ + "map", + "string" + ], + "dns_zone_id": "string", + "el7_data_file": "string", + "external_gateway_ip": [ + "list", + [ + "object", + { + "ip_address": "string", + "subnet_id": "string" + } + ] + ], + "external_network": [ + "map", + "string" + ], + "external_network_id": "string", + "external_router": [ + "map", + "string" + ], + "flavor_list": [ + "map", + "string" + ], + "floating_ip_pools": [ + "map", + "string" + ], + "haproxy_l7_data": [ + "map", + "string" + ], + "internal_ca_data": [ + "map", + "string" + ], + "main_haproxy_l7_ip": [ + "list", + "string" + ], + "main_private_network": [ + "map", + "string" + ], + "main_private_network_id": "string", + "main_private_subnet": [ + "map", + "string" + ], + "main_region": "string", + "main_subnet_network_id": "string", + "mtu_size": "number", + "networks_list": [ + "map", + "string" + ], + "networks_with_d4s_services": [ + "map", + "string" + ], + "nfs_share_no_ingress_secgroup_id": "string", + "octavia_information": [ + "map", + "string" + ], + "os_project_data": [ + "map", + "string" + ], + "policy_list": [ + "map", + "string" + ], + "prometheus_server_data": [ + "map", + "string" + ], + "resolvers_ip": [ + "list", + "string" + ], + "resource_registry_addresses": [ + "map", + "string" + ], + "security_group_list": [ + "map", + "string" + ], + "shared_postgresql_server_data": [ + "map", + "string" + ], + "smartexecutor_addresses": [ + "map", + "string" + ], + "ssh_jump_proxy": [ + "map", + "string" + ], + "ssh_sources": [ + "map", + "string" + ], + "storage_nfs_network_id": "string", + "storage_nfs_subnet_id": "string", + "ubuntu1804_data_file": "string", + "ubuntu2204_data_file": "string", + "ubuntu_1804": [ + "map", + "string" + ], + "ubuntu_2204": [ + "map", + "string" + ] + } + ] + }, + "workspace": null + }, + "sensitive_attributes": [] + } + ] + }, + { + "mode": "managed", + "type": "openstack_sharedfilesystem_share_access_v2", + "name": "ccp_dev_methods_logs_nfs_access", + "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", + "instances": [ + { + "index_key": "mgr_1", + "schema_version": 0, + "attributes": { + "access_key": "", + "access_level": "rw", + "access_to": "172.17.2.74", + "access_type": "ip", + "id": "83e7179c-abe1-4bfc-be24-47807bb94b25", + "region": "isti_area_pi_1", + "share_id": "19e32163-f18b-4b39-9e75-add8a274193b", + "state": "active", + "timeouts": null + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH19", + "dependencies": [ + "openstack_sharedfilesystem_share_v2.ccp_dev_methods_logs" + ] + }, + { + "index_key": "mgr_2", + "schema_version": 0, + "attributes": { + "access_key": "", + "access_level": "rw", + "access_to": "172.17.3.218", + "access_type": "ip", + "id": "c1f35419-81ac-446b-b889-6a5f10241185", + "region": "isti_area_pi_1", + "share_id": "19e32163-f18b-4b39-9e75-add8a274193b", + "state": "active", + "timeouts": null + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH19", + "dependencies": [ + "openstack_sharedfilesystem_share_v2.ccp_dev_methods_logs" + ] + }, + { + "index_key": "mgr_3", + "schema_version": 0, + "attributes": { + "access_key": "", + "access_level": "rw", + "access_to": "172.17.2.230", + "access_type": "ip", + "id": "d2a91de5-22a7-4090-94e8-c70920dd8286", + "region": "isti_area_pi_1", + "share_id": "19e32163-f18b-4b39-9e75-add8a274193b", + "state": "active", + "timeouts": null + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH19", + "dependencies": [ + "openstack_sharedfilesystem_share_v2.ccp_dev_methods_logs" + ] + }, + { + "index_key": "worker_1", + "schema_version": 0, + "attributes": { + "access_key": "", + "access_level": "rw", + "access_to": "172.17.0.166", + "access_type": "ip", + "id": "fa224b83-050c-4919-ada1-5511332a417a", + "region": "isti_area_pi_1", + "share_id": "19e32163-f18b-4b39-9e75-add8a274193b", + "state": "active", + "timeouts": null + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH19", + "dependencies": [ + "openstack_sharedfilesystem_share_v2.ccp_dev_methods_logs" + ] + }, + { + "index_key": "worker_2", + "schema_version": 0, + "attributes": { + "access_key": "", + "access_level": "rw", + "access_to": "172.17.2.171", + "access_type": "ip", + "id": "4fd9d57c-0cf7-4bd5-aee9-1da8ef0f6503", + "region": "isti_area_pi_1", + "share_id": "19e32163-f18b-4b39-9e75-add8a274193b", + "state": "active", + "timeouts": null + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH19", + "dependencies": [ + "openstack_sharedfilesystem_share_v2.ccp_dev_methods_logs" + ] + }, + { + "index_key": "worker_3", + "schema_version": 0, + "attributes": { + "access_key": "", + "access_level": "rw", + "access_to": "172.17.0.146", + "access_type": "ip", + "id": "539fbbef-a99a-4c7a-942d-71a1517a0fd0", + "region": "isti_area_pi_1", + "share_id": "19e32163-f18b-4b39-9e75-add8a274193b", + "state": "active", + "timeouts": null + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH19", + "dependencies": [ + "openstack_sharedfilesystem_share_v2.ccp_dev_methods_logs" + ] + }, + { + "index_key": "worker_4", + "schema_version": 0, + "attributes": { + "access_key": "", + "access_level": "rw", + "access_to": "172.17.1.195", + "access_type": "ip", + "id": "cdeee9e8-4f64-4ebc-8ea2-1fcb29e93d31", + "region": "isti_area_pi_1", + "share_id": "19e32163-f18b-4b39-9e75-add8a274193b", + "state": "active", + "timeouts": null + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH19", + "dependencies": [ + "openstack_sharedfilesystem_share_v2.ccp_dev_methods_logs" + ] + }, + { + "index_key": "worker_5", + "schema_version": 0, + "attributes": { + "access_key": "", + "access_level": "rw", + "access_to": "172.17.2.187", + "access_type": "ip", + "id": "0233fa77-63f1-494d-b0a9-648712b01e4d", + "region": "isti_area_pi_1", + "share_id": "19e32163-f18b-4b39-9e75-add8a274193b", + "state": "active", + "timeouts": null + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH19", + "dependencies": [ + "openstack_sharedfilesystem_share_v2.ccp_dev_methods_logs" + ] + } + ] + }, + { + "mode": "managed", + "type": "openstack_sharedfilesystem_share_access_v2", + "name": "ccp_dev_repository_nfs_access", + "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", + "instances": [ + { + "index_key": "mgr_1", + "schema_version": 0, + "attributes": { + "access_key": "", + "access_level": "rw", + "access_to": "172.17.2.74", + "access_type": "ip", + "id": "0ec100a6-625a-4023-ae36-8f9cae829b3b", + "region": "isti_area_pi_1", + "share_id": "3823a9d5-a2f6-4963-8c25-e2f124346264", + "state": "active", + "timeouts": null + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH19", + "dependencies": [ + "openstack_sharedfilesystem_share_v2.ccp_dev_repository_data" + ] + }, + { + "index_key": "mgr_2", + "schema_version": 0, + "attributes": { + "access_key": "", + "access_level": "rw", + "access_to": "172.17.3.218", + "access_type": "ip", + "id": "79815653-da50-464d-8347-89afa001e97d", + "region": "isti_area_pi_1", + "share_id": "3823a9d5-a2f6-4963-8c25-e2f124346264", + "state": "active", + "timeouts": null + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH19", + "dependencies": [ + "openstack_sharedfilesystem_share_v2.ccp_dev_repository_data" + ] + }, + { + "index_key": "mgr_3", + "schema_version": 0, + "attributes": { + "access_key": "", + "access_level": "rw", + "access_to": "172.17.2.230", + "access_type": "ip", + "id": "470081f4-34a5-4d1e-be5a-065256e2ec0a", + "region": "isti_area_pi_1", + "share_id": "3823a9d5-a2f6-4963-8c25-e2f124346264", + "state": "active", + "timeouts": null + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH19", + "dependencies": [ + "openstack_sharedfilesystem_share_v2.ccp_dev_repository_data" + ] + }, + { + "index_key": "worker_1", + "schema_version": 0, + "attributes": { + "access_key": "", + "access_level": "rw", + "access_to": "172.17.0.166", + "access_type": "ip", + "id": "a4a636f8-1af4-4416-8245-6174a80e4050", + "region": "isti_area_pi_1", + "share_id": "3823a9d5-a2f6-4963-8c25-e2f124346264", + "state": "active", + "timeouts": null + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH19", + "dependencies": [ + "openstack_sharedfilesystem_share_v2.ccp_dev_repository_data" + ] + }, + { + "index_key": "worker_2", + "schema_version": 0, + "attributes": { + "access_key": "", + "access_level": "rw", + "access_to": "172.17.2.171", + "access_type": "ip", + "id": "af69391b-06d4-4932-b23c-6c3ca720dcfd", + "region": "isti_area_pi_1", + "share_id": "3823a9d5-a2f6-4963-8c25-e2f124346264", + "state": "active", + "timeouts": null + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH19", + "dependencies": [ + "openstack_sharedfilesystem_share_v2.ccp_dev_repository_data" + ] + }, + { + "index_key": "worker_3", + "schema_version": 0, + "attributes": { + "access_key": "", + "access_level": "rw", + "access_to": "172.17.0.146", + "access_type": "ip", + "id": "c575eb3e-4a77-42ea-98e4-acd3f52726cc", + "region": "isti_area_pi_1", + "share_id": "3823a9d5-a2f6-4963-8c25-e2f124346264", + "state": "active", + "timeouts": null + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH19", + "dependencies": [ + "openstack_sharedfilesystem_share_v2.ccp_dev_repository_data" + ] + }, + { + "index_key": "worker_4", + "schema_version": 0, + "attributes": { + "access_key": "", + "access_level": "rw", + "access_to": "172.17.1.195", + "access_type": "ip", + "id": "db86ceed-c779-4dac-81e4-8eaf466f40b9", + "region": "isti_area_pi_1", + "share_id": "3823a9d5-a2f6-4963-8c25-e2f124346264", + "state": "active", + "timeouts": null + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH19", + "dependencies": [ + "openstack_sharedfilesystem_share_v2.ccp_dev_repository_data" + ] + }, + { + "index_key": "worker_5", + "schema_version": 0, + "attributes": { + "access_key": "", + "access_level": "rw", + "access_to": "172.17.2.187", + "access_type": "ip", + "id": "70667323-0658-4172-bb17-fc1eec786aee", + "region": "isti_area_pi_1", + "share_id": "3823a9d5-a2f6-4963-8c25-e2f124346264", + "state": "active", + "timeouts": null + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH19", + "dependencies": [ + "openstack_sharedfilesystem_share_v2.ccp_dev_repository_data" + ] + } + ] + }, + { + "mode": "managed", + "type": "openstack_sharedfilesystem_share_v2", + "name": "ccp_dev_methods_logs", + "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "all_metadata": {}, + "availability_zone": "nova", + "description": "NFS share for the CCP method logs", + "export_locations": [ + { + "path": "172.17.0.7:/volumes/_nogroup/a1911e26-ed39-4761-b314-ca1a398eb04f/38f00553-f8be-4eef-9a94-4d0973c7ea7c", + "preferred": "false" + } + ], + "has_replicas": false, + "host": "", + "id": "19e32163-f18b-4b39-9e75-add8a274193b", + "is_public": false, + "metadata": null, + "name": "ccp_dev_method_logs", + "project_id": "e8f8ca72f30648a8b389b4e745ac83a9", + "region": "isti_area_pi_1", + "replication_type": "", + "share_network_id": "", + "share_proto": "NFS", + "share_server_id": "", + "share_type": "default", + "size": 1, + "snapshot_id": "", + "timeouts": null + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH19" + } + ] + }, + { + "mode": "managed", + "type": "openstack_sharedfilesystem_share_v2", + "name": "ccp_dev_repository_data", + "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "all_metadata": {}, + "availability_zone": "nova", + "description": "NFS share for the CCP repository data", + "export_locations": [ + { + "path": "172.17.0.7:/volumes/_nogroup/d1809e82-98a3-4559-857f-565f5b8afa22/ddeac9ca-ec01-45d1-9973-f7fdfb670684", + "preferred": "false" + } + ], + "has_replicas": false, + "host": "", + "id": "3823a9d5-a2f6-4963-8c25-e2f124346264", + "is_public": false, + "metadata": null, + "name": "ccp_dev_repository_data", + "project_id": "e8f8ca72f30648a8b389b4e745ac83a9", + "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" + } + ] + } + ], + "check_results": null +} diff --git a/openstack-tf/d4s-production/manila-swarm-shares/ccp-production.tf b/openstack-tf/d4s-production/manila-swarm-shares/ccp-production.tf new file mode 100644 index 0000000..85f5beb --- /dev/null +++ b/openstack-tf/d4s-production/manila-swarm-shares/ccp-production.tf @@ -0,0 +1,82 @@ +# NFS shares required by the CCP +# Create a NFS share for the repository data +# +resource "openstack_sharedfilesystem_share_v2" "ccp_production_repository_data" { + name = "ccp_production_repository_data" + description = "NFS share for the CCP repository data" + share_proto = "NFS" + size = 5000 +} + +# Allow access to the NFS share +resource "openstack_sharedfilesystem_share_access_v2" "ccp_production_repository_access_swarm_mgr" { + for_each = { for nfs_ip in data.terraform_remote_state.main_infrastructure.outputs.swarm_managers_nfs_ip_ports : join("", nfs_ip.all_fixed_ips) => nfs_ip } + share_id = openstack_sharedfilesystem_share_v2.ccp_production_repository_data.id + access_type = "ip" + access_to = each.key + access_level = "rw" +} + +resource "openstack_sharedfilesystem_share_access_v2" "ccp_production_repository_access_swarm_workers" { + for_each = { for nfs_ip in data.terraform_remote_state.main_infrastructure.outputs.swarm_workers_nfs_ip_ports : join("", nfs_ip.all_fixed_ips) => nfs_ip } + share_id = openstack_sharedfilesystem_share_v2.ccp_production_repository_data.id + access_type = "ip" + access_to = each.key + access_level = "rw" +} + +# NFS shares required by the CCP +# Create a NFS share for the method logs +# +resource "openstack_sharedfilesystem_share_v2" "ccp_production_methods_logs" { + name = "ccp_production_method_logs" + description = "NFS share for the CCP method logs" + share_proto = "NFS" + size = 1000 +} + +# Allow access to the NFS share +resource "openstack_sharedfilesystem_share_access_v2" "ccp_production_methods_logs_access_swarm_mgr" { + for_each = { for nfs_ip in data.terraform_remote_state.main_infrastructure.outputs.swarm_managers_nfs_ip_ports : join("", nfs_ip.all_fixed_ips) => nfs_ip } + share_id = openstack_sharedfilesystem_share_v2.ccp_production_methods_logs.id + access_type = "ip" + access_to = each.key + access_level = "rw" +} + +resource "openstack_sharedfilesystem_share_access_v2" "ccp_production_methods_logs_access_swarm_workers" { + for_each = { for nfs_ip in data.terraform_remote_state.main_infrastructure.outputs.swarm_workers_nfs_ip_ports : join("", nfs_ip.all_fixed_ips) => nfs_ip } + share_id = openstack_sharedfilesystem_share_v2.ccp_production_methods_logs.id + access_type = "ip" + access_to = each.key + access_level = "rw" +} + + +output "ccp_production_repository_data" { + value = openstack_sharedfilesystem_share_v2.ccp_production_repository_data +} + +output "ccp_production_repository_data_mgr_acls" { + value = openstack_sharedfilesystem_share_access_v2.ccp_production_repository_access_swarm_mgr + sensitive = true +} + +output "ccp_production_repository_workers_acls" { + value = openstack_sharedfilesystem_share_access_v2.ccp_production_repository_access_swarm_workers + sensitive = true +} + +output "ccp_production_methods_logs" { + value = openstack_sharedfilesystem_share_v2.ccp_production_methods_logs +} + +output "ccp_production_methods_logs_access_swarm_mgr" { + value = openstack_sharedfilesystem_share_access_v2.ccp_production_methods_logs_access_swarm_mgr + sensitive = true +} + +output "ccp_production_methods_logs_access_swarm_workers" { + value = openstack_sharedfilesystem_share_access_v2.ccp_production_methods_logs_access_swarm_workers + sensitive = true +}