diff --git a/openstack-tf/d4s-dev/keycloak/terraform.tfstate b/openstack-tf/d4s-dev/keycloak/terraform.tfstate index 45f62a8..b9ca64f 100644 --- a/openstack-tf/d4s-dev/keycloak/terraform.tfstate +++ b/openstack-tf/d4s-dev/keycloak/terraform.tfstate @@ -1,7 +1,7 @@ { "version": 4, "terraform_version": "1.6.5", - "serial": 6, + "serial": 7, "lineage": "2d09d087-e2e3-bb5d-0474-c09dfa4c7145", "outputs": {}, "resources": [ @@ -410,6 +410,34 @@ } ] }, + { + "mode": "managed", + "type": "openstack_objectstorage_container_v1", + "name": "keycloak_1", + "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", + "instances": [ + { + "schema_version": 1, + "attributes": { + "container_read": null, + "container_sync_key": null, + "container_sync_to": null, + "container_write": null, + "content_type": null, + "force_destroy": null, + "id": "keycloak", + "metadata": null, + "name": "keycloak", + "region": "isti_area_pi_1", + "storage_policy": "default-placement", + "versioning": false, + "versioning_legacy": [] + }, + "sensitive_attributes": [], + "private": "eyJzY2hlbWFfdmVyc2lvbiI6IjEifQ==" + } + ] + }, { "module": "module.instance_without_data_volume", "mode": "managed", diff --git a/openstack-tf/d4s-dev/smart-executor/main.tf b/openstack-tf/d4s-dev/smart-executor/main.tf index 9407214..7374039 100644 --- a/openstack-tf/d4s-dev/smart-executor/main.tf +++ b/openstack-tf/d4s-dev/smart-executor/main.tf @@ -91,7 +91,7 @@ module "instance_without_data_volume" { resource_checker_se_plugin = { name = "resource-checker-se-plugin", description = "This instance serves smart-executor service with resource-checker-se-plugin", - flavor = module.common_variables.flavor_list.c1_small, + flavor = module.common_variables.flavor_list.m1_medium, networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, module.common_variables.networks_list.orientdb_se], security_groups = [data.terraform_remote_state.privnet_dns_router.outputs.default_security_group_name, data.terraform_remote_state.privnet_dns_router.outputs.security_group_list.http_and_https_from_the_load_balancers], server_groups_ids = [openstack_compute_servergroup_v2.resource_checker_server_group.id], @@ -101,7 +101,7 @@ module "instance_without_data_volume" { social_data_indexer_se_plugin = { name = "social-data-indexer-se-plugin", description = "This instance serves smart-executor service with social-data-indexer-se-plugin", - flavor = module.common_variables.flavor_list.c1_small, + flavor = module.common_variables.flavor_list.m1_medium, networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, module.common_variables.networks_list.orientdb_se], security_groups = [data.terraform_remote_state.privnet_dns_router.outputs.default_security_group_name, data.terraform_remote_state.privnet_dns_router.outputs.security_group_list.http_and_https_from_the_load_balancers], server_groups_ids = [openstack_compute_servergroup_v2.social_data_indexer_server_group.id], @@ -110,7 +110,7 @@ module "instance_without_data_volume" { accounting_insert_storage_se_plugin = { name = "accounting-insert-storage-se-plugin", description = "This instance serves smart-executor service with accounting-insert-storage-se-plugin", - flavor = module.common_variables.flavor_list.c1_small, + flavor = module.common_variables.flavor_list.m1_medium, networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, module.common_variables.networks_list.orientdb_se], security_groups = [data.terraform_remote_state.privnet_dns_router.outputs.default_security_group_name, data.terraform_remote_state.privnet_dns_router.outputs.security_group_list.http_and_https_from_the_load_balancers], server_groups_ids = [openstack_compute_servergroup_v2.accounting_insert_storage_server_group.id], diff --git a/openstack-tf/d4s-dev/smart-executor/terraform.tfstate b/openstack-tf/d4s-dev/smart-executor/terraform.tfstate index 874824b..ddcea8c 100644 --- a/openstack-tf/d4s-dev/smart-executor/terraform.tfstate +++ b/openstack-tf/d4s-dev/smart-executor/terraform.tfstate @@ -1,7 +1,7 @@ { "version": 4, "terraform_version": "1.6.4", - "serial": 25, + "serial": 29, "lineage": "ae8eda4c-51c3-13f0-219b-df8ea9af7818", "outputs": {}, "resources": [ @@ -29,18 +29,350 @@ "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", - "external_gateway_ip": "146.48.31.109", + "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", + "m1_large": "m1.large", + "m1_medium": "m1.medium", + "m1_xlarge": "m1.xlarge", + "m2_large": "m2.large", + "m2_medium": "m2.medium", + "m2_small": "m2.small" + }, + "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_subnet_network_id": "2aa977f2-80b4-447c-a6b0-dfa06bf68751" + "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": { + "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" + }, + "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.122.132/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": "HAPROXY L7", + "http_and_https_from_the_load_balancers": "http and https from the load balancers", + "limited_HTTPS_access": "Limited HTTPS access", + "limited_SSH_access": "Limited SSH access", + "mongo": "mongo", + "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" + }, + "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", - "external_gateway_ip": "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_subnet_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" + ], + "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" + ], + "ubuntu1804_data_file": "string", + "ubuntu2204_data_file": "string", + "ubuntu_1804": [ + "map", + "string" + ], + "ubuntu_2204": [ + "map", + "string" + ] } ] }, @@ -60,7 +392,9 @@ "schema_version": 0, "attributes": { "id": "2d792545-a513-4bde-a297-43afa74875df", - "members": [], + "members": [ + "52e2d652-c4d5-48a7-ba9b-bc64b3c16883" + ], "name": "accounting-aggregator-se-plugin", "policies": [ "soft-anti-affinity" @@ -88,7 +422,9 @@ "schema_version": 0, "attributes": { "id": "608bade3-e42b-46af-b969-25caf2e829c5", - "members": [], + "members": [ + "112aa21b-ca8c-4a8c-af5f-c48984483d05" + ], "name": "accounting-dashboard-harvester-se-plugin", "policies": [ "soft-anti-affinity" @@ -116,7 +452,9 @@ "schema_version": 0, "attributes": { "id": "c58d1633-fe27-4175-81b1-5f13baac97fc", - "members": [], + "members": [ + "7bb6f8cf-f4dc-4465-aeec-ec76d45980a0" + ], "name": "accounting-insert-storage-se-plugin", "policies": [ "soft-anti-affinity" @@ -144,7 +482,9 @@ "schema_version": 0, "attributes": { "id": "fe90ec2c-8789-4c35-8420-b8dbd415be77", - "members": [], + "members": [ + "bd45a9a2-3794-4d22-a52d-d5e77c8e84df" + ], "name": "resource-checker-se-plugin", "policies": [ "soft-anti-affinity" @@ -172,7 +512,9 @@ "schema_version": 0, "attributes": { "id": "04a8b534-5e8c-4e74-b22d-b575b84cd627", - "members": [], + "members": [ + "aaaea3c0-a75c-4248-8d03-660f0a484ab4" + ], "name": "social-data-indexer-se-plugin", "policies": [ "soft-anti-affinity" @@ -273,7 +615,7 @@ "region": "isti_area_pi_1", "scheduler_hints": [ { - "additional_properties": null, + "additional_properties": {}, "build_near_host_ip": "", "different_cell": [], "different_host": [], @@ -288,7 +630,7 @@ "http and https from the load balancers" ], "stop_before_destroy": false, - "tags": null, + "tags": [], "timeouts": null, "updated": "2023-12-07 08:33:25 +0000 UTC", "user_data": "ef3d6e5deb29bd1e5de5a76ae6860f3ee872738c", @@ -298,6 +640,7 @@ "sensitive_attributes": [], "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwMH19", "dependencies": [ + "data.terraform_remote_state.privnet_dns_router", "openstack_compute_servergroup_v2.accounting_aggregator_server_group", "openstack_compute_servergroup_v2.accounting_dashboard_harvester_server_group", "openstack_compute_servergroup_v2.accounting_insert_storage_server_group", @@ -391,7 +734,7 @@ "region": "isti_area_pi_1", "scheduler_hints": [ { - "additional_properties": null, + "additional_properties": {}, "build_near_host_ip": "", "different_cell": [], "different_host": [], @@ -406,7 +749,7 @@ "http and https from the load balancers" ], "stop_before_destroy": false, - "tags": null, + "tags": [], "timeouts": null, "updated": "2023-12-07 08:34:15 +0000 UTC", "user_data": "ef3d6e5deb29bd1e5de5a76ae6860f3ee872738c", @@ -416,6 +759,7 @@ "sensitive_attributes": [], "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwMH19", "dependencies": [ + "data.terraform_remote_state.privnet_dns_router", "openstack_compute_servergroup_v2.accounting_aggregator_server_group", "openstack_compute_servergroup_v2.accounting_dashboard_harvester_server_group", "openstack_compute_servergroup_v2.accounting_insert_storage_server_group", @@ -451,8 +795,8 @@ ], "config_drive": null, "created": "2023-12-07 08:31:47 +0000 UTC", - "flavor_id": "3", - "flavor_name": "c1.small", + "flavor_id": "4", + "flavor_name": "m1.medium", "floating_ip": null, "force_delete": false, "id": "7bb6f8cf-f4dc-4465-aeec-ec76d45980a0", @@ -489,7 +833,7 @@ "region": "isti_area_pi_1", "scheduler_hints": [ { - "additional_properties": null, + "additional_properties": {}, "build_near_host_ip": "", "different_cell": [], "different_host": [], @@ -504,16 +848,17 @@ "http and https from the load balancers" ], "stop_before_destroy": false, - "tags": null, + "tags": [], "timeouts": null, - "updated": "2023-12-07 08:33:38 +0000 UTC", - "user_data": "ef3d6e5deb29bd1e5de5a76ae6860f3ee872738c", + "updated": "2023-12-18 08:59:33 +0000 UTC", + "user_data": "", "vendor_options": [], "volume": [] }, "sensitive_attributes": [], "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwMH19", "dependencies": [ + "data.terraform_remote_state.privnet_dns_router", "openstack_compute_servergroup_v2.accounting_aggregator_server_group", "openstack_compute_servergroup_v2.accounting_dashboard_harvester_server_group", "openstack_compute_servergroup_v2.accounting_insert_storage_server_group", @@ -549,8 +894,8 @@ ], "config_drive": null, "created": "2023-12-07 08:31:47 +0000 UTC", - "flavor_id": "3", - "flavor_name": "c1.small", + "flavor_id": "4", + "flavor_name": "m1.medium", "floating_ip": null, "force_delete": false, "id": "bd45a9a2-3794-4d22-a52d-d5e77c8e84df", @@ -587,7 +932,7 @@ "region": "isti_area_pi_1", "scheduler_hints": [ { - "additional_properties": null, + "additional_properties": {}, "build_near_host_ip": "", "different_cell": [], "different_host": [], @@ -602,16 +947,17 @@ "http and https from the load balancers" ], "stop_before_destroy": false, - "tags": null, + "tags": [], "timeouts": null, - "updated": "2023-12-07 08:32:53 +0000 UTC", - "user_data": "ef3d6e5deb29bd1e5de5a76ae6860f3ee872738c", + "updated": "2023-12-18 08:59:44 +0000 UTC", + "user_data": "", "vendor_options": [], "volume": [] }, "sensitive_attributes": [], "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwMH19", "dependencies": [ + "data.terraform_remote_state.privnet_dns_router", "openstack_compute_servergroup_v2.accounting_aggregator_server_group", "openstack_compute_servergroup_v2.accounting_dashboard_harvester_server_group", "openstack_compute_servergroup_v2.accounting_insert_storage_server_group", @@ -647,8 +993,8 @@ ], "config_drive": null, "created": "2023-12-07 08:31:48 +0000 UTC", - "flavor_id": "3", - "flavor_name": "c1.small", + "flavor_id": "4", + "flavor_name": "m1.medium", "floating_ip": null, "force_delete": false, "id": "aaaea3c0-a75c-4248-8d03-660f0a484ab4", @@ -685,7 +1031,7 @@ "region": "isti_area_pi_1", "scheduler_hints": [ { - "additional_properties": null, + "additional_properties": {}, "build_near_host_ip": "", "different_cell": [], "different_host": [], @@ -700,16 +1046,17 @@ "http and https from the load balancers" ], "stop_before_destroy": false, - "tags": null, + "tags": [], "timeouts": null, - "updated": "2023-12-07 08:32:26 +0000 UTC", - "user_data": "ef3d6e5deb29bd1e5de5a76ae6860f3ee872738c", + "updated": "2023-12-18 08:59:43 +0000 UTC", + "user_data": "", "vendor_options": [], "volume": [] }, "sensitive_attributes": [], "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwMH19", "dependencies": [ + "data.terraform_remote_state.privnet_dns_router", "openstack_compute_servergroup_v2.accounting_aggregator_server_group", "openstack_compute_servergroup_v2.accounting_dashboard_harvester_server_group", "openstack_compute_servergroup_v2.accounting_insert_storage_server_group", diff --git a/openstack-tf/d4s-preprod/basic-infrastructure/15-security-groups.tf b/openstack-tf/d4s-preprod/basic-infrastructure/15-security-groups.tf deleted file mode 120000 index aad5041..0000000 --- a/openstack-tf/d4s-preprod/basic-infrastructure/15-security-groups.tf +++ /dev/null @@ -1 +0,0 @@ -../../common_setups/15-security-groups.tf \ No newline at end of file diff --git a/openstack-tf/d4s-preprod/basic-infrastructure/20-octavia.tf b/openstack-tf/d4s-preprod/basic-infrastructure/20-octavia.tf deleted file mode 120000 index a104722..0000000 --- a/openstack-tf/d4s-preprod/basic-infrastructure/20-octavia.tf +++ /dev/null @@ -1 +0,0 @@ -../../common_setups/20-octavia.tf \ No newline at end of file diff --git a/openstack-tf/d4s-preprod/basic-infrastructure/25-ssh-jump-proxy.tf b/openstack-tf/d4s-preprod/basic-infrastructure/25-ssh-jump-proxy.tf deleted file mode 120000 index 46b1d6c..0000000 --- a/openstack-tf/d4s-preprod/basic-infrastructure/25-ssh-jump-proxy.tf +++ /dev/null @@ -1 +0,0 @@ -../../common_setups/25-ssh-jump-proxy.tf \ No newline at end of file diff --git a/openstack-tf/d4s-preprod/basic-infrastructure/30-internal-ca.tf b/openstack-tf/d4s-preprod/basic-infrastructure/30-internal-ca.tf deleted file mode 120000 index ac62be5..0000000 --- a/openstack-tf/d4s-preprod/basic-infrastructure/30-internal-ca.tf +++ /dev/null @@ -1 +0,0 @@ -../../common_setups/30-internal-ca.tf \ No newline at end of file diff --git a/openstack-tf/d4s-preprod/basic-infrastructure/35-prometheus.tf b/openstack-tf/d4s-preprod/basic-infrastructure/35-prometheus.tf deleted file mode 120000 index 31f4592..0000000 --- a/openstack-tf/d4s-preprod/basic-infrastructure/35-prometheus.tf +++ /dev/null @@ -1 +0,0 @@ -../../common_setups/35-prometheus.tf \ No newline at end of file diff --git a/openstack-tf/d4s-preprod/basic-infrastructure/40-postgresql.tf b/openstack-tf/d4s-preprod/basic-infrastructure/40-postgresql.tf deleted file mode 120000 index 968cc5a..0000000 --- a/openstack-tf/d4s-preprod/basic-infrastructure/40-postgresql.tf +++ /dev/null @@ -1 +0,0 @@ -../../common_setups/40-postgresql.tf \ No newline at end of file diff --git a/openstack-tf/d4s-preprod/basic-infrastructure/45-haproxy.tf b/openstack-tf/d4s-preprod/basic-infrastructure/45-haproxy.tf deleted file mode 120000 index e3b6c11..0000000 --- a/openstack-tf/d4s-preprod/basic-infrastructure/45-haproxy.tf +++ /dev/null @@ -1 +0,0 @@ -../../common_setups/45-haproxy.tf \ No newline at end of file diff --git a/openstack-tf/d4s-preprod/basic-infrastructure/haproxy.tf b/openstack-tf/d4s-preprod/basic-infrastructure/haproxy.tf new file mode 120000 index 0000000..51d2cc3 --- /dev/null +++ b/openstack-tf/d4s-preprod/basic-infrastructure/haproxy.tf @@ -0,0 +1 @@ +../../modules/d4science_infra_setup/haproxy.tf \ No newline at end of file diff --git a/openstack-tf/d4s-preprod/basic-infrastructure/internal-ca.tf b/openstack-tf/d4s-preprod/basic-infrastructure/internal-ca.tf new file mode 120000 index 0000000..c613c82 --- /dev/null +++ b/openstack-tf/d4s-preprod/basic-infrastructure/internal-ca.tf @@ -0,0 +1 @@ +../../modules/d4science_infra_setup/internal-ca.tf \ No newline at end of file diff --git a/openstack-tf/d4s-preprod/basic-infrastructure/main.tf b/openstack-tf/d4s-preprod/basic-infrastructure/main.tf index 509fa0e..7c3516e 100644 --- a/openstack-tf/d4s-preprod/basic-infrastructure/main.tf +++ b/openstack-tf/d4s-preprod/basic-infrastructure/main.tf @@ -17,9 +17,9 @@ data "terraform_remote_state" "privnet_dns_router" { } } -# module "ssh_settings" { -# source = "../../modules/ssh-key-ref" -# } +module "ssh_settings" { + source = "../../modules/ssh-key-ref" +} # module "common_variables" { # source = "../../modules/common_variables" # } diff --git a/openstack-tf/d4s-preprod/basic-infrastructure/octavia.tf b/openstack-tf/d4s-preprod/basic-infrastructure/octavia.tf new file mode 120000 index 0000000..387afa6 --- /dev/null +++ b/openstack-tf/d4s-preprod/basic-infrastructure/octavia.tf @@ -0,0 +1 @@ +../../modules/d4science_infra_setup/octavia.tf \ No newline at end of file diff --git a/openstack-tf/d4s-preprod/basic-infrastructure/outputs-preprod.tf b/openstack-tf/d4s-preprod/basic-infrastructure/outputs-preprod.tf new file mode 120000 index 0000000..f4aca42 --- /dev/null +++ b/openstack-tf/d4s-preprod/basic-infrastructure/outputs-preprod.tf @@ -0,0 +1 @@ +../variables/outputs-preprod.tf \ No newline at end of file diff --git a/openstack-tf/d4s-preprod/basic-infrastructure/postgresql.tf b/openstack-tf/d4s-preprod/basic-infrastructure/postgresql.tf new file mode 120000 index 0000000..fb68d4e --- /dev/null +++ b/openstack-tf/d4s-preprod/basic-infrastructure/postgresql.tf @@ -0,0 +1 @@ +../../modules/d4science_infra_setup/postgresql.tf \ No newline at end of file diff --git a/openstack-tf/d4s-preprod/basic-infrastructure/prometheus.tf b/openstack-tf/d4s-preprod/basic-infrastructure/prometheus.tf new file mode 120000 index 0000000..d565196 --- /dev/null +++ b/openstack-tf/d4s-preprod/basic-infrastructure/prometheus.tf @@ -0,0 +1 @@ +../../modules/d4science_infra_setup/prometheus.tf \ No newline at end of file diff --git a/openstack-tf/d4s-preprod/basic-infrastructure/security-groups.tf b/openstack-tf/d4s-preprod/basic-infrastructure/security-groups.tf new file mode 120000 index 0000000..7da1514 --- /dev/null +++ b/openstack-tf/d4s-preprod/basic-infrastructure/security-groups.tf @@ -0,0 +1 @@ +../../modules/d4science_infra_setup/security-groups.tf \ No newline at end of file diff --git a/openstack-tf/d4s-preprod/basic-infrastructure/ssh-jump-proxy.tf b/openstack-tf/d4s-preprod/basic-infrastructure/ssh-jump-proxy.tf new file mode 120000 index 0000000..a940c35 --- /dev/null +++ b/openstack-tf/d4s-preprod/basic-infrastructure/ssh-jump-proxy.tf @@ -0,0 +1 @@ +../../modules/d4science_infra_setup/ssh-jump-proxy.tf \ No newline at end of file diff --git a/openstack-tf/d4s-preprod/basic-infrastructure/terraform.tfstate b/openstack-tf/d4s-preprod/basic-infrastructure/terraform.tfstate index 9cc638a..9ccb6c1 100644 --- a/openstack-tf/d4s-preprod/basic-infrastructure/terraform.tfstate +++ b/openstack-tf/d4s-preprod/basic-infrastructure/terraform.tfstate @@ -1,7 +1,7 @@ { "version": 4, - "terraform_version": "1.6.4", - "serial": 250, + "terraform_version": "1.6.6", + "serial": 260, "lineage": "6a53b692-c1a8-ed53-bc6c-b7fb5e017eb8", "outputs": { "almalinux_9": { @@ -32,26 +32,6 @@ "string" ] }, - "basic_services_ip": { - "value": { - "ca": "10.1.32.4", - "ca_cidr": "10.1.32.4/32", - "haproxy_l7_1": "10.1.32.11", - "haproxy_l7_1_cidr": "10.1.32.11/32", - "haproxy_l7_2": "10.1.32.12", - "haproxy_l7_2_cidr": "10.1.32.12/32", - "octavia_main": "10.1.32.20", - "octavia_main_cidr": "10.1.32.20/32", - "prometheus": "10.1.32.10", - "prometheus_cidr": "10.1.32.10/32", - "ssh_jump": "10.1.32.5", - "ssh_jump_cidr": "10.1.32.5/32" - }, - "type": [ - "map", - "string" - ] - }, "centos_7": { "value": { "name": "CentOS-7", @@ -62,27 +42,6 @@ "string" ] }, - "default_security_group_name": { - "value": "default_for_all", - "type": "string" - }, - "dns_zone": { - "value": { - "description": "DNS primary zone for the d4s-pre-cloud project", - "email": "postmaster@isti.cnr.it", - "id": "c1a4b4bc-f167-4387-855d-38f0f99ca05c", - "ttl": "8600", - "zone_name": "cloud-pre.d4science.org." - }, - "type": [ - "map", - "string" - ] - }, - "dns_zone_id": { - "value": "c1a4b4bc-f167-4387-855d-38f0f99ca05c", - "type": "string" - }, "el7_data_file": { "value": "../../openstack_vm_data_scripts/el7.sh", "type": "string" @@ -101,11 +60,20 @@ "value": "1d2ff137-6ff7-4017-be2b-0d6c4af2353b", "type": "string" }, - "external_router": { + "flavor_list": { "value": { - "description": "D4Science Preprod main router", - "id": "cc26064a-bb08-4c0b-929f-d0cb39f934a3", - "name": "d4s-pre-cloud-external-router" + "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" }, "type": [ "map", @@ -158,41 +126,6 @@ "value": "10.1.32.20", "type": "string" }, - "main_private_network": { - "value": { - "description": "D4Science Preprod private network (use this as the main network)", - "name": "d4s-pre-cloud-main" - }, - "type": [ - "object", - { - "description": "string", - "name": "string" - } - ] - }, - "main_private_network_id": { - "value": "23fd8a99-d551-4ada-8d3a-9859542ebb8c", - "type": "string" - }, - "main_private_subnet": { - "value": { - "allocation_end": "10.1.35.254", - "allocation_start": "10.1.32.100", - "cidr": "10.1.32.0/22", - "description": "D4Science Preprod main private subnet", - "gateway_ip": "10.1.32.1", - "name": "d4s-pre-cloud-main-subnet" - }, - "type": [ - "map", - "string" - ] - }, - "main_private_subnet_id": { - "value": "cd77a2fd-4a36-4254-b1d0-70b3874c6d04", - "type": "string" - }, "main_region": { "value": "isti_area_pi_1", "type": "string" @@ -201,6 +134,19 @@ "value": 8942, "type": "number" }, + "networks_list": { + "value": { + "orientdb": "orientdb-net", + "orientdb_se": "orientdb-se-net", + "shared_postgresql": "postgresql-srv-net", + "swarm": "swarm-nfs-net", + "timescaledb": "timescaledb-net" + }, + "type": [ + "map", + "string" + ] + }, "networks_with_d4s_services": { "value": { "garr_ct1_net": "90.147.166.0/23", @@ -215,25 +161,21 @@ "string" ] }, - "octavia_information": { + "os_project_data": { "value": { - "main_lb_description": "Main L4 load balancer for the D4Science PRE production", - "main_lb_hostname": "main-lb", - "main_lb_name": "d4s-pre-cloud-l4-load-balancer", - "octavia_flavor": "octavia_amphora-mvcpu-ha", - "octavia_flavor_id": "394988b5-6603-4a1e-a939-8e177c6681c7", - "octavia_vrrp_ip_1": "10.1.33.159/32", - "octavia_vrrp_ip_2": "10.1.32.199/32", - "swarm_lb_name": "d4s-pre-cloud-l4-swarm-load-balancer" + "id": "6fdc02e2827b405dad99f34698659742" }, "type": [ "map", "string" ] }, - "os_project_data": { + "policy_list": { "value": { - "id": "6fdc02e2827b405dad99f34698659742" + "affinity": "affinity", + "anti_affinity": "anti-affinity", + "soft_affinity": "soft-affinity", + "soft_anti_affinity": "soft-anti-affinity" }, "type": [ "map", @@ -272,6 +214,32 @@ "string" ] }, + "security_group_list": { + "value": { + "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", + "orientdb_internal_docker_traffic": "orientdb_internal_docker_traffic", + "postgreSQL": "PostgreSQL service", + "public_HTTPS": "Public HTTPS" + }, + "type": [ + "map", + "string" + ] + }, "shared_postgresql_server_data": { "value": { "allocation_pool_end": "192.168.3.254", @@ -334,6 +302,7 @@ "ubuntu_1804": { "value": { "name": "Ubuntu-Bionic-18.04", + "user_data_file": "../../openstack_vm_data_scripts/ubuntu1804.sh", "uuid": "7ed6a2cd-2b07-482e-8ce4-f018dff16c89" }, "type": [ @@ -344,6 +313,7 @@ "ubuntu_2204": { "value": { "name": "Ubuntu-Jammy-22.04", + "user_data_file": "../../openstack_vm_data_scripts/ubuntu2204.sh", "uuid": "54768889-8556-4be4-a2eb-82a4d9b34627" }, "type": [ @@ -2582,22 +2552,22 @@ { "mode": "managed", "type": "openstack_networking_secgroup_rule_v2", - "name": "lb3_1_haproxy_l7_443", + "name": "octavia_to_haproxy_l7_443", "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", "instances": [ { "schema_version": 0, "attributes": { - "description": "Traffic from the first main lb instance to HAPROXY l7 1 port 443", + "description": "Traffic from the octavia lb instance to HAPROXY l7 port 443", "direction": "ingress", "ethertype": "IPv4", - "id": "99708119-4cee-4620-b12f-b30995d9e783", + "id": "3436a7b9-9e18-4e19-af86-df62337a6f52", "port_range_max": 443, "port_range_min": 443, "protocol": "tcp", "region": "isti_area_pi_1", "remote_group_id": "", - "remote_ip_prefix": "10.1.33.159/32", + "remote_ip_prefix": "10.1.32.0/22", "security_group_id": "194c32a1-5842-4be7-8c90-c03ebe4e25f0", "tenant_id": "6fdc02e2827b405dad99f34698659742", "timeouts": null @@ -2613,22 +2583,22 @@ { "mode": "managed", "type": "openstack_networking_secgroup_rule_v2", - "name": "lb3_1_haproxy_l7_80", + "name": "octavia_to_haproxy_l7_80", "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", "instances": [ { "schema_version": 0, "attributes": { - "description": "Traffic from the first main lb instance to HAPROXY l7 1 port 80", + "description": "Traffic from the octavia lb instance to HAPROXY l7 port 80", "direction": "ingress", "ethertype": "IPv4", - "id": "99d35bec-5bb6-46cc-b22f-23adc2b30881", + "id": "d869e0c0-8ea5-498f-b38f-47c74cbe60a6", "port_range_max": 80, "port_range_min": 80, "protocol": "tcp", "region": "isti_area_pi_1", "remote_group_id": "", - "remote_ip_prefix": "10.1.33.159/32", + "remote_ip_prefix": "10.1.32.0/22", "security_group_id": "194c32a1-5842-4be7-8c90-c03ebe4e25f0", "tenant_id": "6fdc02e2827b405dad99f34698659742", "timeouts": null @@ -2644,115 +2614,22 @@ { "mode": "managed", "type": "openstack_networking_secgroup_rule_v2", - "name": "lb3_1_haproxy_l7_8080", + "name": "octavia_to_haproxy_l7_8880", "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", "instances": [ { "schema_version": 0, "attributes": { - "description": "Traffic from the first main lb instance to HAPROXY l7 1 port 8080", + "description": "Traffic from the octavia lb instance to HAPROXY l7 port 8880", "direction": "ingress", "ethertype": "IPv4", - "id": "01f95b00-e717-4cc0-9a5b-7b33ea6bfdbd", - "port_range_max": 8080, - "port_range_min": 8080, + "id": "3de492e5-804a-4cd0-8a86-79981600afab", + "port_range_max": 8880, + "port_range_min": 8880, "protocol": "tcp", "region": "isti_area_pi_1", "remote_group_id": "", - "remote_ip_prefix": "10.1.33.159/32", - "security_group_id": "194c32a1-5842-4be7-8c90-c03ebe4e25f0", - "tenant_id": "6fdc02e2827b405dad99f34698659742", - "timeouts": null - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiZGVsZXRlIjo2MDAwMDAwMDAwMDB9fQ==", - "dependencies": [ - "openstack_networking_secgroup_v2.main_lb_to_haproxy_l7" - ] - } - ] - }, - { - "mode": "managed", - "type": "openstack_networking_secgroup_rule_v2", - "name": "lb3_2_haproxy_l7_443", - "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "description": "Traffic from the first main lb instance to HAPROXY l7 2 port 443", - "direction": "ingress", - "ethertype": "IPv4", - "id": "a6fd91df-518a-4310-b2b8-122e6c4b214d", - "port_range_max": 443, - "port_range_min": 443, - "protocol": "tcp", - "region": "isti_area_pi_1", - "remote_group_id": "", - "remote_ip_prefix": "10.1.32.199/32", - "security_group_id": "194c32a1-5842-4be7-8c90-c03ebe4e25f0", - "tenant_id": "6fdc02e2827b405dad99f34698659742", - "timeouts": null - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiZGVsZXRlIjo2MDAwMDAwMDAwMDB9fQ==", - "dependencies": [ - "openstack_networking_secgroup_v2.main_lb_to_haproxy_l7" - ] - } - ] - }, - { - "mode": "managed", - "type": "openstack_networking_secgroup_rule_v2", - "name": "lb3_2_haproxy_l7_80", - "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "description": "Traffic from the first main lb instance to HAPROXY l7 2 port 80", - "direction": "ingress", - "ethertype": "IPv4", - "id": "51a2fbbe-c50f-4038-bc33-f363713a7ca6", - "port_range_max": 80, - "port_range_min": 80, - "protocol": "tcp", - "region": "isti_area_pi_1", - "remote_group_id": "", - "remote_ip_prefix": "10.1.32.199/32", - "security_group_id": "194c32a1-5842-4be7-8c90-c03ebe4e25f0", - "tenant_id": "6fdc02e2827b405dad99f34698659742", - "timeouts": null - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiZGVsZXRlIjo2MDAwMDAwMDAwMDB9fQ==", - "dependencies": [ - "openstack_networking_secgroup_v2.main_lb_to_haproxy_l7" - ] - } - ] - }, - { - "mode": "managed", - "type": "openstack_networking_secgroup_rule_v2", - "name": "lb3_2_haproxy_l7_8080", - "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "description": "Traffic from the first main lb instance to HAPROXY l7 2 port 8080", - "direction": "ingress", - "ethertype": "IPv4", - "id": "8ceeb127-36b1-41cc-b993-1e61a5568d06", - "port_range_max": 8080, - "port_range_min": 8080, - "protocol": "tcp", - "region": "isti_area_pi_1", - "remote_group_id": "", - "remote_ip_prefix": "10.1.32.199/32", + "remote_ip_prefix": "10.1.32.0/22", "security_group_id": "194c32a1-5842-4be7-8c90-c03ebe4e25f0", "tenant_id": "6fdc02e2827b405dad99f34698659742", "timeouts": null diff --git a/openstack-tf/d4s-preprod/basic-infrastructure/variables-preprod.tf b/openstack-tf/d4s-preprod/basic-infrastructure/variables-preprod.tf new file mode 120000 index 0000000..b6af771 --- /dev/null +++ b/openstack-tf/d4s-preprod/basic-infrastructure/variables-preprod.tf @@ -0,0 +1 @@ +../variables/variables-preprod.tf \ No newline at end of file diff --git a/openstack-tf/d4s-preprod/liferay/main.tf b/openstack-tf/d4s-preprod/liferay/main.tf index 683012d..a1e8f0f 100644 --- a/openstack-tf/d4s-preprod/liferay/main.tf +++ b/openstack-tf/d4s-preprod/liferay/main.tf @@ -19,62 +19,6 @@ data "terraform_remote_state" "privnet_dns_router" { module "liferay" { source = "../../modules/liferay" - default_security_group_name = "default_for_all" - - # Provided in the output of the project setup - main_private_network_id = "23fd8a99-d551-4ada-8d3a-9859542ebb8c" - main_private_subnet_id = "cd77a2fd-4a36-4254-b1d0-70b3874c6d04" - dns_zone_id = "c1a4b4bc-f167-4387-855d-38f0f99ca05c" - - os_project_data = { - id = "6fdc02e2827b405dad99f34698659742" - } - - dns_zone = { - zone_name = "cloud-pre.d4science.org." - email = "postmaster@isti.cnr.it" - description = "DNS primary zone for the d4s-pre-cloud project" - ttl = 8600 - id = "c1a4b4bc-f167-4387-855d-38f0f99ca05c" - } - - main_private_network = { - name = "d4s-pre-cloud-main" - description = "D4Science Preprod private network (use this as the main network)" - } - - main_private_subnet = { - name = "d4s-pre-cloud-main-subnet" - description = "D4Science Preprod main private subnet" - cidr = "10.1.32.0/22" - gateway_ip = "10.1.32.1" - allocation_start = "10.1.32.100" - allocation_end = "10.1.35.254" - } - - external_router = { - name = "d4s-pre-cloud-external-router" - description = "D4Science Preprod main router" - id = "cc26064a-bb08-4c0b-929f-d0cb39f934a3" - } - - basic_services_ip = { - ca = "10.1.32.4" - ca_cidr = "10.1.32.4/32" - ssh_jump = "10.1.32.5" - ssh_jump_cidr = "10.1.32.5/32" - prometheus = "10.1.32.10" - prometheus_cidr = "10.1.32.10/32" - haproxy_l7_1 = "10.1.32.11" - haproxy_l7_1_cidr = "10.1.32.11/32" - haproxy_l7_2 = "10.1.32.12" - haproxy_l7_2_cidr = "10.1.32.12/32" - octavia_main = "10.1.32.20" - octavia_main_cidr = "10.1.32.20/32" - } - - main_haproxy_l7_ip = ["10.1.32.11", "10.1.32.12"] - liferay_data = { affinity_policy = "soft-anti-affinity" srv_name = "lr62" @@ -84,5 +28,11 @@ module "liferay" { } 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]), + description = "Liferay Pre (next)" + } + } +} diff --git a/openstack-tf/d4s-preprod/liferay/terraform.tfstate b/openstack-tf/d4s-preprod/liferay/terraform.tfstate index 2991533..c375217 100644 --- a/openstack-tf/d4s-preprod/liferay/terraform.tfstate +++ b/openstack-tf/d4s-preprod/liferay/terraform.tfstate @@ -1,7 +1,7 @@ { "version": 4, - "terraform_version": "1.6.4", - "serial": 16, + "terraform_version": "1.6.6", + "serial": 19, "lineage": "2cef4407-f7f5-0a46-74de-03956dd178ed", "outputs": {}, "resources": [ @@ -29,31 +29,196 @@ "defaults": null, "outputs": { "value": { - "almalinux9_img": { + "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", - "centos7_img": { + "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.32.4", + "ca_cidr": "10.1.32.4/32", + "haproxy_l7_1": "10.1.32.11", + "haproxy_l7_1_cidr": "10.1.32.11/32", + "haproxy_l7_2": "10.1.32.12", + "haproxy_l7_2_cidr": "10.1.32.12/32", + "octavia_main": "10.1.32.20", + "octavia_main_cidr": "10.1.32.20/32", + "prometheus": "10.1.32.10", + "prometheus_cidr": "10.1.32.10/32", + "ssh_jump": "10.1.32.5", + "ssh_jump_cidr": "10.1.32.5/32" + }, + "centos_7": { "name": "CentOS-7", "uuid": "f0187a99-64f6-462a-ab5f-ef52fe62f2ca" }, + "default_security_group_name": "default_for_all", + "dns_zone": { + "description": "DNS primary zone for the d4s-pre-cloud project", + "email": "postmaster@isti.cnr.it", + "id": "c1a4b4bc-f167-4387-855d-38f0f99ca05c", + "ttl": "8600", + "zone_name": "cloud-pre.d4science.org." + }, "dns_zone_id": "c1a4b4bc-f167-4387-855d-38f0f99ca05c", - "el7_datafile": "../../openstack_vm_data_scripts/el7.sh", - "external_gateway_ip": "146.48.30.241", + "el7_data_file": "../../openstack_vm_data_scripts/el7.sh", + "external_gateway_ip": [ + { + "ip_address": "146.48.30.241", + "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_network_name": "external-network", + "external_router": { + "description": "D4Science Preprod main router", + "id": "cc26064a-bb08-4c0b-929f-d0cb39f934a3", + "name": "d4s-pre-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.32.11", + "10.1.32.12" + ], + "main_private_network": { + "description": "D4Science Preprod private network (use this as the main network)", + "name": "d4s-pre-cloud-main" + }, "main_private_network_id": "23fd8a99-d551-4ada-8d3a-9859542ebb8c", - "main_region_name": "isti_area_pi_1", + "main_private_subnet": { + "allocation_end": "10.1.35.254", + "allocation_start": "10.1.32.100", + "cidr": "10.1.32.0/22", + "description": "D4Science Preprod main private subnet", + "gateway_ip": "10.1.32.1", + "name": "d4s-pre-cloud-main-subnet" + }, + "main_region": "isti_area_pi_1", "main_subnet_network_id": "cd77a2fd-4a36-4254-b1d0-70b3874c6d04", - "mtu_size_value": 8942, + "mtu_size": 8942, + "networks_list": { + "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" + }, + "octavia_information": { + "main_lb_description": "Main L4 load balancer for the D4Science PRE production", + "main_lb_hostname": "main-lb", + "main_lb_name": "d4s-pre-cloud-l4-load-balancer", + "octavia_flavor": "octavia_amphora-mvcpu-ha", + "octavia_flavor_id": "394988b5-6603-4a1e-a939-8e177c6681c7", + "octavia_vrrp_ip_1": "10.1.33.159/32", + "octavia_vrrp_ip_2": "10.1.32.199/32", + "swarm_lb_name": "d4s-pre-cloud-l4-swarm-load-balancer" + }, + "os_project_data": { + "id": "6fdc02e2827b405dad99f34698659742" + }, + "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.122.132/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" ], - "ssh_sources_list": { + "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", + "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", @@ -61,54 +226,542 @@ "s2i2s_vpn_2_cidr": "146.48.28.11/32", "shell_d4s_cidr": "146.48.122.95/32" }, - "ubuntu1804_datafile": "../../openstack_vm_data_scripts/ubuntu1804.sh", - "ubuntu1804_img": { + "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" }, - "ubuntu2204_datafile": "../../openstack_vm_data_scripts/ubuntu2204.sh", - "ubuntu2204_img": { + "ubuntu_2204": { "name": "Ubuntu-Jammy-22.04", + "user_data_file": "../../openstack_vm_data_scripts/ubuntu2204.sh", "uuid": "54768889-8556-4be4-a2eb-82a4d9b34627" } }, "type": [ "object", { - "almalinux9_img": [ + "almalinux_9": [ "map", "string" ], "availability_zone_no_gpu_name": "string", "availability_zone_with_gpu_name": "string", - "centos7_img": [ + "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_datafile": "string", - "external_gateway_ip": "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_network_name": "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_region_name": "string", + "main_private_subnet": [ + "map", + "string" + ], + "main_region": "string", "main_subnet_network_id": "string", - "mtu_size_value": "number", + "mtu_size": "number", + "networks_list": [ + "map", + "string" + ], + "networks_with_d4s_services": [ + "map", + "string" + ], + "octavia_information": [ + "map", + "string" + ], + "os_project_data": [ + "map", + "string" + ], + "policy_list": [ + "map", + "string" + ], + "prometheus_server_data": [ + "map", + "string" + ], "resolvers_ip": [ "list", "string" ], - "ssh_sources_list": [ + "resource_registry_addresses": [ "map", "string" ], - "ubuntu1804_datafile": "string", - "ubuntu1804_img": [ + "security_group_list": [ "map", "string" ], - "ubuntu2204_datafile": "string", - "ubuntu2204_img": [ + "shared_postgresql_server_data": [ + "map", + "string" + ], + "smartexecutor_addresses": [ + "map", + "string" + ], + "ssh_jump_proxy": [ + "map", + "string" + ], + "ssh_sources": [ + "map", + "string" + ], + "ubuntu1804_data_file": "string", + "ubuntu2204_data_file": "string", + "ubuntu_1804": [ + "map", + "string" + ], + "ubuntu_2204": [ + "map", + "string" + ] + } + ] + }, + "workspace": null + }, + "sensitive_attributes": [] + } + ] + }, + { + "module": "module.liferay", + "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.32.4", + "ca_cidr": "10.1.32.4/32", + "haproxy_l7_1": "10.1.32.11", + "haproxy_l7_1_cidr": "10.1.32.11/32", + "haproxy_l7_2": "10.1.32.12", + "haproxy_l7_2_cidr": "10.1.32.12/32", + "octavia_main": "10.1.32.20", + "octavia_main_cidr": "10.1.32.20/32", + "prometheus": "10.1.32.10", + "prometheus_cidr": "10.1.32.10/32", + "ssh_jump": "10.1.32.5", + "ssh_jump_cidr": "10.1.32.5/32" + }, + "centos_7": { + "name": "CentOS-7", + "uuid": "f0187a99-64f6-462a-ab5f-ef52fe62f2ca" + }, + "default_security_group_name": "default_for_all", + "dns_zone": { + "description": "DNS primary zone for the d4s-pre-cloud project", + "email": "postmaster@isti.cnr.it", + "id": "c1a4b4bc-f167-4387-855d-38f0f99ca05c", + "ttl": "8600", + "zone_name": "cloud-pre.d4science.org." + }, + "dns_zone_id": "c1a4b4bc-f167-4387-855d-38f0f99ca05c", + "el7_data_file": "../../openstack_vm_data_scripts/el7.sh", + "external_gateway_ip": [ + { + "ip_address": "146.48.30.241", + "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 Preprod main router", + "id": "cc26064a-bb08-4c0b-929f-d0cb39f934a3", + "name": "d4s-pre-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.32.11", + "10.1.32.12" + ], + "main_private_network": { + "description": "D4Science Preprod private network (use this as the main network)", + "name": "d4s-pre-cloud-main" + }, + "main_private_network_id": "23fd8a99-d551-4ada-8d3a-9859542ebb8c", + "main_private_subnet": { + "allocation_end": "10.1.35.254", + "allocation_start": "10.1.32.100", + "cidr": "10.1.32.0/22", + "description": "D4Science Preprod main private subnet", + "gateway_ip": "10.1.32.1", + "name": "d4s-pre-cloud-main-subnet" + }, + "main_region": "isti_area_pi_1", + "main_subnet_network_id": "cd77a2fd-4a36-4254-b1d0-70b3874c6d04", + "mtu_size": 8942, + "networks_list": { + "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" + }, + "octavia_information": { + "main_lb_description": "Main L4 load balancer for the D4Science PRE production", + "main_lb_hostname": "main-lb", + "main_lb_name": "d4s-pre-cloud-l4-load-balancer", + "octavia_flavor": "octavia_amphora-mvcpu-ha", + "octavia_flavor_id": "394988b5-6603-4a1e-a939-8e177c6681c7", + "octavia_vrrp_ip_1": "10.1.33.159/32", + "octavia_vrrp_ip_2": "10.1.32.199/32", + "swarm_lb_name": "d4s-pre-cloud-l4-swarm-load-balancer" + }, + "os_project_data": { + "id": "6fdc02e2827b405dad99f34698659742" + }, + "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.122.132/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", + "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" + }, + "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" + ], + "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" + ], + "ubuntu1804_data_file": "string", + "ubuntu2204_data_file": "string", + "ubuntu_1804": [ + "map", + "string" + ], + "ubuntu_2204": [ "map", "string" ] @@ -221,6 +874,7 @@ "sensitive_attributes": [], "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwMH19", "dependencies": [ + "module.liferay.data.terraform_remote_state.privnet_dns_router", "module.liferay.openstack_compute_servergroup_v2.liferay", "module.liferay.openstack_networking_secgroup_v2.liferay_cluster_traffic" ] @@ -318,6 +972,7 @@ "sensitive_attributes": [], "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwMH19", "dependencies": [ + "module.liferay.data.terraform_remote_state.privnet_dns_router", "module.liferay.openstack_compute_servergroup_v2.liferay", "module.liferay.openstack_networking_secgroup_v2.liferay_cluster_traffic" ] @@ -356,6 +1011,41 @@ } ] }, + { + "module": "module.liferay", + "mode": "managed", + "type": "openstack_dns_recordset_v2", + "name": "cdn_dns_recordset", + "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", + "instances": [ + { + "index_key": "liferay_main_record", + "schema_version": 0, + "attributes": { + "description": "Liferay Pre (next)", + "disable_status_check": false, + "id": "c1a4b4bc-f167-4387-855d-38f0f99ca05c/c5d71a13-2582-4527-a261-1cfe0b81a7d7", + "name": "next.cloud-pre.d4science.org.", + "project_id": "6fdc02e2827b405dad99f34698659742", + "records": [ + "main-lb.cloud-pre.d4science.org." + ], + "region": "isti_area_pi_1", + "timeouts": null, + "ttl": 8600, + "type": "CNAME", + "value_specs": null, + "zone_id": "c1a4b4bc-f167-4387-855d-38f0f99ca05c" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwLCJ1cGRhdGUiOjYwMDAwMDAwMDAwMH19", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router", + "module.liferay.data.terraform_remote_state.privnet_dns_router" + ] + } + ] + }, { "module": "module.liferay", "mode": "managed", @@ -437,6 +1127,35 @@ "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiZGVsZXRlIjo2MDAwMDAwMDAwMDB9fQ==" } ] + }, + { + "module": "module.liferay", + "mode": "managed", + "type": "openstack_objectstorage_container_v1", + "name": "liferay", + "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", + "instances": [ + { + "schema_version": 1, + "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", + "region": "isti_area_pi_1", + "storage_policy": "default-placement", + "versioning": false, + "versioning_legacy": [] + }, + "sensitive_attributes": [], + "private": "eyJzY2hlbWFfdmVyc2lvbiI6IjEifQ==" + } + ] } ], "check_results": null diff --git a/openstack-tf/d4s-preprod/project-setup/main.tf b/openstack-tf/d4s-preprod/project-setup/main.tf index 8866e04..0a1725b 100644 --- a/openstack-tf/d4s-preprod/project-setup/main.tf +++ b/openstack-tf/d4s-preprod/project-setup/main.tf @@ -9,10 +9,7 @@ required_version = ">= 0.14.0" } } -# module "variables" { -# source = "../variables" -# } +module "common_variables" { + source = "../../modules/common_variables" +} -# module "main_private_net_and_dns_zone" { -# source = "../../modules/main_private_net_and_dns_zone" -# } diff --git a/openstack-tf/d4s-preprod/project-setup/outputs-preprod.tf b/openstack-tf/d4s-preprod/project-setup/outputs-preprod.tf new file mode 120000 index 0000000..f4aca42 --- /dev/null +++ b/openstack-tf/d4s-preprod/project-setup/outputs-preprod.tf @@ -0,0 +1 @@ +../variables/outputs-preprod.tf \ No newline at end of file diff --git a/openstack-tf/d4s-preprod/project-setup/outputs_main_network.tf b/openstack-tf/d4s-preprod/project-setup/outputs_main_network.tf new file mode 120000 index 0000000..7dcd703 --- /dev/null +++ b/openstack-tf/d4s-preprod/project-setup/outputs_main_network.tf @@ -0,0 +1 @@ +../../modules/main_private_net_and_dns_zone/outputs.tf \ No newline at end of file diff --git a/openstack-tf/d4s-preprod/project-setup/terraform.tfstate b/openstack-tf/d4s-preprod/project-setup/terraform.tfstate index 5225ec5..e924f53 100644 --- a/openstack-tf/d4s-preprod/project-setup/terraform.tfstate +++ b/openstack-tf/d4s-preprod/project-setup/terraform.tfstate @@ -1,10 +1,10 @@ { "version": 4, - "terraform_version": "1.6.4", - "serial": 32, + "terraform_version": "1.6.6", + "serial": 34, "lineage": "6d43430c-e6aa-d370-b6d5-22f2281117df", "outputs": { - "almalinux9_img": { + "almalinux_9": { "value": { "name": "AlmaLinux-9.0-20220718", "uuid": "541650fc-dd19-4f38-bb1d-7333ed9dd688" @@ -22,7 +22,37 @@ "value": "cnr-isti-nova-gpu-a", "type": "string" }, - "centos7_img": { + "availability_zones_names": { + "value": { + "availability_zone_no_gpu": "cnr-isti-nova-a", + "availability_zone_with_gpu": "cnr-isti-nova-gpu-a" + }, + "type": [ + "map", + "string" + ] + }, + "basic_services_ip": { + "value": { + "ca": "10.1.32.4", + "ca_cidr": "10.1.32.4/32", + "haproxy_l7_1": "10.1.32.11", + "haproxy_l7_1_cidr": "10.1.32.11/32", + "haproxy_l7_2": "10.1.32.12", + "haproxy_l7_2_cidr": "10.1.32.12/32", + "octavia_main": "10.1.32.20", + "octavia_main_cidr": "10.1.32.20/32", + "prometheus": "10.1.32.10", + "prometheus_cidr": "10.1.32.10/32", + "ssh_jump": "10.1.32.5", + "ssh_jump_cidr": "10.1.32.5/32" + }, + "type": [ + "map", + "string" + ] + }, + "centos_7": { "value": { "name": "CentOS-7", "uuid": "f0187a99-64f6-462a-ab5f-ef52fe62f2ca" @@ -32,31 +62,165 @@ "string" ] }, + "default_security_group_name": { + "value": "default_for_all", + "type": "string" + }, + "dns_zone": { + "value": { + "description": "DNS primary zone for the d4s-pre-cloud project", + "email": "postmaster@isti.cnr.it", + "id": "c1a4b4bc-f167-4387-855d-38f0f99ca05c", + "ttl": "8600", + "zone_name": "cloud-pre.d4science.org." + }, + "type": [ + "map", + "string" + ] + }, "dns_zone_id": { "value": "c1a4b4bc-f167-4387-855d-38f0f99ca05c", "type": "string" }, - "el7_datafile": { + "el7_data_file": { "value": "../../openstack_vm_data_scripts/el7.sh", "type": "string" }, "external_gateway_ip": { - "value": "146.48.30.241", - "type": "string" + "value": [ + { + "ip_address": "146.48.30.241", + "subnet_id": "57f87509-4016-46fb-b8c3-25fca7f72ccb" + } + ], + "type": [ + "list", + [ + "object", + { + "ip_address": "string", + "subnet_id": "string" + } + ] + ] + }, + "external_network": { + "value": { + "id": "1d2ff137-6ff7-4017-be2b-0d6c4af2353b", + "name": "external-network" + }, + "type": [ + "map", + "string" + ] }, "external_network_id": { "value": "1d2ff137-6ff7-4017-be2b-0d6c4af2353b", "type": "string" }, - "external_network_name": { - "value": "external-network", - "type": "string" + "external_router": { + "value": { + "description": "D4Science Preprod main router", + "id": "cc26064a-bb08-4c0b-929f-d0cb39f934a3", + "name": "d4s-pre-cloud-external-router" + }, + "type": [ + "map", + "string" + ] + }, + "flavor_list": { + "value": { + "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" + }, + "type": [ + "map", + "string" + ] + }, + "floating_ip_pools": { + "value": { + "main_public_ip_pool": "external-network" + }, + "type": [ + "map", + "string" + ] + }, + "haproxy_l7_data": { + "value": { + "flavor": "m1.medium", + "haproxy_1": "haproxy-l7-1", + "haproxy_2": "haproxy-l7-2", + "name": "main-haproxy-l7", + "vm_count": "2" + }, + "type": [ + "map", + "string" + ] + }, + "internal_ca_data": { + "value": { + "flavor": "m1.small", + "name": "ca" + }, + "type": [ + "map", + "string" + ] + }, + "main_haproxy_l7_ip": { + "value": [ + "10.1.32.11", + "10.1.32.12" + ], + "type": [ + "list", + "string" + ] + }, + "main_private_network": { + "value": { + "description": "D4Science Preprod private network (use this as the main network)", + "name": "d4s-pre-cloud-main" + }, + "type": [ + "map", + "string" + ] }, "main_private_network_id": { "value": "23fd8a99-d551-4ada-8d3a-9859542ebb8c", "type": "string" }, - "main_region_name": { + "main_private_subnet": { + "value": { + "allocation_end": "10.1.35.254", + "allocation_start": "10.1.32.100", + "cidr": "10.1.32.0/22", + "description": "D4Science Preprod main private subnet", + "gateway_ip": "10.1.32.1", + "name": "d4s-pre-cloud-main-subnet" + }, + "type": [ + "map", + "string" + ] + }, + "main_region": { "value": "isti_area_pi_1", "type": "string" }, @@ -64,10 +228,88 @@ "value": "cd77a2fd-4a36-4254-b1d0-70b3874c6d04", "type": "string" }, - "mtu_size_value": { + "mtu_size": { "value": 8942, "type": "number" }, + "networks_list": { + "value": { + "orientdb": "orientdb-net", + "orientdb_se": "orientdb-se-net", + "shared_postgresql": "postgresql-srv-net", + "swarm": "swarm-nfs-net", + "timescaledb": "timescaledb-net" + }, + "type": [ + "map", + "string" + ] + }, + "networks_with_d4s_services": { + "value": { + "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" + }, + "type": [ + "map", + "string" + ] + }, + "octavia_information": { + "value": { + "main_lb_description": "Main L4 load balancer for the D4Science PRE production", + "main_lb_hostname": "main-lb", + "main_lb_name": "d4s-pre-cloud-l4-load-balancer", + "octavia_flavor": "octavia_amphora-mvcpu-ha", + "octavia_flavor_id": "394988b5-6603-4a1e-a939-8e177c6681c7", + "octavia_vrrp_ip_1": "10.1.33.159/32", + "octavia_vrrp_ip_2": "10.1.32.199/32", + "swarm_lb_name": "d4s-pre-cloud-l4-swarm-load-balancer" + }, + "type": [ + "map", + "string" + ] + }, + "os_project_data": { + "value": { + "id": "6fdc02e2827b405dad99f34698659742" + }, + "type": [ + "map", + "string" + ] + }, + "policy_list": { + "value": { + "affinity": "affinity", + "anti_affinity": "anti-affinity", + "soft_affinity": "soft-affinity", + "soft_anti_affinity": "soft-anti-affinity" + }, + "type": [ + "map", + "string" + ] + }, + "prometheus_server_data": { + "value": { + "flavor": "m1.medium", + "name": "prometheus", + "public_grafana_server_cidr": "146.48.122.132/32", + "vol_data_device": "/dev/vdb", + "vol_data_name": "prometheus-data", + "vol_data_size": "100" + }, + "type": [ + "map", + "string" + ] + }, "resolvers_ip": { "value": [ "146.48.29.97", @@ -79,7 +321,77 @@ "string" ] }, - "ssh_sources_list": { + "resource_registry_addresses": { + "value": {}, + "type": [ + "map", + "string" + ] + }, + "security_group_list": { + "value": { + "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", + "orientdb_internal_docker_traffic": "orientdb_internal_docker_traffic", + "postgreSQL": "PostgreSQL service", + "public_HTTPS": "Public HTTPS" + }, + "type": [ + "map", + "string" + ] + }, + "shared_postgresql_server_data": { + "value": { + "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" + }, + "type": [ + "map", + "string" + ] + }, + "smartexecutor_addresses": { + "value": {}, + "type": [ + "map", + "string" + ] + }, + "ssh_jump_proxy": { + "value": { + "flavor": "m2.small", + "name": "ssh-jump-proxy" + }, + "type": [ + "map", + "string" + ] + }, + "ssh_sources": { "value": { "d4s_vpn_1_cidr": "146.48.122.27/32", "d4s_vpn_2_cidr": "146.48.122.49/32", @@ -93,13 +405,18 @@ "string" ] }, - "ubuntu1804_datafile": { + "ubuntu1804_data_file": { "value": "../../openstack_vm_data_scripts/ubuntu1804.sh", "type": "string" }, - "ubuntu1804_img": { + "ubuntu2204_data_file": { + "value": "../../openstack_vm_data_scripts/ubuntu2204.sh", + "type": "string" + }, + "ubuntu_1804": { "value": { "name": "Ubuntu-Bionic-18.04", + "user_data_file": "../../openstack_vm_data_scripts/ubuntu1804.sh", "uuid": "7ed6a2cd-2b07-482e-8ce4-f018dff16c89" }, "type": [ @@ -107,13 +424,10 @@ "string" ] }, - "ubuntu2204_datafile": { - "value": "../../openstack_vm_data_scripts/ubuntu2204.sh", - "type": "string" - }, - "ubuntu2204_img": { + "ubuntu_2204": { "value": { "name": "Ubuntu-Jammy-22.04", + "user_data_file": "../../openstack_vm_data_scripts/ubuntu2204.sh", "uuid": "54768889-8556-4be4-a2eb-82a4d9b34627" }, "type": [ diff --git a/openstack-tf/d4s-preprod/project-setup/variables-preprod.tf b/openstack-tf/d4s-preprod/project-setup/variables-preprod.tf new file mode 120000 index 0000000..b6af771 --- /dev/null +++ b/openstack-tf/d4s-preprod/project-setup/variables-preprod.tf @@ -0,0 +1 @@ +../variables/variables-preprod.tf \ No newline at end of file diff --git a/openstack-tf/d4s-preprod/smart-executor/main.tf b/openstack-tf/d4s-preprod/smart-executor/main.tf index d60244b..a612d8a 100644 --- a/openstack-tf/d4s-preprod/smart-executor/main.tf +++ b/openstack-tf/d4s-preprod/smart-executor/main.tf @@ -91,7 +91,7 @@ module "instance_without_data_volume" { resource_checker_se_plugin = { name = "resource-checker-se-plugin", description = "This instance serves smart-executor service with resource-checker-se-plugin", - flavor = module.common_variables.flavor_list.c1_small, + flavor = module.common_variables.flavor_list.m1_medium, networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, module.common_variables.networks_list.orientdb_se], security_groups = [data.terraform_remote_state.privnet_dns_router.outputs.default_security_group_name, data.terraform_remote_state.privnet_dns_router.outputs.security_group_list.http_and_https_from_the_load_balancers, data.terraform_remote_state.privnet_dns_router.outputs.security_group_list.debugging_from_jump_node], server_groups_ids = [openstack_compute_servergroup_v2.resource_checker_server_group.id], @@ -101,7 +101,7 @@ module "instance_without_data_volume" { social_data_indexer_se_plugin = { name = "social-data-indexer-se-plugin", description = "This instance serves smart-executor service with social-data-indexer-se-plugin", - flavor = module.common_variables.flavor_list.c1_small, + flavor = module.common_variables.flavor_list.m1_medium, networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, module.common_variables.networks_list.orientdb_se], security_groups = [data.terraform_remote_state.privnet_dns_router.outputs.default_security_group_name, data.terraform_remote_state.privnet_dns_router.outputs.security_group_list.http_and_https_from_the_load_balancers, data.terraform_remote_state.privnet_dns_router.outputs.security_group_list.debugging_from_jump_node], server_groups_ids = [openstack_compute_servergroup_v2.social_data_indexer_server_group.id], @@ -110,7 +110,7 @@ module "instance_without_data_volume" { accounting_insert_storage_se_plugin = { name = "accounting-insert-storage-se-plugin", description = "This instance serves smart-executor service with accounting-insert-storage-se-plugin", - flavor = module.common_variables.flavor_list.c1_small, + flavor = module.common_variables.flavor_list.m1_medium, networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, module.common_variables.networks_list.orientdb_se], security_groups = [data.terraform_remote_state.privnet_dns_router.outputs.default_security_group_name, data.terraform_remote_state.privnet_dns_router.outputs.security_group_list.http_and_https_from_the_load_balancers, data.terraform_remote_state.privnet_dns_router.outputs.security_group_list.debugging_from_jump_node], server_groups_ids = [openstack_compute_servergroup_v2.accounting_insert_storage_server_group.id], diff --git a/openstack-tf/d4s-preprod/variables/outputs-preprod.tf b/openstack-tf/d4s-preprod/variables/outputs-preprod.tf index db2715e..c880f61 100644 --- a/openstack-tf/d4s-preprod/variables/outputs-preprod.tf +++ b/openstack-tf/d4s-preprod/variables/outputs-preprod.tf @@ -2,6 +2,35 @@ output "os_project_data" { value = var.os_project_data } -output "main_haproxy_l7_ip" { - value = var.main_haproxy_l7_ip +output "dns_zone" { + value = var.dns_zone } + +output "default_security_group_name" { + value = "default_for_all" +} + +output "main_private_network" { + value = var.main_private_network +} + +output "main_private_subnet" { + value = var.main_private_subnet +} + +output "external_router" { + value = var.external_router +} + +output "basic_services_ip" { + value = var.basic_services_ip +} + +output "main_haproxy_l7_ip" { + value = var.main_haproxy_l7_ip +} + +output "octavia_information" { + value = var.octavia_information +} + diff --git a/openstack-tf/d4s-preprod/variables/variables-preprod.tf b/openstack-tf/d4s-preprod/variables/variables-preprod.tf index 2be6139..1413f2f 100644 --- a/openstack-tf/d4s-preprod/variables/variables-preprod.tf +++ b/openstack-tf/d4s-preprod/variables/variables-preprod.tf @@ -100,7 +100,7 @@ variable "octavia_information" { # The following aren't available when the module runs so we have to get them with the command # openstack --os-cloud d4s-pre port list -f value | grep octavia-lb-vrrp # This means that the execution will fail - octavia_vrrp_ip_1 = "10.1.33.159/32" - octavia_vrrp_ip_2 = "10.1.32.199/32" + octavia_vrrp_ip_1 = "10.1.32.0/22" + octavia_vrrp_ip_2 = "10.1.32.0/22" } } diff --git a/openstack-tf/d4s-production/accounting-service/terraform.tfstate b/openstack-tf/d4s-production/accounting-service/terraform.tfstate new file mode 100644 index 0000000..51dca00 --- /dev/null +++ b/openstack-tf/d4s-production/accounting-service/terraform.tfstate @@ -0,0 +1,617 @@ +{ + "version": 4, + "terraform_version": "1.6.4", + "serial": 4, + "lineage": "48d715c9-9302-b29b-570f-57cbdc03cd27", + "outputs": {}, + "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.40.4", + "ca_cidr": "10.1.40.4/32", + "haproxy_l7_1": "10.1.40.11", + "haproxy_l7_1_cidr": "10.1.40.11/32", + "haproxy_l7_2": "10.1.40.12", + "haproxy_l7_2_cidr": "10.1.40.12/32", + "octavia_main": "10.1.40.20", + "octavia_main_cidr": "10.1.40.20/32", + "prometheus": "10.1.40.10", + "prometheus_cidr": "10.1.40.10/32", + "ssh_jump": "10.1.40.5", + "ssh_jump_cidr": "10.1.40.5/32" + }, + "centos_7": { + "name": "CentOS-7", + "uuid": "f0187a99-64f6-462a-ab5f-ef52fe62f2ca" + }, + "default_security_group_name": "default_for_all", + "dns_zone": { + "description": "DNS primary zone for the d4s-production-cloud project", + "email": "postmaster@isti.cnr.it", + "ttl": "8600", + "zone_name": "cloud.d4science.org." + }, + "dns_zone_id": "74135b34-1a9c-4c01-8cf0-22450a5660c4", + "el7_data_file": "../../openstack_vm_data_scripts/el7.sh", + "external_gateway_ip": [ + { + "ip_address": "146.48.31.57", + "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 Production main router", + "id": "cc26064a-bb08-4c0b-929f-d0cb39f934a3", + "name": "d4s-production-cloud-external-router" + }, + "flavor_list": { + "c1_large": "c1.large", + "c1_medium": "c1.medium", + "c1_small": "c1.small", + "m1_large": "m1.large", + "m1_medium": "m1.medium", + "m1_xlarge": "m1.xlarge", + "m2_large": "m2.large", + "m2_medium": "m2.medium", + "m2_small": "m2.small" + }, + "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.40.11", + "10.1.40.12" + ], + "main_private_network": { + "description": "D4Science Production private network (use this as the main network)", + "name": "d4s-production-cloud-main" + }, + "main_private_network_id": "020df98d-ae72-452a-b376-3b6dc289acac", + "main_private_subnet": { + "allocation_end": "10.1.47.254", + "allocation_start": "10.1.41.100", + "cidr": "10.1.40.0/21", + "description": "D4Science Production main private subnet", + "gateway_ip": "10.1.40.1", + "name": "d4s-production-cloud-main-subnet" + }, + "main_region": "isti_area_pi_1", + "main_subnet_network_id": "5d7b83ad-e058-4a3a-bfd8-d20ba6d42e1a", + "mtu_size": 8942, + "networks_list": { + "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" + }, + "octavia_information": { + "main_lb_description": "Main L4 load balancer for the D4Science production", + "main_lb_hostname": "main-lb", + "main_lb_name": "d4s-production-cloud-l4-load-balancer", + "octavia_flavor": "octavia_amphora-mvcpu-ha", + "octavia_flavor_id": "394988b5-6603-4a1e-a939-8e177c6681c7", + "swarm_lb_name": "d4s-production-cloud-l4-swarm-load-balancer" + }, + "os_project_data": { + "id": "1b45adf388934758b56d0dfdb4bfacf3" + }, + "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.122.132/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", + "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" + }, + "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" + ], + "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" + ], + "ubuntu1804_data_file": "string", + "ubuntu2204_data_file": "string", + "ubuntu_1804": [ + "map", + "string" + ], + "ubuntu_2204": [ + "map", + "string" + ] + } + ] + }, + "workspace": null + }, + "sensitive_attributes": [] + } + ] + }, + { + "mode": "managed", + "type": "openstack_compute_servergroup_v2", + "name": "accounting_service_server_group", + "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "id": "46f877cf-b5ef-4d53-9c80-f60b98af5178", + "members": [], + "name": "accounting-service", + "policies": [ + "soft-anti-affinity" + ], + "region": "isti_area_pi_1", + "rules": [ + { + "max_server_per_host": 0 + } + ], + "value_specs": null + }, + "sensitive_attributes": [], + "private": "bnVsbA==" + } + ] + }, + { + "module": "module.instance_without_data_volume", + "mode": "managed", + "type": "openstack_compute_instance_v2", + "name": "smartgears_service", + "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", + "instances": [ + { + "index_key": "accounting_service_1", + "schema_version": 0, + "attributes": { + "access_ip_v4": "10.1.45.98", + "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": "7ed6a2cd-2b07-482e-8ce4-f018dff16c89", + "volume_size": 10, + "volume_type": "" + } + ], + "config_drive": null, + "created": "2023-12-18 14:16:31 +0000 UTC", + "flavor_id": "4", + "flavor_name": "m1.medium", + "floating_ip": null, + "force_delete": false, + "id": "20353135-2b6c-4fcb-8a6c-1f62a72d3a76", + "image_id": "Attempt to boot from volume - no image supplied", + "image_name": null, + "key_pair": "pc-frosini_key", + "metadata": null, + "name": "accounting-service-1", + "network": [ + { + "access_network": false, + "fixed_ip_v4": "10.1.45.98", + "fixed_ip_v6": "", + "floating_ip": "", + "mac": "fa:16:3e:e3:e7:4c", + "name": "d4s-production-cloud-main", + "port": "", + "uuid": "020df98d-ae72-452a-b376-3b6dc289acac" + }, + { + "access_network": false, + "fixed_ip_v4": "192.168.11.178", + "fixed_ip_v6": "", + "floating_ip": "", + "mac": "fa:16:3e:90:4f:99", + "name": "timescaledb-net", + "port": "", + "uuid": "3b0e4c3c-3a1c-4f14-abd1-03f8c8495daf" + } + ], + "network_mode": null, + "personality": [], + "power_state": "active", + "region": "isti_area_pi_1", + "scheduler_hints": [ + { + "additional_properties": null, + "build_near_host_ip": "", + "different_cell": [], + "different_host": [], + "group": "46f877cf-b5ef-4d53-9c80-f60b98af5178", + "query": [], + "same_host": [], + "target_cell": "" + } + ], + "security_groups": [ + "debugging_from_jump_node", + "default_for_all", + "traffic_from_the_main_load_balancers" + ], + "stop_before_destroy": false, + "tags": null, + "timeouts": null, + "updated": "2023-12-18 14:17:05 +0000 UTC", + "user_data": "ef3d6e5deb29bd1e5de5a76ae6860f3ee872738c", + "vendor_options": [], + "volume": [] + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwMH19", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router", + "openstack_compute_servergroup_v2.accounting_service_server_group" + ] + }, + { + "index_key": "accounting_service_2", + "schema_version": 0, + "attributes": { + "access_ip_v4": "10.1.44.80", + "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": "7ed6a2cd-2b07-482e-8ce4-f018dff16c89", + "volume_size": 10, + "volume_type": "" + } + ], + "config_drive": null, + "created": "2023-12-18 14:16:32 +0000 UTC", + "flavor_id": "4", + "flavor_name": "m1.medium", + "floating_ip": null, + "force_delete": false, + "id": "1a476cf4-9219-40a4-b5dc-56145f652145", + "image_id": "Attempt to boot from volume - no image supplied", + "image_name": null, + "key_pair": "pc-frosini_key", + "metadata": null, + "name": "accounting-service-2", + "network": [ + { + "access_network": false, + "fixed_ip_v4": "10.1.44.80", + "fixed_ip_v6": "", + "floating_ip": "", + "mac": "fa:16:3e:63:61:de", + "name": "d4s-production-cloud-main", + "port": "", + "uuid": "020df98d-ae72-452a-b376-3b6dc289acac" + }, + { + "access_network": false, + "fixed_ip_v4": "192.168.11.29", + "fixed_ip_v6": "", + "floating_ip": "", + "mac": "fa:16:3e:6c:d6:fb", + "name": "timescaledb-net", + "port": "", + "uuid": "3b0e4c3c-3a1c-4f14-abd1-03f8c8495daf" + } + ], + "network_mode": null, + "personality": [], + "power_state": "active", + "region": "isti_area_pi_1", + "scheduler_hints": [ + { + "additional_properties": null, + "build_near_host_ip": "", + "different_cell": [], + "different_host": [], + "group": "46f877cf-b5ef-4d53-9c80-f60b98af5178", + "query": [], + "same_host": [], + "target_cell": "" + } + ], + "security_groups": [ + "debugging_from_jump_node", + "default_for_all", + "traffic_from_the_main_load_balancers" + ], + "stop_before_destroy": false, + "tags": null, + "timeouts": null, + "updated": "2023-12-18 14:17:12 +0000 UTC", + "user_data": "ef3d6e5deb29bd1e5de5a76ae6860f3ee872738c", + "vendor_options": [], + "volume": [] + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwMH19", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router", + "openstack_compute_servergroup_v2.accounting_service_server_group" + ] + } + ] + } + ], + "check_results": null +} diff --git a/openstack-tf/d4s-production/basic-infrastructure/provider.tf b/openstack-tf/d4s-production/basic-infrastructure/provider.tf index 97b68ab..f3a5a7b 100644 --- a/openstack-tf/d4s-production/basic-infrastructure/provider.tf +++ b/openstack-tf/d4s-production/basic-infrastructure/provider.tf @@ -12,3 +12,15 @@ terraform { provider "openstack" { cloud = "d4s-production" } + +data "terraform_remote_state" "privnet_dns_router" { + backend = "local" + + config = { + path = "../project-setup/terraform.tfstate" + } +} + +module "ssh_settings" { + source = "../../modules/ssh-key-ref" +} diff --git a/openstack-tf/d4s-production/basic-infrastructure/terraform.tfstate b/openstack-tf/d4s-production/basic-infrastructure/terraform.tfstate index bedc716..8cc99fa 100644 --- a/openstack-tf/d4s-production/basic-infrastructure/terraform.tfstate +++ b/openstack-tf/d4s-production/basic-infrastructure/terraform.tfstate @@ -1,7 +1,7 @@ { "version": 4, - "terraform_version": "1.6.3", - "serial": 330, + "terraform_version": "1.6.6", + "serial": 372, "lineage": "954b57a1-c68e-fa2b-cf2f-79cc54aea13e", "outputs": { "main_loadbalancer_ip": { @@ -14,6 +14,384 @@ } }, "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.40.4", + "ca_cidr": "10.1.40.4/32", + "haproxy_l7_1": "10.1.40.11", + "haproxy_l7_1_cidr": "10.1.40.11/32", + "haproxy_l7_2": "10.1.40.12", + "haproxy_l7_2_cidr": "10.1.40.12/32", + "octavia_main": "10.1.40.20", + "octavia_main_cidr": "10.1.40.20/32", + "prometheus": "10.1.40.10", + "prometheus_cidr": "10.1.40.10/32", + "ssh_jump": "10.1.40.5", + "ssh_jump_cidr": "10.1.40.5/32" + }, + "centos_7": { + "name": "CentOS-7", + "uuid": "f0187a99-64f6-462a-ab5f-ef52fe62f2ca" + }, + "default_security_group_name": "default_for_all", + "dns_zone": { + "description": "DNS primary zone for the d4s-production-cloud project", + "email": "postmaster@isti.cnr.it", + "ttl": "8600", + "zone_name": "cloud.d4science.org." + }, + "dns_zone_id": "74135b34-1a9c-4c01-8cf0-22450a5660c4", + "el7_data_file": "../../openstack_vm_data_scripts/el7.sh", + "external_gateway_ip": [ + { + "ip_address": "146.48.31.57", + "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 Production main router", + "id": "cc26064a-bb08-4c0b-929f-d0cb39f934a3", + "name": "d4s-production-cloud-external-router" + }, + "flavor_list": { + "c1_large": "c1.large", + "c1_medium": "c1.medium", + "c1_small": "c1.small", + "m1_large": "m1.large", + "m1_medium": "m1.medium", + "m1_xlarge": "m1.xlarge", + "m2_large": "m2.large", + "m2_medium": "m2.medium", + "m2_small": "m2.small" + }, + "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.40.11", + "10.1.40.12" + ], + "main_private_network": { + "description": "D4Science Production private network (use this as the main network)", + "name": "d4s-production-cloud-main" + }, + "main_private_network_id": "020df98d-ae72-452a-b376-3b6dc289acac", + "main_private_subnet": { + "allocation_end": "10.1.47.254", + "allocation_start": "10.1.41.100", + "cidr": "10.1.40.0/21", + "description": "D4Science Production main private subnet", + "gateway_ip": "10.1.40.1", + "name": "d4s-production-cloud-main-subnet" + }, + "main_region": "isti_area_pi_1", + "main_subnet_network_id": "5d7b83ad-e058-4a3a-bfd8-d20ba6d42e1a", + "mtu_size": 8942, + "networks_list": { + "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" + }, + "octavia_information": { + "main_lb_description": "Main L4 load balancer for the D4Science production", + "main_lb_hostname": "main-lb", + "main_lb_name": "d4s-production-cloud-l4-load-balancer", + "octavia_flavor": "octavia_amphora-mvcpu-ha", + "octavia_flavor_id": "394988b5-6603-4a1e-a939-8e177c6681c7", + "swarm_lb_name": "d4s-production-cloud-l4-swarm-load-balancer" + }, + "os_project_data": { + "id": "1b45adf388934758b56d0dfdb4bfacf3" + }, + "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.122.132/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", + "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" + }, + "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" + ], + "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" + ], + "ubuntu1804_data_file": "string", + "ubuntu2204_data_file": "string", + "ubuntu_1804": [ + "map", + "string" + ], + "ubuntu_2204": [ + "map", + "string" + ] + } + ] + }, + "workspace": null + }, + "sensitive_attributes": [] + } + ] + }, { "mode": "managed", "type": "openstack_blockstorage_volume_v3", @@ -192,7 +570,6 @@ "dependencies": [ "openstack_compute_instance_v2.prometheus_server", "openstack_networking_floatingip_v2.prometheus_server_ip", - "openstack_networking_secgroup_v2.default", "openstack_networking_secgroup_v2.prometheus_access_from_grafana", "openstack_networking_secgroup_v2.restricted_web" ] @@ -221,8 +598,7 @@ "dependencies": [ "openstack_compute_instance_v2.ssh_jump_proxy", "openstack_networking_floatingip_v2.ssh_jump_proxy_ip", - "openstack_networking_secgroup_v2.access_to_the_jump_proxy", - "openstack_networking_secgroup_v2.default" + "openstack_networking_secgroup_v2.access_to_the_jump_proxy" ] } ] @@ -671,7 +1047,7 @@ "tags": [], "timeouts": null, "updated": "2023-11-06 18:57:32 +0000 UTC", - "user_data": "bb83b25fd1219aa1b850ece9be8d7b0f31714608", + "user_data": "", "vendor_options": [], "volume": [] }, @@ -680,7 +1056,6 @@ "dependencies": [ "openstack_compute_servergroup_v2.swarm_workers", "openstack_networking_network_v2.swarm_nfs_net", - "openstack_networking_secgroup_v2.default", "openstack_networking_secgroup_v2.swarm_internal_traffic", "openstack_networking_subnet_v2.swarm_nfs_subnet" ] @@ -782,7 +1157,7 @@ "tags": [], "timeouts": null, "updated": "2023-11-06 18:50:38 +0000 UTC", - "user_data": "bb83b25fd1219aa1b850ece9be8d7b0f31714608", + "user_data": "", "vendor_options": [], "volume": [] }, @@ -791,7 +1166,6 @@ "dependencies": [ "openstack_compute_servergroup_v2.swarm_workers", "openstack_networking_network_v2.swarm_nfs_net", - "openstack_networking_secgroup_v2.default", "openstack_networking_secgroup_v2.swarm_internal_traffic", "openstack_networking_subnet_v2.swarm_nfs_subnet" ] @@ -893,7 +1267,7 @@ "tags": [], "timeouts": null, "updated": "2023-11-06 18:57:33 +0000 UTC", - "user_data": "bb83b25fd1219aa1b850ece9be8d7b0f31714608", + "user_data": "", "vendor_options": [], "volume": [] }, @@ -902,7 +1276,6 @@ "dependencies": [ "openstack_compute_servergroup_v2.swarm_workers", "openstack_networking_network_v2.swarm_nfs_net", - "openstack_networking_secgroup_v2.default", "openstack_networking_secgroup_v2.swarm_internal_traffic", "openstack_networking_subnet_v2.swarm_nfs_subnet" ] @@ -1004,7 +1377,7 @@ "tags": [], "timeouts": null, "updated": "2023-11-06 18:50:34 +0000 UTC", - "user_data": "bb83b25fd1219aa1b850ece9be8d7b0f31714608", + "user_data": "", "vendor_options": [], "volume": [] }, @@ -1013,7 +1386,6 @@ "dependencies": [ "openstack_compute_servergroup_v2.swarm_workers", "openstack_networking_network_v2.swarm_nfs_net", - "openstack_networking_secgroup_v2.default", "openstack_networking_secgroup_v2.swarm_internal_traffic", "openstack_networking_subnet_v2.swarm_nfs_subnet" ] @@ -1115,7 +1487,7 @@ "tags": [], "timeouts": null, "updated": "2023-11-06 18:50:26 +0000 UTC", - "user_data": "bb83b25fd1219aa1b850ece9be8d7b0f31714608", + "user_data": "", "vendor_options": [], "volume": [] }, @@ -1124,7 +1496,6 @@ "dependencies": [ "openstack_compute_servergroup_v2.swarm_workers", "openstack_networking_network_v2.swarm_nfs_net", - "openstack_networking_secgroup_v2.default", "openstack_networking_secgroup_v2.swarm_internal_traffic", "openstack_networking_subnet_v2.swarm_nfs_subnet" ] @@ -1226,7 +1597,7 @@ "tags": [], "timeouts": null, "updated": "2023-11-06 18:50:45 +0000 UTC", - "user_data": "bb83b25fd1219aa1b850ece9be8d7b0f31714608", + "user_data": "", "vendor_options": [], "volume": [] }, @@ -1235,7 +1606,6 @@ "dependencies": [ "openstack_compute_servergroup_v2.swarm_workers", "openstack_networking_network_v2.swarm_nfs_net", - "openstack_networking_secgroup_v2.default", "openstack_networking_secgroup_v2.swarm_internal_traffic", "openstack_networking_subnet_v2.swarm_nfs_subnet" ] @@ -1337,7 +1707,7 @@ "tags": [], "timeouts": null, "updated": "2023-11-06 18:50:39 +0000 UTC", - "user_data": "bb83b25fd1219aa1b850ece9be8d7b0f31714608", + "user_data": "", "vendor_options": [], "volume": [] }, @@ -1346,7 +1716,6 @@ "dependencies": [ "openstack_compute_servergroup_v2.swarm_workers", "openstack_networking_network_v2.swarm_nfs_net", - "openstack_networking_secgroup_v2.default", "openstack_networking_secgroup_v2.swarm_internal_traffic", "openstack_networking_subnet_v2.swarm_nfs_subnet" ] @@ -1448,7 +1817,7 @@ "tags": [], "timeouts": null, "updated": "2023-11-06 18:50:37 +0000 UTC", - "user_data": "bb83b25fd1219aa1b850ece9be8d7b0f31714608", + "user_data": "", "vendor_options": [], "volume": [] }, @@ -1457,7 +1826,6 @@ "dependencies": [ "openstack_compute_servergroup_v2.swarm_workers", "openstack_networking_network_v2.swarm_nfs_net", - "openstack_networking_secgroup_v2.default", "openstack_networking_secgroup_v2.swarm_internal_traffic", "openstack_networking_subnet_v2.swarm_nfs_subnet" ] @@ -1536,10 +1904,7 @@ "volume": [] }, "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwMH19", - "dependencies": [ - "openstack_networking_secgroup_v2.default" - ] + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwMH19" } ] }, @@ -1631,7 +1996,6 @@ "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwMH19", "dependencies": [ "openstack_compute_servergroup_v2.main_haproxy_l7", - "openstack_networking_secgroup_v2.default", "openstack_networking_secgroup_v2.main_lb_to_haproxy_l7" ] }, @@ -1717,7 +2081,6 @@ "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwMH19", "dependencies": [ "openstack_compute_servergroup_v2.main_haproxy_l7", - "openstack_networking_secgroup_v2.default", "openstack_networking_secgroup_v2.main_lb_to_haproxy_l7" ] } @@ -1799,7 +2162,6 @@ "sensitive_attributes": [], "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwMH19", "dependencies": [ - "openstack_networking_secgroup_v2.default", "openstack_networking_secgroup_v2.prometheus_access_from_grafana", "openstack_networking_secgroup_v2.restricted_web" ] @@ -1891,7 +2253,6 @@ "sensitive_attributes": [], "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwMH19", "dependencies": [ - "openstack_networking_secgroup_v2.default", "openstack_networking_secgroup_v2.shared_postgresql_access" ] } @@ -1972,8 +2333,7 @@ "sensitive_attributes": [], "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwMH19", "dependencies": [ - "openstack_networking_secgroup_v2.access_to_the_jump_proxy", - "openstack_networking_secgroup_v2.default" + "openstack_networking_secgroup_v2.access_to_the_jump_proxy" ] } ] @@ -2194,7 +2554,6 @@ "dependencies": [ "openstack_blockstorage_volume_v3.prometheus_data_vol", "openstack_compute_instance_v2.prometheus_server", - "openstack_networking_secgroup_v2.default", "openstack_networking_secgroup_v2.prometheus_access_from_grafana", "openstack_networking_secgroup_v2.restricted_web" ] @@ -2224,7 +2583,6 @@ "dependencies": [ "openstack_blockstorage_volume_v3.shared_postgresql_backup_vol", "openstack_compute_instance_v2.shared_postgresql_server", - "openstack_networking_secgroup_v2.default", "openstack_networking_secgroup_v2.shared_postgresql_access" ] } @@ -2253,7 +2611,6 @@ "dependencies": [ "openstack_blockstorage_volume_v3.shared_postgresql_data_vol", "openstack_compute_instance_v2.shared_postgresql_server", - "openstack_networking_secgroup_v2.default", "openstack_networking_secgroup_v2.shared_postgresql_access" ] } @@ -4431,7 +4788,7 @@ "description": "Peer traffic from haproxy l7 1 to l7 2", "direction": "ingress", "ethertype": "IPv4", - "id": "c35a41fe-113d-41a4-beb8-d0670633b844", + "id": "94178794-f726-48d5-9df3-b135ee8c9d42", "port_range_max": 10000, "port_range_min": 10000, "protocol": "tcp", @@ -4462,7 +4819,7 @@ "description": "Peer traffic from haproxy l7 2 to l7 1", "direction": "ingress", "ethertype": "IPv4", - "id": "bac8b398-ed17-4757-9b08-d33f7c87d9f3", + "id": "dd2ad153-318b-4ed0-acac-47338e9465ef", "port_range_max": 10000, "port_range_min": 10000, "protocol": "tcp", @@ -4701,22 +5058,22 @@ { "mode": "managed", "type": "openstack_networking_secgroup_rule_v2", - "name": "lb3_1_haproxy_l7_443", + "name": "octavia_to_haproxy_l7_443", "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", "instances": [ { "schema_version": 0, "attributes": { - "description": "Traffic from the first main lb instance to HAPROXY l7 1 port 443", + "description": "Traffic from the octavia lb instance to HAPROXY l7 port 443", "direction": "ingress", "ethertype": "IPv4", - "id": "4e1de285-2973-4743-abba-f418e4f0feb9", + "id": "1e7bc675-f8ba-48bc-97a6-14838a011860", "port_range_max": 443, "port_range_min": 443, "protocol": "tcp", "region": "isti_area_pi_1", "remote_group_id": "", - "remote_ip_prefix": "10.1.42.119/32", + "remote_ip_prefix": "10.1.40.0/21", "security_group_id": "0c3bdb0a-5f5a-4272-b479-285480543c68", "tenant_id": "1b45adf388934758b56d0dfdb4bfacf3", "timeouts": null @@ -4732,22 +5089,22 @@ { "mode": "managed", "type": "openstack_networking_secgroup_rule_v2", - "name": "lb3_1_haproxy_l7_80", + "name": "octavia_to_haproxy_l7_80", "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", "instances": [ { "schema_version": 0, "attributes": { - "description": "Traffic from the first main lb instance to HAPROXY l7 1 port 80", + "description": "Traffic from the octavia lb instance to HAPROXY l7 port 80", "direction": "ingress", "ethertype": "IPv4", - "id": "997d9a2a-facc-44c1-8527-5649fa76981b", + "id": "e6734f61-c4da-4399-9d48-85421b9e66f1", "port_range_max": 80, "port_range_min": 80, "protocol": "tcp", "region": "isti_area_pi_1", "remote_group_id": "", - "remote_ip_prefix": "10.1.42.119/32", + "remote_ip_prefix": "10.1.40.0/21", "security_group_id": "0c3bdb0a-5f5a-4272-b479-285480543c68", "tenant_id": "1b45adf388934758b56d0dfdb4bfacf3", "timeouts": null @@ -4763,115 +5120,22 @@ { "mode": "managed", "type": "openstack_networking_secgroup_rule_v2", - "name": "lb3_1_haproxy_l7_8080", + "name": "octavia_to_haproxy_l7_8880", "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", "instances": [ { "schema_version": 0, "attributes": { - "description": "Traffic from the first main lb instance to HAPROXY l7 1 port 8080", + "description": "Traffic from the octavia lb instance to HAPROXY l7 port 8880", "direction": "ingress", "ethertype": "IPv4", - "id": "2c704ff2-eda0-4ea6-a839-d1f289b7e8d8", - "port_range_max": 8080, - "port_range_min": 8080, + "id": "32e435ed-ee13-4e2e-addb-9bc141fd2640", + "port_range_max": 8880, + "port_range_min": 8880, "protocol": "tcp", "region": "isti_area_pi_1", "remote_group_id": "", - "remote_ip_prefix": "10.1.42.119/32", - "security_group_id": "0c3bdb0a-5f5a-4272-b479-285480543c68", - "tenant_id": "1b45adf388934758b56d0dfdb4bfacf3", - "timeouts": null - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiZGVsZXRlIjo2MDAwMDAwMDAwMDB9fQ==", - "dependencies": [ - "openstack_networking_secgroup_v2.main_lb_to_haproxy_l7" - ] - } - ] - }, - { - "mode": "managed", - "type": "openstack_networking_secgroup_rule_v2", - "name": "lb3_2_haproxy_l7_443", - "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "description": "Traffic from the first main lb instance to HAPROXY l7 2 port 443", - "direction": "ingress", - "ethertype": "IPv4", - "id": "c52aca74-7d2d-4d67-a344-465be1e5fb45", - "port_range_max": 443, - "port_range_min": 443, - "protocol": "tcp", - "region": "isti_area_pi_1", - "remote_group_id": "", - "remote_ip_prefix": "10.1.42.188/32", - "security_group_id": "0c3bdb0a-5f5a-4272-b479-285480543c68", - "tenant_id": "1b45adf388934758b56d0dfdb4bfacf3", - "timeouts": null - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiZGVsZXRlIjo2MDAwMDAwMDAwMDB9fQ==", - "dependencies": [ - "openstack_networking_secgroup_v2.main_lb_to_haproxy_l7" - ] - } - ] - }, - { - "mode": "managed", - "type": "openstack_networking_secgroup_rule_v2", - "name": "lb3_2_haproxy_l7_80", - "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "description": "Traffic from the first main lb instance to HAPROXY l7 2 port 80", - "direction": "ingress", - "ethertype": "IPv4", - "id": "69f42ddc-c9aa-4a91-b720-16fb62c68b72", - "port_range_max": 80, - "port_range_min": 80, - "protocol": "tcp", - "region": "isti_area_pi_1", - "remote_group_id": "", - "remote_ip_prefix": "10.1.42.188/32", - "security_group_id": "0c3bdb0a-5f5a-4272-b479-285480543c68", - "tenant_id": "1b45adf388934758b56d0dfdb4bfacf3", - "timeouts": null - }, - "sensitive_attributes": [], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiZGVsZXRlIjo2MDAwMDAwMDAwMDB9fQ==", - "dependencies": [ - "openstack_networking_secgroup_v2.main_lb_to_haproxy_l7" - ] - } - ] - }, - { - "mode": "managed", - "type": "openstack_networking_secgroup_rule_v2", - "name": "lb3_2_haproxy_l7_8080", - "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "description": "Traffic from the first main lb instance to HAPROXY l7 2 port 8080", - "direction": "ingress", - "ethertype": "IPv4", - "id": "b4ba8d1e-4851-4474-b48d-b7f6b5a17e0d", - "port_range_max": 8080, - "port_range_min": 8080, - "protocol": "tcp", - "region": "isti_area_pi_1", - "remote_group_id": "", - "remote_ip_prefix": "10.1.42.188/32", + "remote_ip_prefix": "10.1.40.0/21", "security_group_id": "0c3bdb0a-5f5a-4272-b479-285480543c68", "tenant_id": "1b45adf388934758b56d0dfdb4bfacf3", "timeouts": null diff --git a/openstack-tf/d4s-production/basic-infrastructure/variables-prod-basic-infrastructure.tf b/openstack-tf/d4s-production/basic-infrastructure/variables-prod-basic-infrastructure.tf new file mode 100644 index 0000000..f477aa4 --- /dev/null +++ b/openstack-tf/d4s-production/basic-infrastructure/variables-prod-basic-infrastructure.tf @@ -0,0 +1,11 @@ +variable "dns_zone_id" { + default = "74135b34-1a9c-4c01-8cf0-22450a5660c4" +} + +variable "main_private_network_id" { + default = "020df98d-ae72-452a-b376-3b6dc289acac" +} + +variable "main_private_subnet_id" { + default = "5d7b83ad-e058-4a3a-bfd8-d20ba6d42e1a" +} \ No newline at end of file diff --git a/openstack-tf/d4s-production/dataminer/main.tf b/openstack-tf/d4s-production/dataminer/main.tf new file mode 100644 index 0000000..c2a06f1 --- /dev/null +++ b/openstack-tf/d4s-production/dataminer/main.tf @@ -0,0 +1,227 @@ +# 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" + } +} +# +# Uses common_variables as module +# +module "common_variables" { + source = "../../modules/common_variables" +} + +module "instance_with_data_volume" { + source = "../../modules/instance_with_data_volume" + + instances_with_data_volume_map = { + dm_pool_manager_proto = { + name = "dm-pool-manager-proto", + description = "This instance is a DataMiner Pool Manager service", + flavor = module.common_variables.flavor_list.m1_large, + networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, module.common_variables.networks_list.shared_postgresql], + security_groups = [data.terraform_remote_state.privnet_dns_router.outputs.default_security_group_name, data.terraform_remote_state.privnet_dns_router.outputs.security_group_list.http_and_https_from_the_load_balancers], + server_groups_ids = [], + image_ref = module.common_variables.ubuntu_1804 + volume = { + name = "dm_pool_manager_proto_data_volume", + size = "30", + device = "/dev/vdb" + } + }, + dataminer_proto_ghost = { + name = "dataminer-proto-ghost", + description = "This instance is a DataMiner Ghost service", + flavor = module.common_variables.flavor_list.m1_large, + networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, module.common_variables.networks_list.shared_postgresql], + security_groups = [data.terraform_remote_state.privnet_dns_router.outputs.default_security_group_name, data.terraform_remote_state.privnet_dns_router.outputs.security_group_list.http_and_https_from_the_load_balancers], + server_groups_ids = [], + image_ref = module.common_variables.ubuntu_1804 + volume = { + name = "dataminer_proto_ghost_data_volume", + size = "50", + device = "/dev/vdb" + } + }, + dataminer_1_proto_1804 = { + name = "dataminer1-proto-1804", + description = "This instance is a DataMiner service", + flavor = module.common_variables.flavor_list.m1_xxl, + networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, module.common_variables.networks_list.shared_postgresql], + security_groups = [data.terraform_remote_state.privnet_dns_router.outputs.default_security_group_name, data.terraform_remote_state.privnet_dns_router.outputs.security_group_list.http_and_https_from_the_load_balancers], + server_groups_ids = [], + image_ref = module.common_variables.ubuntu_1804 + volume = { + name = "dataminer_1_proto_1804_data_volume", + size = "80", + device = "/dev/vdb" + } + }, + dataminer_2_proto_1804 = { + name = "dataminer2-proto-1804", + description = "This instance is a DataMiner service", + flavor = module.common_variables.flavor_list.m1_xxl, + networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, module.common_variables.networks_list.shared_postgresql], + security_groups = [data.terraform_remote_state.privnet_dns_router.outputs.default_security_group_name, data.terraform_remote_state.privnet_dns_router.outputs.security_group_list.http_and_https_from_the_load_balancers], + server_groups_ids = [], + image_ref = module.common_variables.ubuntu_1804 + volume = { + name = "dataminer_2_proto_1804_data_volume", + size = "80", + device = "/dev/vdb" + } + }, + dataminer_3_proto_1804 = { + name = "dataminer3-proto-1804", + description = "This instance is a DataMiner service", + flavor = module.common_variables.flavor_list.m1_xxl, + networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, module.common_variables.networks_list.shared_postgresql], + security_groups = [data.terraform_remote_state.privnet_dns_router.outputs.default_security_group_name, data.terraform_remote_state.privnet_dns_router.outputs.security_group_list.http_and_https_from_the_load_balancers], + server_groups_ids = [], + image_ref = module.common_variables.ubuntu_1804 + volume = { + name = "dataminer_3_proto_1804_data_volume", + size = "80", + device = "/dev/vdb" + } + }, + dataminer_4_proto_1804 = { + name = "dataminer4-proto-1804", + description = "This instance is a DataMiner service", + flavor = module.common_variables.flavor_list.m1_xxl, + networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, module.common_variables.networks_list.shared_postgresql], + security_groups = [data.terraform_remote_state.privnet_dns_router.outputs.default_security_group_name, data.terraform_remote_state.privnet_dns_router.outputs.security_group_list.http_and_https_from_the_load_balancers], + server_groups_ids = [], + image_ref = module.common_variables.ubuntu_1804 + volume = { + name = "dataminer_4_proto_1804_data_volume", + size = "80", + device = "/dev/vdb" + } + }, + dataminer_5_proto_1804 = { + name = "dataminer5-proto-1804", + description = "This instance is a DataMiner service", + flavor = module.common_variables.flavor_list.m1_xxl, + networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, module.common_variables.networks_list.shared_postgresql], + security_groups = [data.terraform_remote_state.privnet_dns_router.outputs.default_security_group_name, data.terraform_remote_state.privnet_dns_router.outputs.security_group_list.http_and_https_from_the_load_balancers], + server_groups_ids = [], + image_ref = module.common_variables.ubuntu_1804 + volume = { + name = "dataminer_5_proto_1804_data_volume", + size = "80", + device = "/dev/vdb" + } + }, + dataminer_6_proto_1804 = { + name = "dataminer6-proto-1804", + description = "This instance is a DataMiner service", + flavor = module.common_variables.flavor_list.m1_xxl, + networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, module.common_variables.networks_list.shared_postgresql], + security_groups = [data.terraform_remote_state.privnet_dns_router.outputs.default_security_group_name, data.terraform_remote_state.privnet_dns_router.outputs.security_group_list.http_and_https_from_the_load_balancers], + server_groups_ids = [], + image_ref = module.common_variables.ubuntu_1804 + volume = { + name = "dataminer_6_proto_1804_data_volume", + size = "80", + device = "/dev/vdb" + } + }, + dataminer_7_proto_1804 = { + name = "dataminer7-proto-1804", + description = "This instance is a DataMiner service", + flavor = module.common_variables.flavor_list.m1_xxl, + networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, module.common_variables.networks_list.shared_postgresql], + security_groups = [data.terraform_remote_state.privnet_dns_router.outputs.default_security_group_name, data.terraform_remote_state.privnet_dns_router.outputs.security_group_list.http_and_https_from_the_load_balancers], + server_groups_ids = [], + image_ref = module.common_variables.ubuntu_1804 + volume = { + name = "dataminer_7_proto_1804_data_volume", + size = "80", + device = "/dev/vdb" + } + }, + dataminer_8_proto_1804 = { + name = "dataminer8-proto-1804", + description = "This instance is a DataMiner service", + flavor = module.common_variables.flavor_list.m1_xxl, + networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, module.common_variables.networks_list.shared_postgresql], + security_groups = [data.terraform_remote_state.privnet_dns_router.outputs.default_security_group_name, data.terraform_remote_state.privnet_dns_router.outputs.security_group_list.http_and_https_from_the_load_balancers], + server_groups_ids = [], + image_ref = module.common_variables.ubuntu_1804 + volume = { + name = "dataminer_8_proto_1804_data_volume", + size = "80", + device = "/dev/vdb" + } + }, + dataminer_2_gw_proto_1804 = { + name = "dataminer2-gw-proto-1804", + description = "This instance is a DataMiner service", + flavor = module.common_variables.flavor_list.c2_large, + networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, module.common_variables.networks_list.shared_postgresql], + security_groups = [data.terraform_remote_state.privnet_dns_router.outputs.default_security_group_name, data.terraform_remote_state.privnet_dns_router.outputs.security_group_list.http_and_https_from_the_load_balancers], + server_groups_ids = [], + image_ref = module.common_variables.ubuntu_1804 + volume = { + name = "dataminer_2_gw_proto_1804_data_volume", + size = "40", + device = "/dev/vdb" + } + }, + dataminer_3_gw_proto_1804 = { + name = "dataminer3-gw-proto-1804", + description = "This instance is a DataMiner service", + flavor = module.common_variables.flavor_list.c2_large, + networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, module.common_variables.networks_list.shared_postgresql], + security_groups = [data.terraform_remote_state.privnet_dns_router.outputs.default_security_group_name, data.terraform_remote_state.privnet_dns_router.outputs.security_group_list.http_and_https_from_the_load_balancers], + server_groups_ids = [], + image_ref = module.common_variables.ubuntu_1804 + volume = { + name = "dataminer_3_gw_proto_1804_data_volume", + size = "40", + device = "/dev/vdb" + } + }, + dataminer_4_gw_proto_1804 = { + name = "dataminer4-gw-proto-1804", + description = "This instance is a DataMiner service", + flavor = module.common_variables.flavor_list.c2_large, + networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, module.common_variables.networks_list.shared_postgresql], + security_groups = [data.terraform_remote_state.privnet_dns_router.outputs.default_security_group_name, data.terraform_remote_state.privnet_dns_router.outputs.security_group_list.http_and_https_from_the_load_balancers], + server_groups_ids = [], + image_ref = module.common_variables.ubuntu_1804 + volume = { + name = "dataminer_4_gw_proto_1804_data_volume", + size = "40", + device = "/dev/vdb" + } + }, + dataminer_5_gw_proto_1804 = { + name = "dataminer5-gw-proto-1804", + description = "This instance is a DataMiner service", + flavor = module.common_variables.flavor_list.c2_large, + networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, module.common_variables.networks_list.shared_postgresql], + security_groups = [data.terraform_remote_state.privnet_dns_router.outputs.default_security_group_name, data.terraform_remote_state.privnet_dns_router.outputs.security_group_list.http_and_https_from_the_load_balancers], + server_groups_ids = [], + image_ref = module.common_variables.ubuntu_1804 + volume = { + name = "dataminer_5_gw_proto_1804_data_volume", + size = "40", + device = "/dev/vdb" + } + } + } +} diff --git a/openstack-tf/d4s-production/dataminer/provider.tf b/openstack-tf/d4s-production/dataminer/provider.tf new file mode 100644 index 0000000..ca8de74 --- /dev/null +++ b/openstack-tf/d4s-production/dataminer/provider.tf @@ -0,0 +1,3 @@ +provider "openstack" { + cloud = "d4s-production" +} diff --git a/openstack-tf/d4s-production/dataminer/terraform.tfstate b/openstack-tf/d4s-production/dataminer/terraform.tfstate new file mode 100644 index 0000000..a0e0db4 --- /dev/null +++ b/openstack-tf/d4s-production/dataminer/terraform.tfstate @@ -0,0 +1,2277 @@ +{ + "version": 4, + "terraform_version": "1.6.4", + "serial": 43, + "lineage": "baea8c53-fd72-1573-59ac-35ef1fc58d33", + "outputs": {}, + "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.40.4", + "ca_cidr": "10.1.40.4/32", + "haproxy_l7_1": "10.1.40.11", + "haproxy_l7_1_cidr": "10.1.40.11/32", + "haproxy_l7_2": "10.1.40.12", + "haproxy_l7_2_cidr": "10.1.40.12/32", + "octavia_main": "10.1.40.20", + "octavia_main_cidr": "10.1.40.20/32", + "prometheus": "10.1.40.10", + "prometheus_cidr": "10.1.40.10/32", + "ssh_jump": "10.1.40.5", + "ssh_jump_cidr": "10.1.40.5/32" + }, + "centos_7": { + "name": "CentOS-7", + "uuid": "f0187a99-64f6-462a-ab5f-ef52fe62f2ca" + }, + "default_security_group_name": "default_for_all", + "dns_zone": { + "description": "DNS primary zone for the d4s-production-cloud project", + "email": "postmaster@isti.cnr.it", + "ttl": "8600", + "zone_name": "cloud.d4science.org." + }, + "dns_zone_id": "74135b34-1a9c-4c01-8cf0-22450a5660c4", + "el7_data_file": "../../openstack_vm_data_scripts/el7.sh", + "external_gateway_ip": [ + { + "ip_address": "146.48.31.57", + "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 Production main router", + "id": "cc26064a-bb08-4c0b-929f-d0cb39f934a3", + "name": "d4s-production-cloud-external-router" + }, + "flavor_list": { + "c1_large": "c1.large", + "c1_medium": "c1.medium", + "c1_small": "c1.small", + "m1_large": "m1.large", + "m1_medium": "m1.medium", + "m1_xlarge": "m1.xlarge", + "m2_large": "m2.large", + "m2_medium": "m2.medium", + "m2_small": "m2.small" + }, + "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.40.11", + "10.1.40.12" + ], + "main_private_network": { + "description": "D4Science Production private network (use this as the main network)", + "name": "d4s-production-cloud-main" + }, + "main_private_network_id": "020df98d-ae72-452a-b376-3b6dc289acac", + "main_private_subnet": { + "allocation_end": "10.1.47.254", + "allocation_start": "10.1.41.100", + "cidr": "10.1.40.0/21", + "description": "D4Science Production main private subnet", + "gateway_ip": "10.1.40.1", + "name": "d4s-production-cloud-main-subnet" + }, + "main_region": "isti_area_pi_1", + "main_subnet_network_id": "5d7b83ad-e058-4a3a-bfd8-d20ba6d42e1a", + "mtu_size": 8942, + "networks_list": { + "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" + }, + "octavia_information": { + "main_lb_description": "Main L4 load balancer for the D4Science production", + "main_lb_hostname": "main-lb", + "main_lb_name": "d4s-production-cloud-l4-load-balancer", + "octavia_flavor": "octavia_amphora-mvcpu-ha", + "octavia_flavor_id": "394988b5-6603-4a1e-a939-8e177c6681c7", + "swarm_lb_name": "d4s-production-cloud-l4-swarm-load-balancer" + }, + "os_project_data": { + "id": "1b45adf388934758b56d0dfdb4bfacf3" + }, + "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.122.132/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", + "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" + }, + "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" + ], + "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" + ], + "ubuntu1804_data_file": "string", + "ubuntu2204_data_file": "string", + "ubuntu_1804": [ + "map", + "string" + ], + "ubuntu_2204": [ + "map", + "string" + ] + } + ] + }, + "workspace": null + }, + "sensitive_attributes": [] + } + ] + }, + { + "module": "module.instance_with_data_volume", + "mode": "managed", + "type": "openstack_blockstorage_volume_v3", + "name": "instance_data_volume", + "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", + "instances": [ + { + "index_key": "dataminer_1_proto_1804", + "schema_version": 0, + "attributes": { + "attachment": [], + "availability_zone": "nova", + "consistency_group_id": null, + "description": "", + "enable_online_resize": null, + "id": "ef02b882-2c0d-4811-8677-52e9c4942a9e", + "image_id": null, + "metadata": {}, + "multiattach": null, + "name": "dataminer_1_proto_1804_data_volume", + "region": "isti_area_pi_1", + "scheduler_hints": [], + "size": 80, + "snapshot_id": "", + "source_replica": null, + "source_vol_id": "", + "timeouts": null, + "volume_type": "cephUnencrypted" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router" + ] + }, + { + "index_key": "dataminer_2_gw_proto_1804", + "schema_version": 0, + "attributes": { + "attachment": [], + "availability_zone": "nova", + "consistency_group_id": null, + "description": "", + "enable_online_resize": null, + "id": "dad535de-9141-428d-8499-90c3641a2b15", + "image_id": null, + "metadata": {}, + "multiattach": null, + "name": "dataminer_2_gw_proto_1804_data_volume", + "region": "isti_area_pi_1", + "scheduler_hints": [], + "size": 40, + "snapshot_id": "", + "source_replica": null, + "source_vol_id": "", + "timeouts": null, + "volume_type": "cephUnencrypted" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router" + ] + }, + { + "index_key": "dataminer_2_proto_1804", + "schema_version": 0, + "attributes": { + "attachment": [], + "availability_zone": "nova", + "consistency_group_id": null, + "description": "", + "enable_online_resize": null, + "id": "8c4863d4-840f-4434-b53d-908d6d5448ca", + "image_id": null, + "metadata": {}, + "multiattach": null, + "name": "dataminer_2_proto_1804_data_volume", + "region": "isti_area_pi_1", + "scheduler_hints": [], + "size": 80, + "snapshot_id": "", + "source_replica": null, + "source_vol_id": "", + "timeouts": null, + "volume_type": "cephUnencrypted" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router" + ] + }, + { + "index_key": "dataminer_3_gw_proto_1804", + "schema_version": 0, + "attributes": { + "attachment": [], + "availability_zone": "nova", + "consistency_group_id": null, + "description": "", + "enable_online_resize": null, + "id": "1d9f7435-1a94-417f-8383-19b2c99c282f", + "image_id": null, + "metadata": {}, + "multiattach": null, + "name": "dataminer_3_gw_proto_1804_data_volume", + "region": "isti_area_pi_1", + "scheduler_hints": [], + "size": 40, + "snapshot_id": "", + "source_replica": null, + "source_vol_id": "", + "timeouts": null, + "volume_type": "cephUnencrypted" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router" + ] + }, + { + "index_key": "dataminer_3_proto_1804", + "schema_version": 0, + "attributes": { + "attachment": [], + "availability_zone": "nova", + "consistency_group_id": null, + "description": "", + "enable_online_resize": null, + "id": "f4b3be97-4879-4268-8247-28909acfb14c", + "image_id": null, + "metadata": {}, + "multiattach": null, + "name": "dataminer_3_proto_1804_data_volume", + "region": "isti_area_pi_1", + "scheduler_hints": [], + "size": 80, + "snapshot_id": "", + "source_replica": null, + "source_vol_id": "", + "timeouts": null, + "volume_type": "cephUnencrypted" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router" + ] + }, + { + "index_key": "dataminer_4_gw_proto_1804", + "schema_version": 0, + "attributes": { + "attachment": [], + "availability_zone": "nova", + "consistency_group_id": null, + "description": "", + "enable_online_resize": null, + "id": "7c89af02-e3ff-4a8a-a0a3-4dbeb5ad87a4", + "image_id": null, + "metadata": {}, + "multiattach": null, + "name": "dataminer_4_gw_proto_1804_data_volume", + "region": "isti_area_pi_1", + "scheduler_hints": [], + "size": 40, + "snapshot_id": "", + "source_replica": null, + "source_vol_id": "", + "timeouts": null, + "volume_type": "cephUnencrypted" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router" + ] + }, + { + "index_key": "dataminer_4_proto_1804", + "schema_version": 0, + "attributes": { + "attachment": [], + "availability_zone": "nova", + "consistency_group_id": null, + "description": "", + "enable_online_resize": null, + "id": "16bb28f0-7186-4c44-9d4a-d5a0e23eaf38", + "image_id": null, + "metadata": {}, + "multiattach": null, + "name": "dataminer_4_proto_1804_data_volume", + "region": "isti_area_pi_1", + "scheduler_hints": [], + "size": 80, + "snapshot_id": "", + "source_replica": null, + "source_vol_id": "", + "timeouts": null, + "volume_type": "cephUnencrypted" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router" + ] + }, + { + "index_key": "dataminer_5_gw_proto_1804", + "schema_version": 0, + "attributes": { + "attachment": [], + "availability_zone": "nova", + "consistency_group_id": null, + "description": "", + "enable_online_resize": null, + "id": "091ac4a5-d02d-4478-917c-437e8805dd88", + "image_id": null, + "metadata": {}, + "multiattach": null, + "name": "dataminer_5_gw_proto_1804_data_volume", + "region": "isti_area_pi_1", + "scheduler_hints": [], + "size": 40, + "snapshot_id": "", + "source_replica": null, + "source_vol_id": "", + "timeouts": null, + "volume_type": "cephUnencrypted" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router" + ] + }, + { + "index_key": "dataminer_5_proto_1804", + "schema_version": 0, + "attributes": { + "attachment": [], + "availability_zone": "nova", + "consistency_group_id": null, + "description": "", + "enable_online_resize": null, + "id": "816321d7-1608-4443-b211-721579f46190", + "image_id": null, + "metadata": {}, + "multiattach": null, + "name": "dataminer_5_proto_1804_data_volume", + "region": "isti_area_pi_1", + "scheduler_hints": [], + "size": 80, + "snapshot_id": "", + "source_replica": null, + "source_vol_id": "", + "timeouts": null, + "volume_type": "cephUnencrypted" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router" + ] + }, + { + "index_key": "dataminer_6_proto_1804", + "schema_version": 0, + "attributes": { + "attachment": [], + "availability_zone": "nova", + "consistency_group_id": null, + "description": "", + "enable_online_resize": null, + "id": "c229fc5c-8d43-4305-8380-21f6f7c55716", + "image_id": null, + "metadata": {}, + "multiattach": null, + "name": "dataminer_6_proto_1804_data_volume", + "region": "isti_area_pi_1", + "scheduler_hints": [], + "size": 80, + "snapshot_id": "", + "source_replica": null, + "source_vol_id": "", + "timeouts": null, + "volume_type": "cephUnencrypted" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router" + ] + }, + { + "index_key": "dataminer_7_proto_1804", + "schema_version": 0, + "attributes": { + "attachment": [], + "availability_zone": "nova", + "consistency_group_id": null, + "description": "", + "enable_online_resize": null, + "id": "f1f9a46f-7275-4a1e-a272-6dc587ed3d68", + "image_id": null, + "metadata": {}, + "multiattach": null, + "name": "dataminer_7_proto_1804_data_volume", + "region": "isti_area_pi_1", + "scheduler_hints": [], + "size": 80, + "snapshot_id": "", + "source_replica": null, + "source_vol_id": "", + "timeouts": null, + "volume_type": "cephUnencrypted" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router" + ] + }, + { + "index_key": "dataminer_8_proto_1804", + "schema_version": 0, + "attributes": { + "attachment": [], + "availability_zone": "nova", + "consistency_group_id": null, + "description": "", + "enable_online_resize": null, + "id": "79fdc75f-4aee-4788-a13f-29b02c2b1416", + "image_id": null, + "metadata": {}, + "multiattach": null, + "name": "dataminer_8_proto_1804_data_volume", + "region": "isti_area_pi_1", + "scheduler_hints": [], + "size": 80, + "snapshot_id": "", + "source_replica": null, + "source_vol_id": "", + "timeouts": null, + "volume_type": "cephUnencrypted" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router" + ] + }, + { + "index_key": "dataminer_proto_ghost", + "schema_version": 0, + "attributes": { + "attachment": [], + "availability_zone": "nova", + "consistency_group_id": null, + "description": "", + "enable_online_resize": null, + "id": "8684b11a-a416-4485-8306-4fba2cecf350", + "image_id": null, + "metadata": {}, + "multiattach": null, + "name": "dataminer_proto_ghost_data_volume", + "region": "isti_area_pi_1", + "scheduler_hints": [], + "size": 50, + "snapshot_id": "", + "source_replica": null, + "source_vol_id": "", + "timeouts": null, + "volume_type": "cephUnencrypted" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router" + ] + }, + { + "index_key": "dm_pool_manager_proto", + "schema_version": 0, + "attributes": { + "attachment": [], + "availability_zone": "nova", + "consistency_group_id": null, + "description": "", + "enable_online_resize": null, + "id": "20622ba0-bdaa-4e2e-9312-c9bccdeb1564", + "image_id": null, + "metadata": {}, + "multiattach": null, + "name": "dm_pool_manager_proto_data_volume", + "region": "isti_area_pi_1", + "scheduler_hints": [], + "size": 30, + "snapshot_id": "", + "source_replica": null, + "source_vol_id": "", + "timeouts": null, + "volume_type": "cephUnencrypted" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router" + ] + } + ] + }, + { + "module": "module.instance_with_data_volume", + "mode": "managed", + "type": "openstack_compute_instance_v2", + "name": "instance_with_data_volume", + "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", + "instances": [ + { + "index_key": "dataminer_1_proto_1804", + "schema_version": 0, + "attributes": { + "access_ip_v4": "10.1.43.167", + "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": "7ed6a2cd-2b07-482e-8ce4-f018dff16c89", + "volume_size": 10, + "volume_type": "" + } + ], + "config_drive": null, + "created": "2023-12-18 15:02:27 +0000 UTC", + "flavor_id": "18", + "flavor_name": "m1.xxl", + "floating_ip": null, + "force_delete": false, + "id": "bf35cfcd-403e-4282-b00f-a5e3fb4b7ffd", + "image_id": "Attempt to boot from volume - no image supplied", + "image_name": null, + "key_pair": "Giancarlo Panichi", + "metadata": null, + "name": "dataminer1-proto-1804", + "network": [ + { + "access_network": false, + "fixed_ip_v4": "10.1.43.167", + "fixed_ip_v6": "", + "floating_ip": "", + "mac": "fa:16:3e:8e:b8:ed", + "name": "d4s-production-cloud-main", + "port": "", + "uuid": "020df98d-ae72-452a-b376-3b6dc289acac" + }, + { + "access_network": false, + "fixed_ip_v4": "192.168.0.152", + "fixed_ip_v6": "", + "floating_ip": "", + "mac": "fa:16:3e:1e:21:10", + "name": "postgresql-srv-net", + "port": "", + "uuid": "f6450bc8-1345-4b52-8f34-2903c0cca7f8" + } + ], + "network_mode": null, + "personality": [], + "power_state": "active", + "region": "isti_area_pi_1", + "scheduler_hints": [], + "security_groups": [ + "default_for_all", + "traffic_from_the_main_load_balancers" + ], + "stop_before_destroy": false, + "tags": null, + "timeouts": null, + "updated": "2023-12-18 15:03:12 +0000 UTC", + "user_data": "47d4769e61324c305c4b70ed6673de4fad84150d", + "vendor_options": [], + "volume": [] + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwMH19", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router" + ] + }, + { + "index_key": "dataminer_2_gw_proto_1804", + "schema_version": 0, + "attributes": { + "access_ip_v4": "10.1.45.106", + "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": "7ed6a2cd-2b07-482e-8ce4-f018dff16c89", + "volume_size": 10, + "volume_type": "" + } + ], + "config_drive": null, + "created": "2023-12-18 15:01:20 +0000 UTC", + "flavor_id": "13", + "flavor_name": "c2.large", + "floating_ip": null, + "force_delete": false, + "id": "70a3409e-9cbd-40eb-a4ab-90e2b0b81590", + "image_id": "Attempt to boot from volume - no image supplied", + "image_name": null, + "key_pair": "Giancarlo Panichi", + "metadata": null, + "name": "dataminer2-gw-proto-1804", + "network": [ + { + "access_network": false, + "fixed_ip_v4": "10.1.45.106", + "fixed_ip_v6": "", + "floating_ip": "", + "mac": "fa:16:3e:95:c9:6d", + "name": "d4s-production-cloud-main", + "port": "", + "uuid": "020df98d-ae72-452a-b376-3b6dc289acac" + }, + { + "access_network": false, + "fixed_ip_v4": "192.168.2.104", + "fixed_ip_v6": "", + "floating_ip": "", + "mac": "fa:16:3e:ea:4d:2c", + "name": "postgresql-srv-net", + "port": "", + "uuid": "f6450bc8-1345-4b52-8f34-2903c0cca7f8" + } + ], + "network_mode": null, + "personality": [], + "power_state": "active", + "region": "isti_area_pi_1", + "scheduler_hints": [], + "security_groups": [ + "default_for_all", + "traffic_from_the_main_load_balancers" + ], + "stop_before_destroy": false, + "tags": null, + "timeouts": null, + "updated": "2023-12-18 15:02:13 +0000 UTC", + "user_data": "47d4769e61324c305c4b70ed6673de4fad84150d", + "vendor_options": [], + "volume": [] + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwMH19", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router" + ] + }, + { + "index_key": "dataminer_2_proto_1804", + "schema_version": 0, + "attributes": { + "access_ip_v4": "10.1.41.101", + "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": "7ed6a2cd-2b07-482e-8ce4-f018dff16c89", + "volume_size": 10, + "volume_type": "" + } + ], + "config_drive": null, + "created": "2023-12-18 15:02:24 +0000 UTC", + "flavor_id": "18", + "flavor_name": "m1.xxl", + "floating_ip": null, + "force_delete": false, + "id": "62120426-24c8-4db4-bc46-f4cdea1408d1", + "image_id": "Attempt to boot from volume - no image supplied", + "image_name": null, + "key_pair": "Giancarlo Panichi", + "metadata": null, + "name": "dataminer2-proto-1804", + "network": [ + { + "access_network": false, + "fixed_ip_v4": "10.1.41.101", + "fixed_ip_v6": "", + "floating_ip": "", + "mac": "fa:16:3e:a1:62:fc", + "name": "d4s-production-cloud-main", + "port": "", + "uuid": "020df98d-ae72-452a-b376-3b6dc289acac" + }, + { + "access_network": false, + "fixed_ip_v4": "192.168.2.115", + "fixed_ip_v6": "", + "floating_ip": "", + "mac": "fa:16:3e:61:2f:75", + "name": "postgresql-srv-net", + "port": "", + "uuid": "f6450bc8-1345-4b52-8f34-2903c0cca7f8" + } + ], + "network_mode": null, + "personality": [], + "power_state": "active", + "region": "isti_area_pi_1", + "scheduler_hints": [], + "security_groups": [ + "default_for_all", + "traffic_from_the_main_load_balancers" + ], + "stop_before_destroy": false, + "tags": null, + "timeouts": null, + "updated": "2023-12-18 15:03:08 +0000 UTC", + "user_data": "47d4769e61324c305c4b70ed6673de4fad84150d", + "vendor_options": [], + "volume": [] + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwMH19", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router" + ] + }, + { + "index_key": "dataminer_3_gw_proto_1804", + "schema_version": 0, + "attributes": { + "access_ip_v4": "10.1.43.178", + "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": "7ed6a2cd-2b07-482e-8ce4-f018dff16c89", + "volume_size": 10, + "volume_type": "" + } + ], + "config_drive": null, + "created": "2023-12-18 15:01:20 +0000 UTC", + "flavor_id": "13", + "flavor_name": "c2.large", + "floating_ip": null, + "force_delete": false, + "id": "a4685256-ff8d-445c-a5ce-14eb3e0cfa91", + "image_id": "Attempt to boot from volume - no image supplied", + "image_name": null, + "key_pair": "Giancarlo Panichi", + "metadata": null, + "name": "dataminer3-gw-proto-1804", + "network": [ + { + "access_network": false, + "fixed_ip_v4": "10.1.43.178", + "fixed_ip_v6": "", + "floating_ip": "", + "mac": "fa:16:3e:a6:ef:9a", + "name": "d4s-production-cloud-main", + "port": "", + "uuid": "020df98d-ae72-452a-b376-3b6dc289acac" + }, + { + "access_network": false, + "fixed_ip_v4": "192.168.3.174", + "fixed_ip_v6": "", + "floating_ip": "", + "mac": "fa:16:3e:0a:96:68", + "name": "postgresql-srv-net", + "port": "", + "uuid": "f6450bc8-1345-4b52-8f34-2903c0cca7f8" + } + ], + "network_mode": null, + "personality": [], + "power_state": "active", + "region": "isti_area_pi_1", + "scheduler_hints": [], + "security_groups": [ + "default_for_all", + "traffic_from_the_main_load_balancers" + ], + "stop_before_destroy": false, + "tags": null, + "timeouts": null, + "updated": "2023-12-18 15:03:19 +0000 UTC", + "user_data": "47d4769e61324c305c4b70ed6673de4fad84150d", + "vendor_options": [], + "volume": [] + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwMH19", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router" + ] + }, + { + "index_key": "dataminer_3_proto_1804", + "schema_version": 0, + "attributes": { + "access_ip_v4": "10.1.41.159", + "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": "7ed6a2cd-2b07-482e-8ce4-f018dff16c89", + "volume_size": 10, + "volume_type": "" + } + ], + "config_drive": null, + "created": "2023-12-18 15:01:19 +0000 UTC", + "flavor_id": "18", + "flavor_name": "m1.xxl", + "floating_ip": null, + "force_delete": false, + "id": "4069c9ad-bbb1-4c76-ac18-4ead87c691b3", + "image_id": "Attempt to boot from volume - no image supplied", + "image_name": null, + "key_pair": "Giancarlo Panichi", + "metadata": null, + "name": "dataminer3-proto-1804", + "network": [ + { + "access_network": false, + "fixed_ip_v4": "10.1.41.159", + "fixed_ip_v6": "", + "floating_ip": "", + "mac": "fa:16:3e:d7:6a:44", + "name": "d4s-production-cloud-main", + "port": "", + "uuid": "020df98d-ae72-452a-b376-3b6dc289acac" + }, + { + "access_network": false, + "fixed_ip_v4": "192.168.1.93", + "fixed_ip_v6": "", + "floating_ip": "", + "mac": "fa:16:3e:e6:a1:52", + "name": "postgresql-srv-net", + "port": "", + "uuid": "f6450bc8-1345-4b52-8f34-2903c0cca7f8" + } + ], + "network_mode": null, + "personality": [], + "power_state": "active", + "region": "isti_area_pi_1", + "scheduler_hints": [], + "security_groups": [ + "default_for_all", + "traffic_from_the_main_load_balancers" + ], + "stop_before_destroy": false, + "tags": null, + "timeouts": null, + "updated": "2023-12-18 15:03:23 +0000 UTC", + "user_data": "47d4769e61324c305c4b70ed6673de4fad84150d", + "vendor_options": [], + "volume": [] + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwMH19", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router" + ] + }, + { + "index_key": "dataminer_4_gw_proto_1804", + "schema_version": 0, + "attributes": { + "access_ip_v4": "10.1.43.246", + "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": "7ed6a2cd-2b07-482e-8ce4-f018dff16c89", + "volume_size": 10, + "volume_type": "" + } + ], + "config_drive": null, + "created": "2023-12-18 15:01:19 +0000 UTC", + "flavor_id": "13", + "flavor_name": "c2.large", + "floating_ip": null, + "force_delete": false, + "id": "12d2ed0c-77cf-414b-90ea-eb020c74ad61", + "image_id": "Attempt to boot from volume - no image supplied", + "image_name": null, + "key_pair": "Giancarlo Panichi", + "metadata": null, + "name": "dataminer4-gw-proto-1804", + "network": [ + { + "access_network": false, + "fixed_ip_v4": "10.1.43.246", + "fixed_ip_v6": "", + "floating_ip": "", + "mac": "fa:16:3e:c6:ab:4b", + "name": "d4s-production-cloud-main", + "port": "", + "uuid": "020df98d-ae72-452a-b376-3b6dc289acac" + }, + { + "access_network": false, + "fixed_ip_v4": "192.168.0.223", + "fixed_ip_v6": "", + "floating_ip": "", + "mac": "fa:16:3e:d0:fb:17", + "name": "postgresql-srv-net", + "port": "", + "uuid": "f6450bc8-1345-4b52-8f34-2903c0cca7f8" + } + ], + "network_mode": null, + "personality": [], + "power_state": "active", + "region": "isti_area_pi_1", + "scheduler_hints": [], + "security_groups": [ + "default_for_all", + "traffic_from_the_main_load_balancers" + ], + "stop_before_destroy": false, + "tags": null, + "timeouts": null, + "updated": "2023-12-18 15:02:09 +0000 UTC", + "user_data": "47d4769e61324c305c4b70ed6673de4fad84150d", + "vendor_options": [], + "volume": [] + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwMH19", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router" + ] + }, + { + "index_key": "dataminer_4_proto_1804", + "schema_version": 0, + "attributes": { + "access_ip_v4": "10.1.42.192", + "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": "7ed6a2cd-2b07-482e-8ce4-f018dff16c89", + "volume_size": 10, + "volume_type": "" + } + ], + "config_drive": null, + "created": "2023-12-18 15:02:57 +0000 UTC", + "flavor_id": "18", + "flavor_name": "m1.xxl", + "floating_ip": null, + "force_delete": false, + "id": "b465a41b-bacc-4847-8cb4-c010c1ac488c", + "image_id": "Attempt to boot from volume - no image supplied", + "image_name": null, + "key_pair": "Giancarlo Panichi", + "metadata": null, + "name": "dataminer4-proto-1804", + "network": [ + { + "access_network": false, + "fixed_ip_v4": "10.1.42.192", + "fixed_ip_v6": "", + "floating_ip": "", + "mac": "fa:16:3e:f5:31:b9", + "name": "d4s-production-cloud-main", + "port": "", + "uuid": "020df98d-ae72-452a-b376-3b6dc289acac" + }, + { + "access_network": false, + "fixed_ip_v4": "192.168.3.24", + "fixed_ip_v6": "", + "floating_ip": "", + "mac": "fa:16:3e:d1:d6:c9", + "name": "postgresql-srv-net", + "port": "", + "uuid": "f6450bc8-1345-4b52-8f34-2903c0cca7f8" + } + ], + "network_mode": null, + "personality": [], + "power_state": "active", + "region": "isti_area_pi_1", + "scheduler_hints": [], + "security_groups": [ + "default_for_all", + "traffic_from_the_main_load_balancers" + ], + "stop_before_destroy": false, + "tags": null, + "timeouts": null, + "updated": "2023-12-18 15:03:33 +0000 UTC", + "user_data": "47d4769e61324c305c4b70ed6673de4fad84150d", + "vendor_options": [], + "volume": [] + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwMH19", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router" + ] + }, + { + "index_key": "dataminer_5_gw_proto_1804", + "schema_version": 0, + "attributes": { + "access_ip_v4": "10.1.44.70", + "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": "7ed6a2cd-2b07-482e-8ce4-f018dff16c89", + "volume_size": 10, + "volume_type": "" + } + ], + "config_drive": null, + "created": "2023-12-18 15:01:30 +0000 UTC", + "flavor_id": "13", + "flavor_name": "c2.large", + "floating_ip": null, + "force_delete": false, + "id": "f781c324-dc2a-40d0-84a6-69f70b9ab8d0", + "image_id": "Attempt to boot from volume - no image supplied", + "image_name": null, + "key_pair": "Giancarlo Panichi", + "metadata": null, + "name": "dataminer5-gw-proto-1804", + "network": [ + { + "access_network": false, + "fixed_ip_v4": "10.1.44.70", + "fixed_ip_v6": "", + "floating_ip": "", + "mac": "fa:16:3e:48:e4:f7", + "name": "d4s-production-cloud-main", + "port": "", + "uuid": "020df98d-ae72-452a-b376-3b6dc289acac" + }, + { + "access_network": false, + "fixed_ip_v4": "192.168.0.171", + "fixed_ip_v6": "", + "floating_ip": "", + "mac": "fa:16:3e:4a:11:a6", + "name": "postgresql-srv-net", + "port": "", + "uuid": "f6450bc8-1345-4b52-8f34-2903c0cca7f8" + } + ], + "network_mode": null, + "personality": [], + "power_state": "active", + "region": "isti_area_pi_1", + "scheduler_hints": [], + "security_groups": [ + "default_for_all", + "traffic_from_the_main_load_balancers" + ], + "stop_before_destroy": false, + "tags": null, + "timeouts": null, + "updated": "2023-12-18 15:02:23 +0000 UTC", + "user_data": "47d4769e61324c305c4b70ed6673de4fad84150d", + "vendor_options": [], + "volume": [] + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwMH19", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router" + ] + }, + { + "index_key": "dataminer_5_proto_1804", + "schema_version": 0, + "attributes": { + "access_ip_v4": "10.1.44.199", + "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": "7ed6a2cd-2b07-482e-8ce4-f018dff16c89", + "volume_size": 10, + "volume_type": "" + } + ], + "config_drive": null, + "created": "2023-12-18 15:01:19 +0000 UTC", + "flavor_id": "18", + "flavor_name": "m1.xxl", + "floating_ip": null, + "force_delete": false, + "id": "dcf157b9-7407-46da-9127-a64f092aa861", + "image_id": "Attempt to boot from volume - no image supplied", + "image_name": null, + "key_pair": "Giancarlo Panichi", + "metadata": null, + "name": "dataminer5-proto-1804", + "network": [ + { + "access_network": false, + "fixed_ip_v4": "10.1.44.199", + "fixed_ip_v6": "", + "floating_ip": "", + "mac": "fa:16:3e:55:4f:e4", + "name": "d4s-production-cloud-main", + "port": "", + "uuid": "020df98d-ae72-452a-b376-3b6dc289acac" + }, + { + "access_network": false, + "fixed_ip_v4": "192.168.0.143", + "fixed_ip_v6": "", + "floating_ip": "", + "mac": "fa:16:3e:29:86:e4", + "name": "postgresql-srv-net", + "port": "", + "uuid": "f6450bc8-1345-4b52-8f34-2903c0cca7f8" + } + ], + "network_mode": null, + "personality": [], + "power_state": "active", + "region": "isti_area_pi_1", + "scheduler_hints": [], + "security_groups": [ + "default_for_all", + "traffic_from_the_main_load_balancers" + ], + "stop_before_destroy": false, + "tags": null, + "timeouts": null, + "updated": "2023-12-18 15:02:21 +0000 UTC", + "user_data": "47d4769e61324c305c4b70ed6673de4fad84150d", + "vendor_options": [], + "volume": [] + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwMH19", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router" + ] + }, + { + "index_key": "dataminer_6_proto_1804", + "schema_version": 0, + "attributes": { + "access_ip_v4": "10.1.42.65", + "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": "7ed6a2cd-2b07-482e-8ce4-f018dff16c89", + "volume_size": 10, + "volume_type": "" + } + ], + "config_drive": null, + "created": "2023-12-18 15:01:19 +0000 UTC", + "flavor_id": "18", + "flavor_name": "m1.xxl", + "floating_ip": null, + "force_delete": false, + "id": "56b3bcb6-0eea-4d36-bd2e-9e69cac08062", + "image_id": "Attempt to boot from volume - no image supplied", + "image_name": null, + "key_pair": "Giancarlo Panichi", + "metadata": null, + "name": "dataminer6-proto-1804", + "network": [ + { + "access_network": false, + "fixed_ip_v4": "10.1.42.65", + "fixed_ip_v6": "", + "floating_ip": "", + "mac": "fa:16:3e:8b:bf:65", + "name": "d4s-production-cloud-main", + "port": "", + "uuid": "020df98d-ae72-452a-b376-3b6dc289acac" + }, + { + "access_network": false, + "fixed_ip_v4": "192.168.3.78", + "fixed_ip_v6": "", + "floating_ip": "", + "mac": "fa:16:3e:44:b7:e0", + "name": "postgresql-srv-net", + "port": "", + "uuid": "f6450bc8-1345-4b52-8f34-2903c0cca7f8" + } + ], + "network_mode": null, + "personality": [], + "power_state": "active", + "region": "isti_area_pi_1", + "scheduler_hints": [], + "security_groups": [ + "default_for_all", + "traffic_from_the_main_load_balancers" + ], + "stop_before_destroy": false, + "tags": null, + "timeouts": null, + "updated": "2023-12-18 15:02:23 +0000 UTC", + "user_data": "47d4769e61324c305c4b70ed6673de4fad84150d", + "vendor_options": [], + "volume": [] + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwMH19", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router" + ] + }, + { + "index_key": "dataminer_7_proto_1804", + "schema_version": 0, + "attributes": { + "access_ip_v4": "10.1.42.90", + "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": "7ed6a2cd-2b07-482e-8ce4-f018dff16c89", + "volume_size": 10, + "volume_type": "" + } + ], + "config_drive": null, + "created": "2023-12-18 15:01:20 +0000 UTC", + "flavor_id": "18", + "flavor_name": "m1.xxl", + "floating_ip": null, + "force_delete": false, + "id": "202628fb-fd94-448c-8c23-eeb1d3888a19", + "image_id": "Attempt to boot from volume - no image supplied", + "image_name": null, + "key_pair": "Giancarlo Panichi", + "metadata": null, + "name": "dataminer7-proto-1804", + "network": [ + { + "access_network": false, + "fixed_ip_v4": "10.1.42.90", + "fixed_ip_v6": "", + "floating_ip": "", + "mac": "fa:16:3e:23:8a:66", + "name": "d4s-production-cloud-main", + "port": "", + "uuid": "020df98d-ae72-452a-b376-3b6dc289acac" + }, + { + "access_network": false, + "fixed_ip_v4": "192.168.2.179", + "fixed_ip_v6": "", + "floating_ip": "", + "mac": "fa:16:3e:77:23:88", + "name": "postgresql-srv-net", + "port": "", + "uuid": "f6450bc8-1345-4b52-8f34-2903c0cca7f8" + } + ], + "network_mode": null, + "personality": [], + "power_state": "active", + "region": "isti_area_pi_1", + "scheduler_hints": [], + "security_groups": [ + "default_for_all", + "traffic_from_the_main_load_balancers" + ], + "stop_before_destroy": false, + "tags": null, + "timeouts": null, + "updated": "2023-12-18 15:03:30 +0000 UTC", + "user_data": "47d4769e61324c305c4b70ed6673de4fad84150d", + "vendor_options": [], + "volume": [] + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwMH19", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router" + ] + }, + { + "index_key": "dataminer_8_proto_1804", + "schema_version": 0, + "attributes": { + "access_ip_v4": "10.1.44.167", + "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": "7ed6a2cd-2b07-482e-8ce4-f018dff16c89", + "volume_size": 10, + "volume_type": "" + } + ], + "config_drive": null, + "created": "2023-12-18 15:01:19 +0000 UTC", + "flavor_id": "18", + "flavor_name": "m1.xxl", + "floating_ip": null, + "force_delete": false, + "id": "e2d69bd9-5242-4a63-8e40-797054b4234b", + "image_id": "Attempt to boot from volume - no image supplied", + "image_name": null, + "key_pair": "Giancarlo Panichi", + "metadata": null, + "name": "dataminer8-proto-1804", + "network": [ + { + "access_network": false, + "fixed_ip_v4": "10.1.44.167", + "fixed_ip_v6": "", + "floating_ip": "", + "mac": "fa:16:3e:af:8c:14", + "name": "d4s-production-cloud-main", + "port": "", + "uuid": "020df98d-ae72-452a-b376-3b6dc289acac" + }, + { + "access_network": false, + "fixed_ip_v4": "192.168.2.202", + "fixed_ip_v6": "", + "floating_ip": "", + "mac": "fa:16:3e:78:0a:d0", + "name": "postgresql-srv-net", + "port": "", + "uuid": "f6450bc8-1345-4b52-8f34-2903c0cca7f8" + } + ], + "network_mode": null, + "personality": [], + "power_state": "active", + "region": "isti_area_pi_1", + "scheduler_hints": [], + "security_groups": [ + "default_for_all", + "traffic_from_the_main_load_balancers" + ], + "stop_before_destroy": false, + "tags": null, + "timeouts": null, + "updated": "2023-12-18 15:03:19 +0000 UTC", + "user_data": "47d4769e61324c305c4b70ed6673de4fad84150d", + "vendor_options": [], + "volume": [] + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwMH19", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router" + ] + }, + { + "index_key": "dataminer_proto_ghost", + "schema_version": 0, + "attributes": { + "access_ip_v4": "10.1.43.105", + "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": "7ed6a2cd-2b07-482e-8ce4-f018dff16c89", + "volume_size": 10, + "volume_type": "" + } + ], + "config_drive": null, + "created": "2023-12-18 15:01:22 +0000 UTC", + "flavor_id": "9", + "flavor_name": "m1.large", + "floating_ip": null, + "force_delete": false, + "id": "841e505c-19e7-4d84-9944-e5a02727d4bd", + "image_id": "Attempt to boot from volume - no image supplied", + "image_name": null, + "key_pair": "Giancarlo Panichi", + "metadata": null, + "name": "dataminer-proto-ghost", + "network": [ + { + "access_network": false, + "fixed_ip_v4": "10.1.43.105", + "fixed_ip_v6": "", + "floating_ip": "", + "mac": "fa:16:3e:2a:67:57", + "name": "d4s-production-cloud-main", + "port": "", + "uuid": "020df98d-ae72-452a-b376-3b6dc289acac" + }, + { + "access_network": false, + "fixed_ip_v4": "192.168.1.214", + "fixed_ip_v6": "", + "floating_ip": "", + "mac": "fa:16:3e:68:83:aa", + "name": "postgresql-srv-net", + "port": "", + "uuid": "f6450bc8-1345-4b52-8f34-2903c0cca7f8" + } + ], + "network_mode": null, + "personality": [], + "power_state": "active", + "region": "isti_area_pi_1", + "scheduler_hints": [], + "security_groups": [ + "default_for_all", + "traffic_from_the_main_load_balancers" + ], + "stop_before_destroy": false, + "tags": null, + "timeouts": null, + "updated": "2023-12-18 15:02:19 +0000 UTC", + "user_data": "47d4769e61324c305c4b70ed6673de4fad84150d", + "vendor_options": [], + "volume": [] + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwMH19", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router" + ] + }, + { + "index_key": "dm_pool_manager_proto", + "schema_version": 0, + "attributes": { + "access_ip_v4": "10.1.43.86", + "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": "7ed6a2cd-2b07-482e-8ce4-f018dff16c89", + "volume_size": 10, + "volume_type": "" + } + ], + "config_drive": null, + "created": "2023-12-18 15:02:13 +0000 UTC", + "flavor_id": "9", + "flavor_name": "m1.large", + "floating_ip": null, + "force_delete": false, + "id": "64bb8cd6-3a93-42c5-9f3a-525114bc5394", + "image_id": "Attempt to boot from volume - no image supplied", + "image_name": null, + "key_pair": "Giancarlo Panichi", + "metadata": null, + "name": "dm-pool-manager-proto", + "network": [ + { + "access_network": false, + "fixed_ip_v4": "10.1.43.86", + "fixed_ip_v6": "", + "floating_ip": "", + "mac": "fa:16:3e:43:0a:27", + "name": "d4s-production-cloud-main", + "port": "", + "uuid": "020df98d-ae72-452a-b376-3b6dc289acac" + }, + { + "access_network": false, + "fixed_ip_v4": "192.168.0.218", + "fixed_ip_v6": "", + "floating_ip": "", + "mac": "fa:16:3e:f7:67:92", + "name": "postgresql-srv-net", + "port": "", + "uuid": "f6450bc8-1345-4b52-8f34-2903c0cca7f8" + } + ], + "network_mode": null, + "personality": [], + "power_state": "active", + "region": "isti_area_pi_1", + "scheduler_hints": [], + "security_groups": [ + "default_for_all", + "traffic_from_the_main_load_balancers" + ], + "stop_before_destroy": false, + "tags": null, + "timeouts": null, + "updated": "2023-12-18 15:02:59 +0000 UTC", + "user_data": "47d4769e61324c305c4b70ed6673de4fad84150d", + "vendor_options": [], + "volume": [] + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwMH19", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router" + ] + } + ] + }, + { + "module": "module.instance_with_data_volume", + "mode": "managed", + "type": "openstack_compute_volume_attach_v2", + "name": "attach_volume", + "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", + "instances": [ + { + "index_key": "dataminer_1_proto_1804", + "schema_version": 0, + "attributes": { + "device": "/dev/vdb", + "id": "bf35cfcd-403e-4282-b00f-a5e3fb4b7ffd/ef02b882-2c0d-4811-8677-52e9c4942a9e", + "instance_id": "bf35cfcd-403e-4282-b00f-a5e3fb4b7ffd", + "multiattach": null, + "region": "isti_area_pi_1", + "timeouts": null, + "vendor_options": [], + "volume_id": "ef02b882-2c0d-4811-8677-52e9c4942a9e" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router", + "module.instance_with_data_volume.openstack_blockstorage_volume_v3.instance_data_volume", + "module.instance_with_data_volume.openstack_compute_instance_v2.instance_with_data_volume" + ] + }, + { + "index_key": "dataminer_2_gw_proto_1804", + "schema_version": 0, + "attributes": { + "device": "/dev/vdb", + "id": "70a3409e-9cbd-40eb-a4ab-90e2b0b81590/dad535de-9141-428d-8499-90c3641a2b15", + "instance_id": "70a3409e-9cbd-40eb-a4ab-90e2b0b81590", + "multiattach": null, + "region": "isti_area_pi_1", + "timeouts": null, + "vendor_options": [], + "volume_id": "dad535de-9141-428d-8499-90c3641a2b15" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router", + "module.instance_with_data_volume.openstack_blockstorage_volume_v3.instance_data_volume", + "module.instance_with_data_volume.openstack_compute_instance_v2.instance_with_data_volume" + ] + }, + { + "index_key": "dataminer_2_proto_1804", + "schema_version": 0, + "attributes": { + "device": "/dev/vdb", + "id": "62120426-24c8-4db4-bc46-f4cdea1408d1/8c4863d4-840f-4434-b53d-908d6d5448ca", + "instance_id": "62120426-24c8-4db4-bc46-f4cdea1408d1", + "multiattach": null, + "region": "isti_area_pi_1", + "timeouts": null, + "vendor_options": [], + "volume_id": "8c4863d4-840f-4434-b53d-908d6d5448ca" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router", + "module.instance_with_data_volume.openstack_blockstorage_volume_v3.instance_data_volume", + "module.instance_with_data_volume.openstack_compute_instance_v2.instance_with_data_volume" + ] + }, + { + "index_key": "dataminer_3_gw_proto_1804", + "schema_version": 0, + "attributes": { + "device": "/dev/vdb", + "id": "a4685256-ff8d-445c-a5ce-14eb3e0cfa91/1d9f7435-1a94-417f-8383-19b2c99c282f", + "instance_id": "a4685256-ff8d-445c-a5ce-14eb3e0cfa91", + "multiattach": null, + "region": "isti_area_pi_1", + "timeouts": null, + "vendor_options": [], + "volume_id": "1d9f7435-1a94-417f-8383-19b2c99c282f" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router", + "module.instance_with_data_volume.openstack_blockstorage_volume_v3.instance_data_volume", + "module.instance_with_data_volume.openstack_compute_instance_v2.instance_with_data_volume" + ] + }, + { + "index_key": "dataminer_3_proto_1804", + "schema_version": 0, + "attributes": { + "device": "/dev/vdb", + "id": "4069c9ad-bbb1-4c76-ac18-4ead87c691b3/f4b3be97-4879-4268-8247-28909acfb14c", + "instance_id": "4069c9ad-bbb1-4c76-ac18-4ead87c691b3", + "multiattach": null, + "region": "isti_area_pi_1", + "timeouts": null, + "vendor_options": [], + "volume_id": "f4b3be97-4879-4268-8247-28909acfb14c" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router", + "module.instance_with_data_volume.openstack_blockstorage_volume_v3.instance_data_volume", + "module.instance_with_data_volume.openstack_compute_instance_v2.instance_with_data_volume" + ] + }, + { + "index_key": "dataminer_4_gw_proto_1804", + "schema_version": 0, + "attributes": { + "device": "/dev/vdb", + "id": "12d2ed0c-77cf-414b-90ea-eb020c74ad61/7c89af02-e3ff-4a8a-a0a3-4dbeb5ad87a4", + "instance_id": "12d2ed0c-77cf-414b-90ea-eb020c74ad61", + "multiattach": null, + "region": "isti_area_pi_1", + "timeouts": null, + "vendor_options": [], + "volume_id": "7c89af02-e3ff-4a8a-a0a3-4dbeb5ad87a4" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router", + "module.instance_with_data_volume.openstack_blockstorage_volume_v3.instance_data_volume", + "module.instance_with_data_volume.openstack_compute_instance_v2.instance_with_data_volume" + ] + }, + { + "index_key": "dataminer_4_proto_1804", + "schema_version": 0, + "attributes": { + "device": "/dev/vdb", + "id": "b465a41b-bacc-4847-8cb4-c010c1ac488c/16bb28f0-7186-4c44-9d4a-d5a0e23eaf38", + "instance_id": "b465a41b-bacc-4847-8cb4-c010c1ac488c", + "multiattach": null, + "region": "isti_area_pi_1", + "timeouts": null, + "vendor_options": [], + "volume_id": "16bb28f0-7186-4c44-9d4a-d5a0e23eaf38" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router", + "module.instance_with_data_volume.openstack_blockstorage_volume_v3.instance_data_volume", + "module.instance_with_data_volume.openstack_compute_instance_v2.instance_with_data_volume" + ] + }, + { + "index_key": "dataminer_5_gw_proto_1804", + "schema_version": 0, + "attributes": { + "device": "/dev/vdb", + "id": "f781c324-dc2a-40d0-84a6-69f70b9ab8d0/091ac4a5-d02d-4478-917c-437e8805dd88", + "instance_id": "f781c324-dc2a-40d0-84a6-69f70b9ab8d0", + "multiattach": null, + "region": "isti_area_pi_1", + "timeouts": null, + "vendor_options": [], + "volume_id": "091ac4a5-d02d-4478-917c-437e8805dd88" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router", + "module.instance_with_data_volume.openstack_blockstorage_volume_v3.instance_data_volume", + "module.instance_with_data_volume.openstack_compute_instance_v2.instance_with_data_volume" + ] + }, + { + "index_key": "dataminer_5_proto_1804", + "schema_version": 0, + "attributes": { + "device": "/dev/vdb", + "id": "dcf157b9-7407-46da-9127-a64f092aa861/816321d7-1608-4443-b211-721579f46190", + "instance_id": "dcf157b9-7407-46da-9127-a64f092aa861", + "multiattach": null, + "region": "isti_area_pi_1", + "timeouts": null, + "vendor_options": [], + "volume_id": "816321d7-1608-4443-b211-721579f46190" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router", + "module.instance_with_data_volume.openstack_blockstorage_volume_v3.instance_data_volume", + "module.instance_with_data_volume.openstack_compute_instance_v2.instance_with_data_volume" + ] + }, + { + "index_key": "dataminer_6_proto_1804", + "schema_version": 0, + "attributes": { + "device": "/dev/vdb", + "id": "56b3bcb6-0eea-4d36-bd2e-9e69cac08062/c229fc5c-8d43-4305-8380-21f6f7c55716", + "instance_id": "56b3bcb6-0eea-4d36-bd2e-9e69cac08062", + "multiattach": null, + "region": "isti_area_pi_1", + "timeouts": null, + "vendor_options": [], + "volume_id": "c229fc5c-8d43-4305-8380-21f6f7c55716" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router", + "module.instance_with_data_volume.openstack_blockstorage_volume_v3.instance_data_volume", + "module.instance_with_data_volume.openstack_compute_instance_v2.instance_with_data_volume" + ] + }, + { + "index_key": "dataminer_7_proto_1804", + "schema_version": 0, + "attributes": { + "device": "/dev/vdb", + "id": "202628fb-fd94-448c-8c23-eeb1d3888a19/f1f9a46f-7275-4a1e-a272-6dc587ed3d68", + "instance_id": "202628fb-fd94-448c-8c23-eeb1d3888a19", + "multiattach": null, + "region": "isti_area_pi_1", + "timeouts": null, + "vendor_options": [], + "volume_id": "f1f9a46f-7275-4a1e-a272-6dc587ed3d68" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router", + "module.instance_with_data_volume.openstack_blockstorage_volume_v3.instance_data_volume", + "module.instance_with_data_volume.openstack_compute_instance_v2.instance_with_data_volume" + ] + }, + { + "index_key": "dataminer_8_proto_1804", + "schema_version": 0, + "attributes": { + "device": "/dev/vdb", + "id": "e2d69bd9-5242-4a63-8e40-797054b4234b/79fdc75f-4aee-4788-a13f-29b02c2b1416", + "instance_id": "e2d69bd9-5242-4a63-8e40-797054b4234b", + "multiattach": null, + "region": "isti_area_pi_1", + "timeouts": null, + "vendor_options": [], + "volume_id": "79fdc75f-4aee-4788-a13f-29b02c2b1416" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router", + "module.instance_with_data_volume.openstack_blockstorage_volume_v3.instance_data_volume", + "module.instance_with_data_volume.openstack_compute_instance_v2.instance_with_data_volume" + ] + }, + { + "index_key": "dataminer_proto_ghost", + "schema_version": 0, + "attributes": { + "device": "/dev/vdb", + "id": "841e505c-19e7-4d84-9944-e5a02727d4bd/8684b11a-a416-4485-8306-4fba2cecf350", + "instance_id": "841e505c-19e7-4d84-9944-e5a02727d4bd", + "multiattach": null, + "region": "isti_area_pi_1", + "timeouts": null, + "vendor_options": [], + "volume_id": "8684b11a-a416-4485-8306-4fba2cecf350" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router", + "module.instance_with_data_volume.openstack_blockstorage_volume_v3.instance_data_volume", + "module.instance_with_data_volume.openstack_compute_instance_v2.instance_with_data_volume" + ] + }, + { + "index_key": "dm_pool_manager_proto", + "schema_version": 0, + "attributes": { + "device": "/dev/vdb", + "id": "64bb8cd6-3a93-42c5-9f3a-525114bc5394/20622ba0-bdaa-4e2e-9312-c9bccdeb1564", + "instance_id": "64bb8cd6-3a93-42c5-9f3a-525114bc5394", + "multiattach": null, + "region": "isti_area_pi_1", + "timeouts": null, + "vendor_options": [], + "volume_id": "20622ba0-bdaa-4e2e-9312-c9bccdeb1564" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwfX0=", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router", + "module.instance_with_data_volume.openstack_blockstorage_volume_v3.instance_data_volume", + "module.instance_with_data_volume.openstack_compute_instance_v2.instance_with_data_volume" + ] + } + ] + } + ], + "check_results": null +} diff --git a/openstack-tf/d4s-production/gcat/terraform.tfstate b/openstack-tf/d4s-production/gcat/terraform.tfstate new file mode 100644 index 0000000..d14b554 --- /dev/null +++ b/openstack-tf/d4s-production/gcat/terraform.tfstate @@ -0,0 +1,597 @@ +{ + "version": 4, + "terraform_version": "1.6.4", + "serial": 4, + "lineage": "8d580549-7b25-87f3-9b33-e5047c125c80", + "outputs": {}, + "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.40.4", + "ca_cidr": "10.1.40.4/32", + "haproxy_l7_1": "10.1.40.11", + "haproxy_l7_1_cidr": "10.1.40.11/32", + "haproxy_l7_2": "10.1.40.12", + "haproxy_l7_2_cidr": "10.1.40.12/32", + "octavia_main": "10.1.40.20", + "octavia_main_cidr": "10.1.40.20/32", + "prometheus": "10.1.40.10", + "prometheus_cidr": "10.1.40.10/32", + "ssh_jump": "10.1.40.5", + "ssh_jump_cidr": "10.1.40.5/32" + }, + "centos_7": { + "name": "CentOS-7", + "uuid": "f0187a99-64f6-462a-ab5f-ef52fe62f2ca" + }, + "default_security_group_name": "default_for_all", + "dns_zone": { + "description": "DNS primary zone for the d4s-production-cloud project", + "email": "postmaster@isti.cnr.it", + "ttl": "8600", + "zone_name": "cloud.d4science.org." + }, + "dns_zone_id": "74135b34-1a9c-4c01-8cf0-22450a5660c4", + "el7_data_file": "../../openstack_vm_data_scripts/el7.sh", + "external_gateway_ip": [ + { + "ip_address": "146.48.31.57", + "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 Production main router", + "id": "cc26064a-bb08-4c0b-929f-d0cb39f934a3", + "name": "d4s-production-cloud-external-router" + }, + "flavor_list": { + "c1_large": "c1.large", + "c1_medium": "c1.medium", + "c1_small": "c1.small", + "m1_large": "m1.large", + "m1_medium": "m1.medium", + "m1_xlarge": "m1.xlarge", + "m2_large": "m2.large", + "m2_medium": "m2.medium", + "m2_small": "m2.small" + }, + "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.40.11", + "10.1.40.12" + ], + "main_private_network": { + "description": "D4Science Production private network (use this as the main network)", + "name": "d4s-production-cloud-main" + }, + "main_private_network_id": "020df98d-ae72-452a-b376-3b6dc289acac", + "main_private_subnet": { + "allocation_end": "10.1.47.254", + "allocation_start": "10.1.41.100", + "cidr": "10.1.40.0/21", + "description": "D4Science Production main private subnet", + "gateway_ip": "10.1.40.1", + "name": "d4s-production-cloud-main-subnet" + }, + "main_region": "isti_area_pi_1", + "main_subnet_network_id": "5d7b83ad-e058-4a3a-bfd8-d20ba6d42e1a", + "mtu_size": 8942, + "networks_list": { + "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" + }, + "octavia_information": { + "main_lb_description": "Main L4 load balancer for the D4Science production", + "main_lb_hostname": "main-lb", + "main_lb_name": "d4s-production-cloud-l4-load-balancer", + "octavia_flavor": "octavia_amphora-mvcpu-ha", + "octavia_flavor_id": "394988b5-6603-4a1e-a939-8e177c6681c7", + "swarm_lb_name": "d4s-production-cloud-l4-swarm-load-balancer" + }, + "os_project_data": { + "id": "1b45adf388934758b56d0dfdb4bfacf3" + }, + "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.122.132/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", + "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" + }, + "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" + ], + "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" + ], + "ubuntu1804_data_file": "string", + "ubuntu2204_data_file": "string", + "ubuntu_1804": [ + "map", + "string" + ], + "ubuntu_2204": [ + "map", + "string" + ] + } + ] + }, + "workspace": null + }, + "sensitive_attributes": [] + } + ] + }, + { + "mode": "managed", + "type": "openstack_compute_servergroup_v2", + "name": "gcat_server_group", + "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "id": "cbd89cbf-66b8-4cc5-a595-60ab5ce376bb", + "members": [], + "name": "gcat", + "policies": [ + "soft-anti-affinity" + ], + "region": "isti_area_pi_1", + "rules": [ + { + "max_server_per_host": 0 + } + ], + "value_specs": null + }, + "sensitive_attributes": [], + "private": "bnVsbA==" + } + ] + }, + { + "module": "module.instance_without_data_volume", + "mode": "managed", + "type": "openstack_compute_instance_v2", + "name": "smartgears_service", + "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", + "instances": [ + { + "index_key": "gcat_1", + "schema_version": 0, + "attributes": { + "access_ip_v4": "10.1.41.130", + "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": "7ed6a2cd-2b07-482e-8ce4-f018dff16c89", + "volume_size": 10, + "volume_type": "" + } + ], + "config_drive": null, + "created": "2023-12-18 14:18:54 +0000 UTC", + "flavor_id": "4", + "flavor_name": "m1.medium", + "floating_ip": null, + "force_delete": false, + "id": "fef0cfe1-d658-4547-9657-af733f6cd7e0", + "image_id": "Attempt to boot from volume - no image supplied", + "image_name": null, + "key_pair": "pc-frosini_key", + "metadata": null, + "name": "gcat-1", + "network": [ + { + "access_network": false, + "fixed_ip_v4": "10.1.41.130", + "fixed_ip_v6": "", + "floating_ip": "", + "mac": "fa:16:3e:f6:66:d3", + "name": "d4s-production-cloud-main", + "port": "", + "uuid": "020df98d-ae72-452a-b376-3b6dc289acac" + } + ], + "network_mode": null, + "personality": [], + "power_state": "active", + "region": "isti_area_pi_1", + "scheduler_hints": [ + { + "additional_properties": null, + "build_near_host_ip": "", + "different_cell": [], + "different_host": [], + "group": "cbd89cbf-66b8-4cc5-a595-60ab5ce376bb", + "query": [], + "same_host": [], + "target_cell": "" + } + ], + "security_groups": [ + "debugging_from_jump_node", + "default_for_all", + "traffic_from_the_main_load_balancers" + ], + "stop_before_destroy": false, + "tags": null, + "timeouts": null, + "updated": "2023-12-18 14:19:35 +0000 UTC", + "user_data": "ef3d6e5deb29bd1e5de5a76ae6860f3ee872738c", + "vendor_options": [], + "volume": [] + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwMH19", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router", + "openstack_compute_servergroup_v2.gcat_server_group" + ] + }, + { + "index_key": "gcat_2", + "schema_version": 0, + "attributes": { + "access_ip_v4": "10.1.41.190", + "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": "7ed6a2cd-2b07-482e-8ce4-f018dff16c89", + "volume_size": 10, + "volume_type": "" + } + ], + "config_drive": null, + "created": "2023-12-18 14:18:54 +0000 UTC", + "flavor_id": "4", + "flavor_name": "m1.medium", + "floating_ip": null, + "force_delete": false, + "id": "c6d4ccdf-98ed-4ebf-a580-0b2b7393042a", + "image_id": "Attempt to boot from volume - no image supplied", + "image_name": null, + "key_pair": "pc-frosini_key", + "metadata": null, + "name": "gcat-2", + "network": [ + { + "access_network": false, + "fixed_ip_v4": "10.1.41.190", + "fixed_ip_v6": "", + "floating_ip": "", + "mac": "fa:16:3e:f3:8a:0f", + "name": "d4s-production-cloud-main", + "port": "", + "uuid": "020df98d-ae72-452a-b376-3b6dc289acac" + } + ], + "network_mode": null, + "personality": [], + "power_state": "active", + "region": "isti_area_pi_1", + "scheduler_hints": [ + { + "additional_properties": null, + "build_near_host_ip": "", + "different_cell": [], + "different_host": [], + "group": "cbd89cbf-66b8-4cc5-a595-60ab5ce376bb", + "query": [], + "same_host": [], + "target_cell": "" + } + ], + "security_groups": [ + "debugging_from_jump_node", + "default_for_all", + "traffic_from_the_main_load_balancers" + ], + "stop_before_destroy": false, + "tags": null, + "timeouts": null, + "updated": "2023-12-18 14:19:32 +0000 UTC", + "user_data": "ef3d6e5deb29bd1e5de5a76ae6860f3ee872738c", + "vendor_options": [], + "volume": [] + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwMH19", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router", + "openstack_compute_servergroup_v2.gcat_server_group" + ] + } + ] + } + ], + "check_results": null +} diff --git a/openstack-tf/d4s-production/grsf-publisher/terraform.tfstate b/openstack-tf/d4s-production/grsf-publisher/terraform.tfstate new file mode 100644 index 0000000..67dad01 --- /dev/null +++ b/openstack-tf/d4s-production/grsf-publisher/terraform.tfstate @@ -0,0 +1,597 @@ +{ + "version": 4, + "terraform_version": "1.6.4", + "serial": 4, + "lineage": "0b64de5a-dac9-ddbd-d6e4-0be2e126b931", + "outputs": {}, + "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.40.4", + "ca_cidr": "10.1.40.4/32", + "haproxy_l7_1": "10.1.40.11", + "haproxy_l7_1_cidr": "10.1.40.11/32", + "haproxy_l7_2": "10.1.40.12", + "haproxy_l7_2_cidr": "10.1.40.12/32", + "octavia_main": "10.1.40.20", + "octavia_main_cidr": "10.1.40.20/32", + "prometheus": "10.1.40.10", + "prometheus_cidr": "10.1.40.10/32", + "ssh_jump": "10.1.40.5", + "ssh_jump_cidr": "10.1.40.5/32" + }, + "centos_7": { + "name": "CentOS-7", + "uuid": "f0187a99-64f6-462a-ab5f-ef52fe62f2ca" + }, + "default_security_group_name": "default_for_all", + "dns_zone": { + "description": "DNS primary zone for the d4s-production-cloud project", + "email": "postmaster@isti.cnr.it", + "ttl": "8600", + "zone_name": "cloud.d4science.org." + }, + "dns_zone_id": "74135b34-1a9c-4c01-8cf0-22450a5660c4", + "el7_data_file": "../../openstack_vm_data_scripts/el7.sh", + "external_gateway_ip": [ + { + "ip_address": "146.48.31.57", + "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 Production main router", + "id": "cc26064a-bb08-4c0b-929f-d0cb39f934a3", + "name": "d4s-production-cloud-external-router" + }, + "flavor_list": { + "c1_large": "c1.large", + "c1_medium": "c1.medium", + "c1_small": "c1.small", + "m1_large": "m1.large", + "m1_medium": "m1.medium", + "m1_xlarge": "m1.xlarge", + "m2_large": "m2.large", + "m2_medium": "m2.medium", + "m2_small": "m2.small" + }, + "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.40.11", + "10.1.40.12" + ], + "main_private_network": { + "description": "D4Science Production private network (use this as the main network)", + "name": "d4s-production-cloud-main" + }, + "main_private_network_id": "020df98d-ae72-452a-b376-3b6dc289acac", + "main_private_subnet": { + "allocation_end": "10.1.47.254", + "allocation_start": "10.1.41.100", + "cidr": "10.1.40.0/21", + "description": "D4Science Production main private subnet", + "gateway_ip": "10.1.40.1", + "name": "d4s-production-cloud-main-subnet" + }, + "main_region": "isti_area_pi_1", + "main_subnet_network_id": "5d7b83ad-e058-4a3a-bfd8-d20ba6d42e1a", + "mtu_size": 8942, + "networks_list": { + "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" + }, + "octavia_information": { + "main_lb_description": "Main L4 load balancer for the D4Science production", + "main_lb_hostname": "main-lb", + "main_lb_name": "d4s-production-cloud-l4-load-balancer", + "octavia_flavor": "octavia_amphora-mvcpu-ha", + "octavia_flavor_id": "394988b5-6603-4a1e-a939-8e177c6681c7", + "swarm_lb_name": "d4s-production-cloud-l4-swarm-load-balancer" + }, + "os_project_data": { + "id": "1b45adf388934758b56d0dfdb4bfacf3" + }, + "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.122.132/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", + "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" + }, + "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" + ], + "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" + ], + "ubuntu1804_data_file": "string", + "ubuntu2204_data_file": "string", + "ubuntu_1804": [ + "map", + "string" + ], + "ubuntu_2204": [ + "map", + "string" + ] + } + ] + }, + "workspace": null + }, + "sensitive_attributes": [] + } + ] + }, + { + "mode": "managed", + "type": "openstack_compute_servergroup_v2", + "name": "grsf_publisher_server_group", + "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "id": "84f36b86-904a-4f5f-8e4d-e89108e18baf", + "members": [], + "name": "grsf-publisher", + "policies": [ + "soft-anti-affinity" + ], + "region": "isti_area_pi_1", + "rules": [ + { + "max_server_per_host": 0 + } + ], + "value_specs": null + }, + "sensitive_attributes": [], + "private": "bnVsbA==" + } + ] + }, + { + "module": "module.instance_without_data_volume", + "mode": "managed", + "type": "openstack_compute_instance_v2", + "name": "smartgears_service", + "provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]", + "instances": [ + { + "index_key": "grsf_publisher_1", + "schema_version": 0, + "attributes": { + "access_ip_v4": "10.1.43.149", + "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": "7ed6a2cd-2b07-482e-8ce4-f018dff16c89", + "volume_size": 10, + "volume_type": "" + } + ], + "config_drive": null, + "created": "2023-12-18 14:22:32 +0000 UTC", + "flavor_id": "4", + "flavor_name": "m1.medium", + "floating_ip": null, + "force_delete": false, + "id": "1d0a8f11-cd09-4e37-a91f-f45bd7367179", + "image_id": "Attempt to boot from volume - no image supplied", + "image_name": null, + "key_pair": "pc-frosini_key", + "metadata": null, + "name": "grsf-publisher-1", + "network": [ + { + "access_network": false, + "fixed_ip_v4": "10.1.43.149", + "fixed_ip_v6": "", + "floating_ip": "", + "mac": "fa:16:3e:9b:2e:e7", + "name": "d4s-production-cloud-main", + "port": "", + "uuid": "020df98d-ae72-452a-b376-3b6dc289acac" + } + ], + "network_mode": null, + "personality": [], + "power_state": "active", + "region": "isti_area_pi_1", + "scheduler_hints": [ + { + "additional_properties": null, + "build_near_host_ip": "", + "different_cell": [], + "different_host": [], + "group": "84f36b86-904a-4f5f-8e4d-e89108e18baf", + "query": [], + "same_host": [], + "target_cell": "" + } + ], + "security_groups": [ + "debugging_from_jump_node", + "default_for_all", + "traffic_from_the_main_load_balancers" + ], + "stop_before_destroy": false, + "tags": null, + "timeouts": null, + "updated": "2023-12-18 14:23:14 +0000 UTC", + "user_data": "ef3d6e5deb29bd1e5de5a76ae6860f3ee872738c", + "vendor_options": [], + "volume": [] + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwMH19", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router", + "openstack_compute_servergroup_v2.grsf_publisher_server_group" + ] + }, + { + "index_key": "grsf_publisher_2", + "schema_version": 0, + "attributes": { + "access_ip_v4": "10.1.43.59", + "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": "7ed6a2cd-2b07-482e-8ce4-f018dff16c89", + "volume_size": 10, + "volume_type": "" + } + ], + "config_drive": null, + "created": "2023-12-18 14:22:33 +0000 UTC", + "flavor_id": "4", + "flavor_name": "m1.medium", + "floating_ip": null, + "force_delete": false, + "id": "325ca4aa-2ec1-4bc7-ac25-d7395b91d820", + "image_id": "Attempt to boot from volume - no image supplied", + "image_name": null, + "key_pair": "pc-frosini_key", + "metadata": null, + "name": "grsf-publisher-2", + "network": [ + { + "access_network": false, + "fixed_ip_v4": "10.1.43.59", + "fixed_ip_v6": "", + "floating_ip": "", + "mac": "fa:16:3e:cc:8c:7a", + "name": "d4s-production-cloud-main", + "port": "", + "uuid": "020df98d-ae72-452a-b376-3b6dc289acac" + } + ], + "network_mode": null, + "personality": [], + "power_state": "active", + "region": "isti_area_pi_1", + "scheduler_hints": [ + { + "additional_properties": null, + "build_near_host_ip": "", + "different_cell": [], + "different_host": [], + "group": "84f36b86-904a-4f5f-8e4d-e89108e18baf", + "query": [], + "same_host": [], + "target_cell": "" + } + ], + "security_groups": [ + "debugging_from_jump_node", + "default_for_all", + "traffic_from_the_main_load_balancers" + ], + "stop_before_destroy": false, + "tags": null, + "timeouts": null, + "updated": "2023-12-18 14:23:24 +0000 UTC", + "user_data": "ef3d6e5deb29bd1e5de5a76ae6860f3ee872738c", + "vendor_options": [], + "volume": [] + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwMH19", + "dependencies": [ + "data.terraform_remote_state.privnet_dns_router", + "openstack_compute_servergroup_v2.grsf_publisher_server_group" + ] + } + ] + } + ], + "check_results": null +} diff --git a/openstack-tf/d4s-production/resource-registry/terraform.tfstate b/openstack-tf/d4s-production/resource-registry/terraform.tfstate index 79f4d78..42567b0 100644 --- a/openstack-tf/d4s-production/resource-registry/terraform.tfstate +++ b/openstack-tf/d4s-production/resource-registry/terraform.tfstate @@ -1,7 +1,7 @@ { "version": 4, - "terraform_version": "1.6.5", - "serial": 7, + "terraform_version": "1.6.4", + "serial": 16, "lineage": "aad7c58d-7ef3-d6b0-2ab5-1110c6146633", "outputs": {}, "resources": [ @@ -184,9 +184,9 @@ "default": "default", "docker_swarm": "Docker Swarm", "docker_swarm_NFS": "Docker Swarm NFS", - "haproxy": "HAPROXY L7", - "http_and_https_from_the_load_balancers": "http and https from the load balancers", - "limited_HTTPS_access": "Limited HTTPS access", + "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", "orientdb_internal_docker_traffic": "orientdb_internal_docker_traffic", @@ -392,7 +392,7 @@ { "schema_version": 0, "attributes": { - "id": "2a9b818b-c765-4a2a-9788-b910a2e82220", + "id": "27f32093-86ae-483c-83df-d79e4beba51c", "members": [], "name": "resource-registry", "policies": [ @@ -422,7 +422,7 @@ "index_key": "resource_registry_1", "schema_version": 0, "attributes": { - "access_ip_v4": "10.1.41.124", + "access_ip_v4": "10.1.44.245", "access_ip_v6": "", "admin_pass": null, "all_metadata": {}, @@ -445,34 +445,34 @@ } ], "config_drive": null, - "created": "2023-12-13 17:20:01 +0000 UTC", + "created": "2023-12-18 15:59:02 +0000 UTC", "flavor_id": "9", "flavor_name": "m1.large", "floating_ip": null, "force_delete": false, - "id": "251f28b2-6c36-4d55-9bdf-6dd674ffca26", + "id": "e19a1f3e-3b11-4058-bfbd-986981602193", "image_id": "Attempt to boot from volume - no image supplied", "image_name": null, - "key_pair": "adellam", + "key_pair": "pc-frosini_key", "metadata": null, "name": "resource-registry-1", "network": [ { "access_network": false, - "fixed_ip_v4": "10.1.41.124", + "fixed_ip_v4": "10.1.44.245", "fixed_ip_v6": "", "floating_ip": "", - "mac": "fa:16:3e:3c:16:27", + "mac": "fa:16:3e:22:b7:31", "name": "d4s-production-cloud-main", "port": "", "uuid": "020df98d-ae72-452a-b376-3b6dc289acac" }, { "access_network": false, - "fixed_ip_v4": "192.168.10.21", + "fixed_ip_v4": "192.168.10.248", "fixed_ip_v6": "", "floating_ip": "", - "mac": "fa:16:3e:a5:c4:e1", + "mac": "fa:16:3e:67:8d:c2", "name": "orientdb-net", "port": "", "uuid": "03076154-3622-4ebd-af2c-7fdd1f5db09b" @@ -488,7 +488,7 @@ "build_near_host_ip": "", "different_cell": [], "different_host": [], - "group": "2a9b818b-c765-4a2a-9788-b910a2e82220", + "group": "27f32093-86ae-483c-83df-d79e4beba51c", "query": [], "same_host": [], "target_cell": "" @@ -502,8 +502,8 @@ "stop_before_destroy": false, "tags": null, "timeouts": null, - "updated": "2023-12-13 17:20:47 +0000 UTC", - "user_data": "47d4769e61324c305c4b70ed6673de4fad84150d", + "updated": "2023-12-18 15:59:36 +0000 UTC", + "user_data": "ef3d6e5deb29bd1e5de5a76ae6860f3ee872738c", "vendor_options": [], "volume": [] }, @@ -518,7 +518,7 @@ "index_key": "resource_registry_2", "schema_version": 0, "attributes": { - "access_ip_v4": "10.1.44.238", + "access_ip_v4": "10.1.44.197", "access_ip_v6": "", "admin_pass": null, "all_metadata": {}, @@ -541,34 +541,34 @@ } ], "config_drive": null, - "created": "2023-12-13 17:20:01 +0000 UTC", + "created": "2023-12-18 15:59:02 +0000 UTC", "flavor_id": "9", "flavor_name": "m1.large", "floating_ip": null, "force_delete": false, - "id": "3b1795b7-0b21-42a8-9b8a-9fcf32ec5e39", + "id": "ef6a55d1-7387-4c37-be47-3743c33d75b4", "image_id": "Attempt to boot from volume - no image supplied", "image_name": null, - "key_pair": "adellam", + "key_pair": "pc-frosini_key", "metadata": null, "name": "resource-registry-2", "network": [ { "access_network": false, - "fixed_ip_v4": "10.1.44.238", + "fixed_ip_v4": "10.1.44.197", "fixed_ip_v6": "", "floating_ip": "", - "mac": "fa:16:3e:0f:fd:01", + "mac": "fa:16:3e:ee:23:c8", "name": "d4s-production-cloud-main", "port": "", "uuid": "020df98d-ae72-452a-b376-3b6dc289acac" }, { "access_network": false, - "fixed_ip_v4": "192.168.10.117", + "fixed_ip_v4": "192.168.10.240", "fixed_ip_v6": "", "floating_ip": "", - "mac": "fa:16:3e:a4:7f:b7", + "mac": "fa:16:3e:8a:ad:f4", "name": "orientdb-net", "port": "", "uuid": "03076154-3622-4ebd-af2c-7fdd1f5db09b" @@ -584,7 +584,7 @@ "build_near_host_ip": "", "different_cell": [], "different_host": [], - "group": "2a9b818b-c765-4a2a-9788-b910a2e82220", + "group": "27f32093-86ae-483c-83df-d79e4beba51c", "query": [], "same_host": [], "target_cell": "" @@ -598,8 +598,8 @@ "stop_before_destroy": false, "tags": null, "timeouts": null, - "updated": "2023-12-13 17:20:44 +0000 UTC", - "user_data": "47d4769e61324c305c4b70ed6673de4fad84150d", + "updated": "2023-12-18 15:59:43 +0000 UTC", + "user_data": "ef3d6e5deb29bd1e5de5a76ae6860f3ee872738c", "vendor_options": [], "volume": [] }, diff --git a/openstack-tf/d4s-production/smart-executor/main.tf b/openstack-tf/d4s-production/smart-executor/main.tf index d60244b..a612d8a 100644 --- a/openstack-tf/d4s-production/smart-executor/main.tf +++ b/openstack-tf/d4s-production/smart-executor/main.tf @@ -91,7 +91,7 @@ module "instance_without_data_volume" { resource_checker_se_plugin = { name = "resource-checker-se-plugin", description = "This instance serves smart-executor service with resource-checker-se-plugin", - flavor = module.common_variables.flavor_list.c1_small, + flavor = module.common_variables.flavor_list.m1_medium, networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, module.common_variables.networks_list.orientdb_se], security_groups = [data.terraform_remote_state.privnet_dns_router.outputs.default_security_group_name, data.terraform_remote_state.privnet_dns_router.outputs.security_group_list.http_and_https_from_the_load_balancers, data.terraform_remote_state.privnet_dns_router.outputs.security_group_list.debugging_from_jump_node], server_groups_ids = [openstack_compute_servergroup_v2.resource_checker_server_group.id], @@ -101,7 +101,7 @@ module "instance_without_data_volume" { social_data_indexer_se_plugin = { name = "social-data-indexer-se-plugin", description = "This instance serves smart-executor service with social-data-indexer-se-plugin", - flavor = module.common_variables.flavor_list.c1_small, + flavor = module.common_variables.flavor_list.m1_medium, networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, module.common_variables.networks_list.orientdb_se], security_groups = [data.terraform_remote_state.privnet_dns_router.outputs.default_security_group_name, data.terraform_remote_state.privnet_dns_router.outputs.security_group_list.http_and_https_from_the_load_balancers, data.terraform_remote_state.privnet_dns_router.outputs.security_group_list.debugging_from_jump_node], server_groups_ids = [openstack_compute_servergroup_v2.social_data_indexer_server_group.id], @@ -110,7 +110,7 @@ module "instance_without_data_volume" { accounting_insert_storage_se_plugin = { name = "accounting-insert-storage-se-plugin", description = "This instance serves smart-executor service with accounting-insert-storage-se-plugin", - flavor = module.common_variables.flavor_list.c1_small, + flavor = module.common_variables.flavor_list.m1_medium, networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name, module.common_variables.networks_list.orientdb_se], security_groups = [data.terraform_remote_state.privnet_dns_router.outputs.default_security_group_name, data.terraform_remote_state.privnet_dns_router.outputs.security_group_list.http_and_https_from_the_load_balancers, data.terraform_remote_state.privnet_dns_router.outputs.security_group_list.debugging_from_jump_node], server_groups_ids = [openstack_compute_servergroup_v2.accounting_insert_storage_server_group.id], diff --git a/openstack-tf/d4s-production/smart-executor/terraform.tfstate b/openstack-tf/d4s-production/smart-executor/terraform.tfstate index ba2f489..e4dc7c6 100644 --- a/openstack-tf/d4s-production/smart-executor/terraform.tfstate +++ b/openstack-tf/d4s-production/smart-executor/terraform.tfstate @@ -1,7 +1,7 @@ { "version": 4, - "terraform_version": "1.6.5", - "serial": 11, + "terraform_version": "1.6.4", + "serial": 38, "lineage": "1a43674e-cba3-65a6-a18b-da0ccf288e00", "outputs": {}, "resources": [ @@ -392,7 +392,7 @@ { "schema_version": 0, "attributes": { - "id": "8abc6a0c-30ec-4b54-afdc-02a0d1ff3a33", + "id": "b0a81ac5-689e-4a55-a05d-a24f7516555f", "members": [], "name": "accounting-aggregator-se-plugin", "policies": [ @@ -420,7 +420,7 @@ { "schema_version": 0, "attributes": { - "id": "84856ec1-43cd-4718-b705-0d0e68b36ef0", + "id": "d2c1733c-6ce7-4b79-947a-1bae045b1fdd", "members": [], "name": "accounting-dashboard-harvester-se-plugin", "policies": [ @@ -448,7 +448,7 @@ { "schema_version": 0, "attributes": { - "id": "90a9b616-91f2-415e-8129-dc2c28529419", + "id": "9092d743-3811-4f72-9d24-651dd075bfa7", "members": [], "name": "accounting-insert-storage-se-plugin", "policies": [ @@ -476,7 +476,7 @@ { "schema_version": 0, "attributes": { - "id": "35a609b0-040b-443b-aadb-219fee947d89", + "id": "bbb63c2c-4d92-4523-bfdb-582de654b2e1", "members": [], "name": "resource-checker-se-plugin", "policies": [ @@ -504,7 +504,7 @@ { "schema_version": 0, "attributes": { - "id": "e6cb871f-3a55-4681-ae8d-8097e495ba78", + "id": "f6217a3c-ab19-460a-a995-b37d9e870a60", "members": [], "name": "social-data-indexer-se-plugin", "policies": [ @@ -534,7 +534,7 @@ "index_key": "accounting_aggregator_se_plugin", "schema_version": 0, "attributes": { - "access_ip_v4": "10.1.45.20", + "access_ip_v4": "10.1.44.77", "access_ip_v6": "", "admin_pass": null, "all_metadata": {}, @@ -557,44 +557,44 @@ } ], "config_drive": null, - "created": "2023-12-14 16:26:16 +0000 UTC", + "created": "2023-12-18 15:30:28 +0000 UTC", "flavor_id": "4", "flavor_name": "m1.medium", "floating_ip": null, "force_delete": false, - "id": "c68b919d-915f-469f-aeb5-6cd5ae2f97be", + "id": "3f2a0624-0e04-42aa-b331-4d49bcf54de1", "image_id": "Attempt to boot from volume - no image supplied", "image_name": null, - "key_pair": "adellam", + "key_pair": "pc-frosini_key", "metadata": null, "name": "accounting-aggregator-se-plugin", "network": [ { "access_network": false, - "fixed_ip_v4": "10.1.45.20", + "fixed_ip_v4": "10.1.44.77", "fixed_ip_v6": "", "floating_ip": "", - "mac": "fa:16:3e:e6:03:b7", + "mac": "fa:16:3e:ae:7b:75", "name": "d4s-production-cloud-main", "port": "", "uuid": "020df98d-ae72-452a-b376-3b6dc289acac" }, { "access_network": false, - "fixed_ip_v4": "192.168.12.175", + "fixed_ip_v4": "192.168.12.89", "fixed_ip_v6": "", "floating_ip": "", - "mac": "fa:16:3e:55:28:ee", + "mac": "fa:16:3e:97:02:39", "name": "orientdb-se-net", "port": "", "uuid": "16838ffa-142a-4336-97c8-d36e2c2f4597" }, { "access_network": false, - "fixed_ip_v4": "192.168.11.81", + "fixed_ip_v4": "192.168.11.188", "fixed_ip_v6": "", "floating_ip": "", - "mac": "fa:16:3e:a8:41:11", + "mac": "fa:16:3e:8c:36:ae", "name": "timescaledb-net", "port": "", "uuid": "3b0e4c3c-3a1c-4f14-abd1-03f8c8495daf" @@ -610,7 +610,7 @@ "build_near_host_ip": "", "different_cell": [], "different_host": [], - "group": "8abc6a0c-30ec-4b54-afdc-02a0d1ff3a33", + "group": "b0a81ac5-689e-4a55-a05d-a24f7516555f", "query": [], "same_host": [], "target_cell": "" @@ -624,8 +624,8 @@ "stop_before_destroy": false, "tags": null, "timeouts": null, - "updated": "2023-12-14 16:27:04 +0000 UTC", - "user_data": "47d4769e61324c305c4b70ed6673de4fad84150d", + "updated": "2023-12-18 15:31:17 +0000 UTC", + "user_data": "ef3d6e5deb29bd1e5de5a76ae6860f3ee872738c", "vendor_options": [], "volume": [] }, @@ -644,7 +644,7 @@ "index_key": "accounting_dashboard_harvester_se_plugin", "schema_version": 0, "attributes": { - "access_ip_v4": "10.1.42.141", + "access_ip_v4": "10.1.43.87", "access_ip_v6": "", "admin_pass": null, "all_metadata": {}, @@ -667,54 +667,54 @@ } ], "config_drive": null, - "created": "2023-12-14 16:26:17 +0000 UTC", + "created": "2023-12-18 15:30:29 +0000 UTC", "flavor_id": "4", "flavor_name": "m1.medium", "floating_ip": null, "force_delete": false, - "id": "8b6f3cde-323f-4a97-ae91-ea981bd31099", + "id": "7dbc539e-5063-4e05-a01d-54e7a092c2a7", "image_id": "Attempt to boot from volume - no image supplied", "image_name": null, - "key_pair": "adellam", + "key_pair": "pc-frosini_key", "metadata": null, "name": "accounting-dashboard-harvester-se-plugin", "network": [ { "access_network": false, - "fixed_ip_v4": "10.1.42.141", + "fixed_ip_v4": "10.1.43.87", "fixed_ip_v6": "", "floating_ip": "", - "mac": "fa:16:3e:9a:bd:8f", + "mac": "fa:16:3e:18:63:cf", "name": "d4s-production-cloud-main", "port": "", "uuid": "020df98d-ae72-452a-b376-3b6dc289acac" }, { "access_network": false, - "fixed_ip_v4": "192.168.12.252", + "fixed_ip_v4": "192.168.12.76", "fixed_ip_v6": "", "floating_ip": "", - "mac": "fa:16:3e:37:19:6b", + "mac": "fa:16:3e:2d:82:0c", "name": "orientdb-se-net", "port": "", "uuid": "16838ffa-142a-4336-97c8-d36e2c2f4597" }, { "access_network": false, - "fixed_ip_v4": "192.168.11.150", + "fixed_ip_v4": "192.168.11.132", "fixed_ip_v6": "", "floating_ip": "", - "mac": "fa:16:3e:5c:ee:fb", + "mac": "fa:16:3e:ef:86:95", "name": "timescaledb-net", "port": "", "uuid": "3b0e4c3c-3a1c-4f14-abd1-03f8c8495daf" }, { "access_network": false, - "fixed_ip_v4": "192.168.1.18", + "fixed_ip_v4": "192.168.2.58", "fixed_ip_v6": "", "floating_ip": "", - "mac": "fa:16:3e:c2:c7:56", + "mac": "fa:16:3e:fc:24:20", "name": "postgresql-srv-net", "port": "", "uuid": "f6450bc8-1345-4b52-8f34-2903c0cca7f8" @@ -730,7 +730,7 @@ "build_near_host_ip": "", "different_cell": [], "different_host": [], - "group": "84856ec1-43cd-4718-b705-0d0e68b36ef0", + "group": "d2c1733c-6ce7-4b79-947a-1bae045b1fdd", "query": [], "same_host": [], "target_cell": "" @@ -744,8 +744,8 @@ "stop_before_destroy": false, "tags": null, "timeouts": null, - "updated": "2023-12-14 16:27:30 +0000 UTC", - "user_data": "47d4769e61324c305c4b70ed6673de4fad84150d", + "updated": "2023-12-18 15:31:21 +0000 UTC", + "user_data": "ef3d6e5deb29bd1e5de5a76ae6860f3ee872738c", "vendor_options": [], "volume": [] }, @@ -764,7 +764,7 @@ "index_key": "accounting_insert_storage_se_plugin", "schema_version": 0, "attributes": { - "access_ip_v4": "10.1.41.234", + "access_ip_v4": "10.1.44.19", "access_ip_v6": "", "admin_pass": null, "all_metadata": {}, @@ -787,34 +787,34 @@ } ], "config_drive": null, - "created": "2023-12-14 16:26:16 +0000 UTC", - "flavor_id": "3", - "flavor_name": "c1.small", + "created": "2023-12-18 15:30:28 +0000 UTC", + "flavor_id": "4", + "flavor_name": "m1.medium", "floating_ip": null, "force_delete": false, - "id": "c7e154a1-9c86-4d91-b702-0698ddd84dc9", + "id": "b2390a4b-b22a-4dbb-8ec1-f9fece3c863a", "image_id": "Attempt to boot from volume - no image supplied", "image_name": null, - "key_pair": "adellam", + "key_pair": "pc-frosini_key", "metadata": null, "name": "accounting-insert-storage-se-plugin", "network": [ { "access_network": false, - "fixed_ip_v4": "10.1.41.234", + "fixed_ip_v4": "10.1.44.19", "fixed_ip_v6": "", "floating_ip": "", - "mac": "fa:16:3e:40:bf:d2", + "mac": "fa:16:3e:15:81:77", "name": "d4s-production-cloud-main", "port": "", "uuid": "020df98d-ae72-452a-b376-3b6dc289acac" }, { "access_network": false, - "fixed_ip_v4": "192.168.12.169", + "fixed_ip_v4": "192.168.12.88", "fixed_ip_v6": "", "floating_ip": "", - "mac": "fa:16:3e:57:c4:ea", + "mac": "fa:16:3e:c8:41:72", "name": "orientdb-se-net", "port": "", "uuid": "16838ffa-142a-4336-97c8-d36e2c2f4597" @@ -830,7 +830,7 @@ "build_near_host_ip": "", "different_cell": [], "different_host": [], - "group": "90a9b616-91f2-415e-8129-dc2c28529419", + "group": "9092d743-3811-4f72-9d24-651dd075bfa7", "query": [], "same_host": [], "target_cell": "" @@ -844,8 +844,8 @@ "stop_before_destroy": false, "tags": null, "timeouts": null, - "updated": "2023-12-14 16:27:25 +0000 UTC", - "user_data": "47d4769e61324c305c4b70ed6673de4fad84150d", + "updated": "2023-12-18 15:31:21 +0000 UTC", + "user_data": "ef3d6e5deb29bd1e5de5a76ae6860f3ee872738c", "vendor_options": [], "volume": [] }, @@ -864,7 +864,7 @@ "index_key": "resource_checker_se_plugin", "schema_version": 0, "attributes": { - "access_ip_v4": "10.1.42.207", + "access_ip_v4": "10.1.41.158", "access_ip_v6": "", "admin_pass": null, "all_metadata": {}, @@ -887,34 +887,34 @@ } ], "config_drive": null, - "created": "2023-12-14 16:26:16 +0000 UTC", - "flavor_id": "3", - "flavor_name": "c1.small", + "created": "2023-12-18 15:30:28 +0000 UTC", + "flavor_id": "4", + "flavor_name": "m1.medium", "floating_ip": null, "force_delete": false, - "id": "275ee69f-7097-46bb-9987-3c2595d57026", + "id": "b348b444-641b-47d9-9f71-4958961d4708", "image_id": "Attempt to boot from volume - no image supplied", "image_name": null, - "key_pair": "adellam", + "key_pair": "pc-frosini_key", "metadata": null, "name": "resource-checker-se-plugin", "network": [ { "access_network": false, - "fixed_ip_v4": "10.1.42.207", + "fixed_ip_v4": "10.1.41.158", "fixed_ip_v6": "", "floating_ip": "", - "mac": "fa:16:3e:35:bb:6c", + "mac": "fa:16:3e:7a:f6:a8", "name": "d4s-production-cloud-main", "port": "", "uuid": "020df98d-ae72-452a-b376-3b6dc289acac" }, { "access_network": false, - "fixed_ip_v4": "192.168.12.209", + "fixed_ip_v4": "192.168.12.114", "fixed_ip_v6": "", "floating_ip": "", - "mac": "fa:16:3e:4b:c9:44", + "mac": "fa:16:3e:f8:94:a8", "name": "orientdb-se-net", "port": "", "uuid": "16838ffa-142a-4336-97c8-d36e2c2f4597" @@ -930,7 +930,7 @@ "build_near_host_ip": "", "different_cell": [], "different_host": [], - "group": "35a609b0-040b-443b-aadb-219fee947d89", + "group": "bbb63c2c-4d92-4523-bfdb-582de654b2e1", "query": [], "same_host": [], "target_cell": "" @@ -944,8 +944,8 @@ "stop_before_destroy": false, "tags": null, "timeouts": null, - "updated": "2023-12-14 16:27:19 +0000 UTC", - "user_data": "47d4769e61324c305c4b70ed6673de4fad84150d", + "updated": "2023-12-18 15:31:18 +0000 UTC", + "user_data": "ef3d6e5deb29bd1e5de5a76ae6860f3ee872738c", "vendor_options": [], "volume": [] }, @@ -964,7 +964,7 @@ "index_key": "social_data_indexer_se_plugin", "schema_version": 0, "attributes": { - "access_ip_v4": "10.1.44.218", + "access_ip_v4": "10.1.44.96", "access_ip_v6": "", "admin_pass": null, "all_metadata": {}, @@ -987,34 +987,34 @@ } ], "config_drive": null, - "created": "2023-12-14 16:26:16 +0000 UTC", - "flavor_id": "3", - "flavor_name": "c1.small", + "created": "2023-12-18 15:30:28 +0000 UTC", + "flavor_id": "4", + "flavor_name": "m1.medium", "floating_ip": null, "force_delete": false, - "id": "b4efd6d8-228e-4a2e-9268-983ea5a43982", + "id": "10ead48c-d7be-4750-b8fb-5d1508421354", "image_id": "Attempt to boot from volume - no image supplied", "image_name": null, - "key_pair": "adellam", + "key_pair": "pc-frosini_key", "metadata": null, "name": "social-data-indexer-se-plugin", "network": [ { "access_network": false, - "fixed_ip_v4": "10.1.44.218", + "fixed_ip_v4": "10.1.44.96", "fixed_ip_v6": "", "floating_ip": "", - "mac": "fa:16:3e:6d:e8:45", + "mac": "fa:16:3e:64:69:b0", "name": "d4s-production-cloud-main", "port": "", "uuid": "020df98d-ae72-452a-b376-3b6dc289acac" }, { "access_network": false, - "fixed_ip_v4": "192.168.12.111", + "fixed_ip_v4": "192.168.12.207", "fixed_ip_v6": "", "floating_ip": "", - "mac": "fa:16:3e:e7:0d:32", + "mac": "fa:16:3e:39:dd:8a", "name": "orientdb-se-net", "port": "", "uuid": "16838ffa-142a-4336-97c8-d36e2c2f4597" @@ -1030,7 +1030,7 @@ "build_near_host_ip": "", "different_cell": [], "different_host": [], - "group": "e6cb871f-3a55-4681-ae8d-8097e495ba78", + "group": "f6217a3c-ab19-460a-a995-b37d9e870a60", "query": [], "same_host": [], "target_cell": "" @@ -1044,8 +1044,8 @@ "stop_before_destroy": false, "tags": null, "timeouts": null, - "updated": "2023-12-14 16:26:52 +0000 UTC", - "user_data": "47d4769e61324c305c4b70ed6673de4fad84150d", + "updated": "2023-12-18 15:31:14 +0000 UTC", + "user_data": "ef3d6e5deb29bd1e5de5a76ae6860f3ee872738c", "vendor_options": [], "volume": [] }, diff --git a/openstack-tf/modules/common_variables/variables.tf b/openstack-tf/modules/common_variables/variables.tf index 1d9cb9f..2fb96ba 100644 --- a/openstack-tf/modules/common_variables/variables.tf +++ b/openstack-tf/modules/common_variables/variables.tf @@ -186,12 +186,15 @@ variable "flavor_list" { c1_small = "c1.small" #RAM 2 - VCPUs 2 c1_medium = "c1.medium" #RAM 4 - VCPUs 4 c1_large = "c1.large" #RAM 8 - VCPUs 8 + c2_large = "c2.large" #RAM 16 -VCPUs 16 m1_medium = "m1.medium" #RAM 4 - VCPUs 2 m1_large = "m1.large" #RAM 8 - VCPUs 4 m1_xlarge = "m1.xlarge" #RAM 16 - VCPUs 8 + m1_xxl = "m1.xxl" #RAM 32 - VCPUS 16 m2_small = "m2.small" #RAM 8 - VCPUs 2 m2_medium = "m2.medium" #RAM 16 - VCPUs 4 m2_large = "m2.large" #RAM 32 - VCPUs 8 + m3_large = "m3.large" #RAM 64 - VCPUs 16 } } diff --git a/openstack-tf/modules/d4science_infra_setup/haproxy.tf b/openstack-tf/modules/d4science_infra_setup/haproxy.tf index fb94830..09cbfaf 100644 --- a/openstack-tf/modules/d4science_infra_setup/haproxy.tf +++ b/openstack-tf/modules/d4science_infra_setup/haproxy.tf @@ -42,73 +42,42 @@ resource "openstack_networking_secgroup_rule_v2" "haproxy_l7_2_peer" { remote_ip_prefix = var.basic_services_ip.haproxy_l7_2_cidr } -resource "openstack_networking_secgroup_rule_v2" "lb3_1_haproxy_l7_80" { +resource "openstack_networking_secgroup_rule_v2" "octavia_to_haproxy_l7_80" { security_group_id = openstack_networking_secgroup_v2.main_lb_to_haproxy_l7.id - description = "Traffic from the first main lb instance to HAPROXY l7 1 port 80" + description = "Traffic from the octavia lb instance to HAPROXY l7 port 80" direction = "ingress" ethertype = "IPv4" protocol = "tcp" port_range_min = 80 port_range_max = 80 - remote_ip_prefix = var.octavia_information.octavia_vrrp_ip_1 + # remote_ip_prefix = var.octavia_information.octavia_vrrp_ip_1 + remote_ip_prefix = var.main_private_subnet.cidr } -resource "openstack_networking_secgroup_rule_v2" "lb3_1_haproxy_l7_443" { +resource "openstack_networking_secgroup_rule_v2" "octavia_to_haproxy_l7_443" { security_group_id = openstack_networking_secgroup_v2.main_lb_to_haproxy_l7.id - description = "Traffic from the first main lb instance to HAPROXY l7 1 port 443" + description = "Traffic from the octavia lb instance to HAPROXY l7 port 443" direction = "ingress" ethertype = "IPv4" protocol = "tcp" port_range_min = 443 port_range_max = 443 - remote_ip_prefix = var.octavia_information.octavia_vrrp_ip_1 + # remote_ip_prefix = var.octavia_information.octavia_vrrp_ip_1 + remote_ip_prefix = var.main_private_subnet.cidr } -resource "openstack_networking_secgroup_rule_v2" "lb3_1_haproxy_l7_8080" { +resource "openstack_networking_secgroup_rule_v2" "octavia_to_haproxy_l7_8880" { security_group_id = openstack_networking_secgroup_v2.main_lb_to_haproxy_l7.id - description = "Traffic from the first main lb instance to HAPROXY l7 1 port 8080" + description = "Traffic from the octavia lb instance to HAPROXY l7 port 8880" direction = "ingress" ethertype = "IPv4" protocol = "tcp" - port_range_min = 8080 - port_range_max = 8080 - remote_ip_prefix = var.octavia_information.octavia_vrrp_ip_1 + port_range_min = 8880 + port_range_max = 8880 + # remote_ip_prefix = var.octavia_information.octavia_vrrp_ip_1 + remote_ip_prefix = var.main_private_subnet.cidr } -resource "openstack_networking_secgroup_rule_v2" "lb3_2_haproxy_l7_80" { - security_group_id = openstack_networking_secgroup_v2.main_lb_to_haproxy_l7.id - description = "Traffic from the first main lb instance to HAPROXY l7 2 port 80" - direction = "ingress" - ethertype = "IPv4" - protocol = "tcp" - port_range_min = 80 - port_range_max = 80 - remote_ip_prefix = var.octavia_information.octavia_vrrp_ip_2 -} - -resource "openstack_networking_secgroup_rule_v2" "lb3_2_haproxy_l7_443" { - security_group_id = openstack_networking_secgroup_v2.main_lb_to_haproxy_l7.id - description = "Traffic from the first main lb instance to HAPROXY l7 2 port 443" - direction = "ingress" - ethertype = "IPv4" - protocol = "tcp" - port_range_min = 443 - port_range_max = 443 - remote_ip_prefix = var.octavia_information.octavia_vrrp_ip_2 -} - -resource "openstack_networking_secgroup_rule_v2" "lb3_2_haproxy_l7_8080" { - security_group_id = openstack_networking_secgroup_v2.main_lb_to_haproxy_l7.id - description = "Traffic from the first main lb instance to HAPROXY l7 2 port 8080" - direction = "ingress" - ethertype = "IPv4" - protocol = "tcp" - port_range_min = 8080 - port_range_max = 8080 - remote_ip_prefix = var.octavia_information.octavia_vrrp_ip_2 -} - - # Instance resource "openstack_compute_instance_v2" "main_haproxy_l7" { count = var.haproxy_l7_data.vm_count @@ -140,7 +109,7 @@ resource "openstack_compute_instance_v2" "main_haproxy_l7" { ignore_changes = [ # Ignore changes to tags, e.g. because a management agent # updates these based on some ruleset managed elsewhere. - key_pair, user_data + key_pair, user_data, network ] } diff --git a/openstack-tf/modules/d4science_infra_setup/internal-ca.tf b/openstack-tf/modules/d4science_infra_setup/internal-ca.tf index f657b26..298191f 100644 --- a/openstack-tf/modules/d4science_infra_setup/internal-ca.tf +++ b/openstack-tf/modules/d4science_infra_setup/internal-ca.tf @@ -23,7 +23,7 @@ resource "openstack_compute_instance_v2" "internal_ca" { ignore_changes = [ # Ignore changes to tags, e.g. because a management agent # updates these based on some ruleset managed elsewhere. - key_pair, user_data + key_pair, user_data, network ] } diff --git a/openstack-tf/modules/d4science_infra_setup/outputs.tf b/openstack-tf/modules/d4science_infra_setup/outputs.tf deleted file mode 120000 index d953b68..0000000 --- a/openstack-tf/modules/d4science_infra_setup/outputs.tf +++ /dev/null @@ -1 +0,0 @@ -../common_variables/outputs.tf \ No newline at end of file diff --git a/openstack-tf/modules/d4science_infra_setup/outputs.tf b/openstack-tf/modules/d4science_infra_setup/outputs.tf new file mode 100644 index 0000000..285faca --- /dev/null +++ b/openstack-tf/modules/d4science_infra_setup/outputs.tf @@ -0,0 +1,126 @@ + +output "main_region" { + value = var.main_region +} + +output "external_network" { + value = var.external_network +} + +output "external_network_id" { + value = var.external_network.id +} + +output "floating_ip_pools" { + value = var.floating_ip_pools + +} + +output "resolvers_ip" { + value = var.resolvers_ip +} + +output "mtu_size" { + value = var.mtu_size +} + +output "availability_zones_names" { + value = var.availability_zones_names +} + +output "availability_zone_no_gpu_name" { + value = var.availability_zones_names.availability_zone_no_gpu +} + +output "availability_zone_with_gpu_name" { + value = var.availability_zones_names.availability_zone_with_gpu +} + +output "ssh_sources" { + value = var.ssh_sources +} + +output "networks_with_d4s_services" { + value = var.networks_with_d4s_services +} + +output "ubuntu_1804" { + value = var.ubuntu_1804 +} + +output "ubuntu_2204" { + value = var.ubuntu_2204 +} + +output "centos_7" { + value = var.centos_7 +} + +output "almalinux_9" { + value = var.almalinux_9 +} + +output "ubuntu1804_data_file" { + value = var.ubuntu1804_data_file +} + +output "ubuntu2204_data_file" { + value = var.ubuntu2204_data_file +} + +output "el7_data_file" { + value = var.el7_data_file +} + +output "ssh_jump_proxy" { + value = var.ssh_jump_proxy +} + +output "internal_ca_data" { + value = var.internal_ca_data +} + +output "prometheus_server_data" { + value = var.prometheus_server_data +} + +output "shared_postgresql_server_data" { + value = var.shared_postgresql_server_data +} + +output "haproxy_l7_data" { + value = var.haproxy_l7_data +} + +output "resource_registry_addresses" { + value = var.resource_registry_addresses +} + +output "smartexecutor_addresses" { + value = var.smartexecutor_addresses +} + +#Added by Francesco +output "policy_list" { + value = var.policy_list +} + +#Added by Francesco +output "flavor_list" { + value = var.flavor_list +} + +#Added by Francesco +output "security_group_list" { + value = var.security_group_list +} + +#Added by Francesco +output "networks_list" { + value = var.networks_list +} + +# output "default_security_group_name" { +# value = var.default_security_group_name +# } + diff --git a/openstack-tf/modules/d4science_infra_setup/postgresql.tf b/openstack-tf/modules/d4science_infra_setup/postgresql.tf index 2805235..a5524f7 100644 --- a/openstack-tf/modules/d4science_infra_setup/postgresql.tf +++ b/openstack-tf/modules/d4science_infra_setup/postgresql.tf @@ -82,7 +82,7 @@ resource "openstack_compute_instance_v2" "shared_postgresql_server" { ignore_changes = [ # Ignore changes to tags, e.g. because a management agent # updates these based on some ruleset managed elsewhere. - key_pair, user_data + key_pair, user_data, network ] } diff --git a/openstack-tf/modules/d4science_infra_setup/prometheus.tf b/openstack-tf/modules/d4science_infra_setup/prometheus.tf index bff68ff..84f64c6 100644 --- a/openstack-tf/modules/d4science_infra_setup/prometheus.tf +++ b/openstack-tf/modules/d4science_infra_setup/prometheus.tf @@ -29,7 +29,7 @@ resource "openstack_compute_instance_v2" "prometheus_server" { ignore_changes = [ # Ignore changes to tags, e.g. because a management agent # updates these based on some ruleset managed elsewhere. - key_pair, user_data + key_pair, user_data, network ] } diff --git a/openstack-tf/modules/d4science_infra_setup/ssh-jump-proxy.tf b/openstack-tf/modules/d4science_infra_setup/ssh-jump-proxy.tf index e13c9bd..a09f6b8 100644 --- a/openstack-tf/modules/d4science_infra_setup/ssh-jump-proxy.tf +++ b/openstack-tf/modules/d4science_infra_setup/ssh-jump-proxy.tf @@ -24,7 +24,7 @@ resource "openstack_compute_instance_v2" "ssh_jump_proxy" { ignore_changes = [ # Ignore changes to tags, e.g. because a management agent # updates these based on some ruleset managed elsewhere. - key_pair, user_data + key_pair, user_data, network ] } diff --git a/openstack-tf/modules/d4science_infra_setup/variables.tf b/openstack-tf/modules/d4science_infra_setup/variables.tf deleted file mode 120000 index 619d967..0000000 --- a/openstack-tf/modules/d4science_infra_setup/variables.tf +++ /dev/null @@ -1 +0,0 @@ -../common_variables/variables.tf \ No newline at end of file diff --git a/openstack-tf/modules/d4science_infra_setup/variables.tf b/openstack-tf/modules/d4science_infra_setup/variables.tf new file mode 100644 index 0000000..2fb96ba --- /dev/null +++ b/openstack-tf/modules/d4science_infra_setup/variables.tf @@ -0,0 +1,276 @@ +# Global definitions +variable "main_region" { + type = string + default = "isti_area_pi_1" +} + +variable "external_network" { + type = map(string) + default = { + name = "external-network" + id = "1d2ff137-6ff7-4017-be2b-0d6c4af2353b" + } +} + +variable "floating_ip_pools" { + type = map(string) + default = { + main_public_ip_pool = "external-network" + } +} + +variable "resolvers_ip" { + type = list(string) + default = ["146.48.29.97", "146.48.29.98", "146.48.29.99"] +} + +variable "mtu_size" { + type = number + default = 8942 +} + +variable "availability_zones_names" { + type = map(string) + default = { + availability_zone_no_gpu = "cnr-isti-nova-a" + availability_zone_with_gpu = "cnr-isti-nova-gpu-a" + } +} + +variable "ubuntu_1804" { + type = map(string) + + default = { + name = "Ubuntu-Bionic-18.04" + uuid = "7ed6a2cd-2b07-482e-8ce4-f018dff16c89" + user_data_file = "../../openstack_vm_data_scripts/ubuntu1804.sh" + } +} + +variable "ubuntu_2204" { + type = map(string) + default = { + name = "Ubuntu-Jammy-22.04" + uuid = "54768889-8556-4be4-a2eb-82a4d9b34627" + user_data_file = "../../openstack_vm_data_scripts/ubuntu2204.sh" + } +} + +variable "centos_7" { + type = map(string) + default = { + name = "CentOS-7" + uuid = "f0187a99-64f6-462a-ab5f-ef52fe62f2ca" + } +} + +variable "almalinux_9" { + type = map(string) + default = { + name = "AlmaLinux-9.0-20220718" + uuid = "541650fc-dd19-4f38-bb1d-7333ed9dd688" + } +} + +variable "ubuntu1804_data_file" { + default = "../../openstack_vm_data_scripts/ubuntu1804.sh" +} + +variable "ubuntu2204_data_file" { + default = "../../openstack_vm_data_scripts/ubuntu2204.sh" +} + +variable "el7_data_file" { + default = "../../openstack_vm_data_scripts/el7.sh" +} + +variable "ssh_jump_proxy" { + type = map(string) + default = { + name = "ssh-jump-proxy" + flavor = "m2.small" + } +} + +variable "internal_ca_data" { + type = map(string) + default = { + name = "ca" + flavor = "m1.small" + } +} + +variable "prometheus_server_data" { + type = map(string) + default = { + name = "prometheus" + flavor = "m1.medium" + vol_data_name = "prometheus-data" + vol_data_size = "100" + vol_data_device = "/dev/vdb" + public_grafana_server_cidr = "146.48.122.132/32" + } +} + +variable "shared_postgresql_server_data" { + type = map(string) + default = { + name = "shared-postgresql-server" + flavor = "m1.medium" + vol_data_name = "shared-postgresql-data" + vol_data_size = "100" + vol_data_device = "/dev/vdb" + # vol_backup_name = "" + # vol_backup_size = "" + # vol_backup_device = "" + network_name = "postgresql-srv-net" + network_description = "Network used to communicate with the shared postgresql service" + network_cidr = "192.168.0.0/22" + allocation_pool_start = "192.168.0.100" + allocation_pool_end = "192.168.3.254" + server_ip = "192.168.0.5" + server_cidr = "192.168.0.5/22" + } +} + +variable "haproxy_l7_data" { + type = map(string) + default = { + name = "main-haproxy-l7" + haproxy_1 = "haproxy-l7-1" + haproxy_2 = "haproxy-l7-2" + flavor = "m1.medium" + vm_count = "2" + } +} + +variable "resource_registry_addresses" { + type = map(string) + default = { + } +} + +variable "smartexecutor_addresses" { + type = map(string) + default = { + } +} + +# Added by Francesco +# Create in the path 'modules/ssh-key-ref' the file 'ssh-key-ref-outputs.tf' +# with the following outputs: + +# output "ssh_key_file" { +# value = "~/.ssh/{YOUR_PRIVATE_KEYNAME}" +# sensitive = true +# } + +# output "ssh_key_name" { +# value = "{YOUR_KEYNAME}" +# sensitive = false +# } + +# Then you can use above outputs in your 'file.tf' (if it contains the soft link to variables.tf) as: +# module.ssh_settings.ssh_key_file +# module.ssh_settings.ssh_key_name + +# e.g. +# +# resource "openstack_compute_instance_v2" "geoserver" { +# key_pair = module.ssh_settings.ssh_key_name + +# Added by Francesco +variable "flavor_list" { + type = map(string) + default = { + c1_small = "c1.small" #RAM 2 - VCPUs 2 + c1_medium = "c1.medium" #RAM 4 - VCPUs 4 + c1_large = "c1.large" #RAM 8 - VCPUs 8 + c2_large = "c2.large" #RAM 16 -VCPUs 16 + m1_medium = "m1.medium" #RAM 4 - VCPUs 2 + m1_large = "m1.large" #RAM 8 - VCPUs 4 + m1_xlarge = "m1.xlarge" #RAM 16 - VCPUs 8 + m1_xxl = "m1.xxl" #RAM 32 - VCPUS 16 + m2_small = "m2.small" #RAM 8 - VCPUs 2 + m2_medium = "m2.medium" #RAM 16 - VCPUs 4 + m2_large = "m2.large" #RAM 32 - VCPUs 8 + m3_large = "m3.large" #RAM 64 - VCPUs 16 + } +} + +# Added by Francesco +variable "security_group_list" { + type = map(string) + default = { + postgreSQL = "PostgreSQL service" + acaland = "acaland's dev machine" + haproxy = "traffic_from_main_lb_to_haproxy_l7" + access_to_orientdb = "access_to_orientdb" + dataminer-publish = "dataminer-publish" + docker_swarm_NFS = "Docker Swarm NFS" + public_HTTPS = "Public HTTPS" + orientdb_internal_docker_traffic = "orientdb_internal_docker_traffic" + limited_SSH_access = "Limited SSH access" + debugging_from_jump_node = "debugging_from_jump_node" + access_to_the_timescaledb_service = "access_to_the_timescaledb_service" + docker_swarm = "Docker Swarm" + http_and_https_from_the_load_balancers = "traffic_from_the_main_load_balancers" + limited_HTTPS_access = "restricted_web_service" + mongo = "mongo" + limited_SSH_access = "Limited SSH access" + default = "default" + cassandra = "Cassandra" + access_to_orientdb_se = "access_to_orientdb_se" + } +} + +# Added by Francesco +variable "policy_list" { + type = map(string) + default = { + soft_anti_affinity = "soft-anti-affinity" + anti_affinity = "anti-affinity" + affinity = "affinity" + soft_affinity = "soft-affinity" + } +} + +variable "networks_list" { + type = map(string) + default = { + shared_postgresql = "postgresql-srv-net" + swarm = "swarm-nfs-net" + timescaledb = "timescaledb-net" + orientdb = "orientdb-net" + orientdb_se = "orientdb-se-net" + } +} + +variable "ssh_sources" { + type = map(string) + default = { + s2i2s_vpn_1_cidr = "146.48.28.10/32" + s2i2s_vpn_2_cidr = "146.48.28.11/32" + d4s_vpn_1_cidr = "146.48.122.27/32" + d4s_vpn_2_cidr = "146.48.122.49/32" + shell_d4s_cidr = "146.48.122.95/32" + infrascience_net_cidr = "146.48.122.0/23" + } +} + +variable "networks_with_d4s_services" { + type = map(string) + default = { + "isti_net" = "146.48.80.0/21" + "s2i2s_net" = "146.48.28.0/22" + "infrascience_net" = "146.48.122.0/23" + "garr_ct1_net" = "90.147.166.0/23" + "garr_pa1_net" = "90.147.188.0/23" + "garr_na_net" = "90.147.152.0/24" + } +} + +# variable "default_security_group_name" { +# default = "default_for_all" +# } + diff --git a/openstack-tf/modules/docker_swarm/docker-swarm.tf b/openstack-tf/modules/docker_swarm/docker-swarm.tf index 67088c2..3b1939f 100644 --- a/openstack-tf/modules/docker_swarm/docker-swarm.tf +++ b/openstack-tf/modules/docker_swarm/docker-swarm.tf @@ -95,7 +95,7 @@ resource "openstack_compute_instance_v2" "docker_swarm_managers" { name = format("%s-%02d", var.docker_swarm_data.mgr_name, count.index + 1) availability_zone_hints = var.availability_zones_names.availability_zone_no_gpu flavor_name = var.docker_swarm_data.mgr_flavor - key_pair = var.ssh_key_file.name + key_pair = module.ssh_settings.ssh_key_name security_groups = [openstack_networking_secgroup_v2.default.name, openstack_networking_secgroup_v2.swarm_internal_traffic.name] scheduler_hints { group = openstack_compute_servergroup_v2.swarm_masters.id @@ -132,7 +132,7 @@ resource "openstack_compute_instance_v2" "docker_swarm_managers" { ignore_changes = [ # Ignore changes to tags, e.g. because a management agent # updates these based on some ruleset managed elsewhere. - key_pair, user_data + key_pair, user_data, network ] } @@ -144,8 +144,8 @@ resource "openstack_compute_instance_v2" "docker_swarm_workers" { name = format("%s-%02d", var.docker_swarm_data.worker_name, count.index + 1) availability_zone_hints = var.availability_zones_names.availability_zone_no_gpu flavor_name = var.docker_swarm_data.worker_flavor - key_pair = var.ssh_key_file.name - security_groups = [openstack_networking_secgroup_v2.default.name, openstack_networking_secgroup_v2.swarm_internal_traffic.name] + key_pair = module.ssh_settings.ssh_key_name + security_groups = [var.default_security_group_name, openstack_networking_secgroup_v2.swarm_internal_traffic.name] scheduler_hints { group = openstack_compute_servergroup_v2.swarm_workers.id } @@ -183,7 +183,7 @@ resource "openstack_compute_instance_v2" "docker_swarm_workers" { ignore_changes = [ # Ignore changes to tags, e.g. because a management agent # updates these based on some ruleset managed elsewhere. - key_pair, user_data + key_pair, user_data, network ] } } @@ -200,7 +200,7 @@ resource "openstack_compute_instance_v2" "swarm_nfs_server" { name = var.docker_swarm_data.nfs_server_name availability_zone_hints = var.availability_zones_names.availability_zone_no_gpu flavor_name = var.docker_swarm_data.nfs_server_flavor - key_pair = var.ssh_key_file.name + key_pair = module.ssh_settings.ssh_key_name security_groups = [openstack_networking_secgroup_v2.default.name, openstack_networking_secgroup_v2.swarm_nfs_traffic.name] block_device { uuid = var.ubuntu_2204.uuid diff --git a/openstack-tf/modules/generic_smartgears_service/generic_smartgears_service.tf b/openstack-tf/modules/generic_smartgears_service/generic_smartgears_service.tf index b91330a..9a3ce5a 100644 --- a/openstack-tf/modules/generic_smartgears_service/generic_smartgears_service.tf +++ b/openstack-tf/modules/generic_smartgears_service/generic_smartgears_service.tf @@ -49,7 +49,7 @@ resource "openstack_compute_instance_v2" "smartgears_service" { ignore_changes = [ # Ignore changes to tags, e.g. because a management agent # updates these based on some ruleset managed elsewhere. - key_pair, user_data + key_pair, user_data, network ] } diff --git a/openstack-tf/modules/instance_with_data_volume/instance_with_data_volume.tf b/openstack-tf/modules/instance_with_data_volume/instance_with_data_volume.tf index c2b9cb7..18b01a0 100644 --- a/openstack-tf/modules/instance_with_data_volume/instance_with_data_volume.tf +++ b/openstack-tf/modules/instance_with_data_volume/instance_with_data_volume.tf @@ -56,7 +56,7 @@ resource "openstack_compute_instance_v2" "instance_with_data_volume" { ignore_changes = [ # Ignore changes to tags, e.g. because a management agent # updates these based on some ruleset managed elsewhere. - key_pair, user_data + key_pair, user_data, network ] } } diff --git a/openstack-tf/modules/instance_without_data_volume/instance_without_data_volume.tf b/openstack-tf/modules/instance_without_data_volume/instance_without_data_volume.tf index fd0a324..76dd031 100644 --- a/openstack-tf/modules/instance_without_data_volume/instance_without_data_volume.tf +++ b/openstack-tf/modules/instance_without_data_volume/instance_without_data_volume.tf @@ -49,7 +49,7 @@ resource "openstack_compute_instance_v2" "smartgears_service" { ignore_changes = [ # Ignore changes to tags, e.g. because a management agent # updates these based on some ruleset managed elsewhere. - key_pair, user_data + key_pair, user_data, network ] } } diff --git a/openstack-tf/modules/liferay/liferay-outputs.tf b/openstack-tf/modules/liferay/liferay-outputs.tf new file mode 100644 index 0000000..a1805ab --- /dev/null +++ b/openstack-tf/modules/liferay/liferay-outputs.tf @@ -0,0 +1,11 @@ +output "liferay_data" { + value = var.liferay_data +} + +output "liferay_ip_addrs" { + value = var.liferay_ip_addrs +} + +output "liferay_recordsets" { + value = var.liferay_recordsets +} \ No newline at end of file diff --git a/openstack-tf/modules/liferay/liferay-variables.tf b/openstack-tf/modules/liferay/liferay-variables.tf index 83a6d63..a7baa62 100644 --- a/openstack-tf/modules/liferay/liferay-variables.tf +++ b/openstack-tf/modules/liferay/liferay-variables.tf @@ -13,3 +13,16 @@ variable "liferay_ip_addrs" { type = list(string) default = [] } + +variable "liferay_recordsets" { + type = map(object({ + name = string + description = string + })) + default = { + liferay_dns_record = { + name = "", + description = "" + } + } +} diff --git a/openstack-tf/modules/liferay/liferay.tf b/openstack-tf/modules/liferay/liferay.tf index ffe52ee..b508a5a 100644 --- a/openstack-tf/modules/liferay/liferay.tf +++ b/openstack-tf/modules/liferay/liferay.tf @@ -20,6 +20,14 @@ resource "openstack_networking_secgroup_rule_v2" "traffic_between_liferay_nodes" remote_ip_prefix = join("/", [element(var.liferay_ip_addrs.*, count.index), "32"]) } +# +# Object storage container +# +# Creating object bucket to store avatars +resource "openstack_objectstorage_container_v1" "liferay" { + name = "liferay-data" + versioning = true +} # # Server group # @@ -32,15 +40,15 @@ resource "openstack_compute_servergroup_v2" "liferay" { resource "openstack_compute_instance_v2" "liferay" { count = var.liferay_data.vm_count name = format("%s-%02d", var.liferay_data.srv_name, count.index + 1) - availability_zone_hints = var.availability_zones_names.availability_zone_no_gpu + availability_zone_hints = module.common_variables.availability_zones_names.availability_zone_no_gpu flavor_name = var.liferay_data.vm_flavor key_pair = module.ssh_settings.ssh_key_name - security_groups = [var.default_security_group_name, openstack_networking_secgroup_v2.liferay_cluster_traffic.name, "traffic_from_the_main_load_balancers", "restricted_web_service"] + security_groups = [data.terraform_remote_state.privnet_dns_router.outputs.default_security_group_name, openstack_networking_secgroup_v2.liferay_cluster_traffic.name, data.terraform_remote_state.privnet_dns_router.outputs.security_group_list.http_and_https_from_the_load_balancers, "restricted_web_service"] scheduler_hints { group = openstack_compute_servergroup_v2.liferay.id } block_device { - uuid = var.ubuntu_1804.uuid + uuid = data.terraform_remote_state.privnet_dns_router.outputs.ubuntu_1804.uuid source_type = "image" volume_size = var.liferay_data.boot_vol_size boot_index = 0 @@ -49,19 +57,33 @@ resource "openstack_compute_instance_v2" "liferay" { } network { - name = var.main_private_network.name + name = data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name fixed_ip_v4 = var.liferay_ip_addrs.* [count.index] } network { - name = var.shared_postgresql_server_data.network_name + name = module.common_variables.shared_postgresql_server_data.network_name } - user_data = file("${var.ubuntu1804_data_file}") + user_data = file("${data.terraform_remote_state.privnet_dns_router.outputs.ubuntu1804_data_file}") # Do not replace the instance when the ssh key changes lifecycle { ignore_changes = [ # Ignore changes to tags, e.g. because a management agent # updates these based on some ruleset managed elsewhere. - key_pair, user_data + key_pair, user_data, network ] } } + +resource "openstack_dns_recordset_v2" "cdn_dns_recordset" { + for_each = var.liferay_recordsets + zone_id = data.terraform_remote_state.privnet_dns_router.outputs.dns_zone_id + name = each.value.name + description = each.value.description + ttl = 8600 + type = "CNAME" + records = [local.cname_target] +} + +locals { + cname_target = "main-lb.${data.terraform_remote_state.privnet_dns_router.outputs.dns_zone.zone_name}" +} \ No newline at end of file diff --git a/openstack-tf/modules/liferay/outputs.tf b/openstack-tf/modules/liferay/outputs.tf deleted file mode 120000 index d953b68..0000000 --- a/openstack-tf/modules/liferay/outputs.tf +++ /dev/null @@ -1 +0,0 @@ -../common_variables/outputs.tf \ No newline at end of file diff --git a/openstack-tf/modules/liferay/terraform-provider.tf b/openstack-tf/modules/liferay/terraform-provider.tf index a931880..f3678ce 100644 --- a/openstack-tf/modules/liferay/terraform-provider.tf +++ b/openstack-tf/modules/liferay/terraform-provider.tf @@ -9,3 +9,21 @@ terraform { } } +data "terraform_remote_state" "privnet_dns_router" { + backend = "local" + + config = { + path = "../project-setup/terraform.tfstate" + } +} + +# SSH settings +module "ssh_settings" { + source = "../../modules/ssh-key-ref" +} + +# Global variables (constants, really) +module "common_variables" { + source = "../../modules/common_variables" +} + diff --git a/openstack-tf/modules/liferay/variables.tf b/openstack-tf/modules/liferay/variables.tf deleted file mode 120000 index 619d967..0000000 --- a/openstack-tf/modules/liferay/variables.tf +++ /dev/null @@ -1 +0,0 @@ -../common_variables/variables.tf \ No newline at end of file diff --git a/openstack-tf/modules/mongodb/mongodb.tf b/openstack-tf/modules/mongodb/mongodb.tf index 4f8ef8e..904f4da 100644 --- a/openstack-tf/modules/mongodb/mongodb.tf +++ b/openstack-tf/modules/mongodb/mongodb.tf @@ -100,7 +100,7 @@ resource "openstack_compute_instance_v2" "mongodb_cluster_nodes" { ignore_changes = [ # Ignore changes to tags, e.g. because a management agent # updates these based on some ruleset managed elsewhere. - key_pair, user_data + key_pair, user_data, network ] } } @@ -170,7 +170,7 @@ resource "openstack_compute_instance_v2" "mongodb_vol_node" { ignore_changes = [ # Ignore changes to tags, e.g. because a management agent # updates these based on some ruleset managed elsewhere. - key_pair, user_data + key_pair, user_data, network ] } } diff --git a/openstack-tf/modules/orientdb/orientdb.tf b/openstack-tf/modules/orientdb/orientdb.tf index 0f2ab56..59d2ed0 100644 --- a/openstack-tf/modules/orientdb/orientdb.tf +++ b/openstack-tf/modules/orientdb/orientdb.tf @@ -192,7 +192,7 @@ resource "openstack_compute_instance_v2" "orientdb_servers" { ignore_changes = [ # Ignore changes to tags, e.g. because a management agent # updates these based on some ruleset managed elsewhere. - key_pair, user_data + key_pair, user_data, network ] } } @@ -237,7 +237,7 @@ resource "openstack_compute_instance_v2" "orientdb_se_server" { ignore_changes = [ # Ignore changes to tags, e.g. because a management agent # updates these based on some ruleset managed elsewhere. - key_pair, user_data + key_pair, user_data, network ] } } diff --git a/openstack-tf/modules/smart-executor/smart-executor.tf b/openstack-tf/modules/smart-executor/smart-executor.tf index d40fb60..1aa3e69 100644 --- a/openstack-tf/modules/smart-executor/smart-executor.tf +++ b/openstack-tf/modules/smart-executor/smart-executor.tf @@ -31,7 +31,7 @@ resource "openstack_compute_instance_v2" "accounting_dashboard_harvester" { ignore_changes = [ # Ignore changes to tags, e.g. because a management agent # updates these based on some ruleset managed elsewhere. - key_pair, user_data + key_pair, user_data, network ] } } @@ -63,7 +63,7 @@ resource "openstack_compute_instance_v2" "resource_checker" { ignore_changes = [ # Ignore changes to tags, e.g. because a management agent # updates these based on some ruleset managed elsewhere. - key_pair, user_data + key_pair, user_data, network ] } } @@ -95,7 +95,7 @@ resource "openstack_compute_instance_v2" "social_data_indexer" { ignore_changes = [ # Ignore changes to tags, e.g. because a management agent # updates these based on some ruleset managed elsewhere. - key_pair, user_data + key_pair, user_data, network ] } } @@ -127,7 +127,7 @@ resource "openstack_compute_instance_v2" "accounting_insert_storage" { ignore_changes = [ # Ignore changes to tags, e.g. because a management agent # updates these based on some ruleset managed elsewhere. - key_pair, user_data + key_pair, user_data, network ] } } @@ -159,7 +159,7 @@ resource "openstack_compute_instance_v2" "accounting_aggregator" { ignore_changes = [ # Ignore changes to tags, e.g. because a management agent # updates these based on some ruleset managed elsewhere. - key_pair, user_data + key_pair, user_data, network ] } } diff --git a/openstack-tf/modules/timescaledb/timescaledb.tf b/openstack-tf/modules/timescaledb/timescaledb.tf index 178b038..a1a9ea9 100644 --- a/openstack-tf/modules/timescaledb/timescaledb.tf +++ b/openstack-tf/modules/timescaledb/timescaledb.tf @@ -96,7 +96,7 @@ resource "openstack_compute_instance_v2" "timescaledb_server" { ignore_changes = [ # Ignore changes to tags, e.g. because a management agent # updates these based on some ruleset managed elsewhere. - key_pair, user_data + key_pair, user_data, network ] } }