Changed plan for grsf-publisher service

This commit is contained in:
Luca Frosini 2024-01-11 12:09:43 +01:00
parent 117b0e7907
commit ef54dbc3f9
2 changed files with 210 additions and 35 deletions

View File

@ -25,34 +25,61 @@ module "common_variables" {
}
#
# Creates the server group "grsf-publisher"
# Creates the server group "grsf-publisher" for context GRSF
#
resource "openstack_compute_servergroup_v2" "grsf_publisher_server_group" {
name = "grsf-publisher"
resource "openstack_compute_servergroup_v2" "grsf_publisher_grsf_server_group" {
name = "grsf-publisher-grsf"
policies = [module.common_variables.policy_list.soft_anti_affinity]
}
#
# Creates the server group "grsf-publisher" for context GRSF_Admin
#
resource "openstack_compute_servergroup_v2" "grsf_publisher_grsf_admin_server_group" {
name = "grsf-publisher-grsf-admin"
policies = [module.common_variables.policy_list.soft_anti_affinity]
}
#
# Creates the server group "grsf-publisher" for context GRSF_Pre
#
resource "openstack_compute_servergroup_v2" "grsf_publisher_grsf_pre_server_group" {
name = "grsf-publisher-grsf-pre"
policies = [module.common_variables.policy_list.soft_anti_affinity]
}
module "instance_without_data_volume" {
source = "../../modules/instance_without_data_volume"
instances_without_data_volume_map = {
grsf_publisher_1 = {
name = "grsf-publisher-1",
description = "This instance serves GRSF Publisher service",
grsf_publisher = {
name = "grsf-publisher",
description = "This instance serves GRSF Publisher service for GRSF VRE",
flavor = module.common_variables.flavor_list.m1_medium,
networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name],
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.grsf_publisher_server_group.id],
server_groups_ids = [openstack_compute_servergroup_v2.grsf_publisher_grsf_server_group.id],
image_ref = module.common_variables.ubuntu_1804
},
grsf_publisher_2 = {
name = "grsf-publisher-2",
description = "This instance serves GRSF Publisher service",
grsf_publisher_grsf_admin = {
name = "grsf-publisher-grsf-admin",
description = "This instance serves GRSF Publisher service for GRSF_Admin VRE",
flavor = module.common_variables.flavor_list.m1_medium,
networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name],
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.grsf_publisher_server_group.id],
server_groups_ids = [openstack_compute_servergroup_v2.grsf_publisher_grsf_admin_server_group.id],
image_ref = module.common_variables.ubuntu_1804
},
grsf_publisher_grsf_pre = {
name = "grsf-publisher-grsf-pre",
description = "This instance serves GRSF Publisher service for GRSF_Pre VRE",
flavor = module.common_variables.flavor_list.m1_medium,
networks = [data.terraform_remote_state.privnet_dns_router.outputs.main_private_network.name],
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.grsf_publisher_grsf_pre_server_group.id],
image_ref = module.common_variables.ubuntu_1804
}
}
}

View File

@ -1,7 +1,7 @@
{
"version": 4,
"terraform_version": "1.6.4",
"serial": 4,
"serial": 16,
"lineage": "0b64de5a-dac9-ddbd-d6e4-0be2e126b931",
"outputs": {},
"resources": [
@ -386,15 +386,71 @@
{
"mode": "managed",
"type": "openstack_compute_servergroup_v2",
"name": "grsf_publisher_server_group",
"name": "grsf_publisher_grsf_admin_server_group",
"provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]",
"instances": [
{
"schema_version": 0,
"attributes": {
"id": "84f36b86-904a-4f5f-8e4d-e89108e18baf",
"id": "9d0f96ef-e87c-45e2-aaf5-5fd04d43fce5",
"members": [],
"name": "grsf-publisher",
"name": "grsf-publisher-grsf-admin",
"policies": [
"soft-anti-affinity"
],
"region": "isti_area_pi_1",
"rules": [
{
"max_server_per_host": 0
}
],
"value_specs": null
},
"sensitive_attributes": [],
"private": "bnVsbA=="
}
]
},
{
"mode": "managed",
"type": "openstack_compute_servergroup_v2",
"name": "grsf_publisher_grsf_pre_server_group",
"provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]",
"instances": [
{
"schema_version": 0,
"attributes": {
"id": "1fcc338a-3e10-40a3-80d7-cd57b9161ec8",
"members": [],
"name": "grsf-publisher-grsf-pre",
"policies": [
"soft-anti-affinity"
],
"region": "isti_area_pi_1",
"rules": [
{
"max_server_per_host": 0
}
],
"value_specs": null
},
"sensitive_attributes": [],
"private": "bnVsbA=="
}
]
},
{
"mode": "managed",
"type": "openstack_compute_servergroup_v2",
"name": "grsf_publisher_grsf_server_group",
"provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]",
"instances": [
{
"schema_version": 0,
"attributes": {
"id": "a88fdb71-e1ed-410d-94c8-6cbe30668b3b",
"members": [],
"name": "grsf-publisher-grsf",
"policies": [
"soft-anti-affinity"
],
@ -419,10 +475,10 @@
"provider": "provider[\"registry.terraform.io/terraform-provider-openstack/openstack\"]",
"instances": [
{
"index_key": "grsf_publisher_1",
"index_key": "grsf_publisher",
"schema_version": 0,
"attributes": {
"access_ip_v4": "10.1.43.149",
"access_ip_v4": "10.1.43.71",
"access_ip_v6": "",
"admin_pass": null,
"all_metadata": {},
@ -445,24 +501,24 @@
}
],
"config_drive": null,
"created": "2023-12-18 14:22:32 +0000 UTC",
"created": "2024-01-11 11:04:17 +0000 UTC",
"flavor_id": "4",
"flavor_name": "m1.medium",
"floating_ip": null,
"force_delete": false,
"id": "1d0a8f11-cd09-4e37-a91f-f45bd7367179",
"id": "10e5cc37-69a8-47d9-98ca-5f3ab726b85b",
"image_id": "Attempt to boot from volume - no image supplied",
"image_name": null,
"key_pair": "pc-frosini_key",
"metadata": null,
"name": "grsf-publisher-1",
"name": "grsf-publisher",
"network": [
{
"access_network": false,
"fixed_ip_v4": "10.1.43.149",
"fixed_ip_v4": "10.1.43.71",
"fixed_ip_v6": "",
"floating_ip": "",
"mac": "fa:16:3e:9b:2e:e7",
"mac": "fa:16:3e:08:69:47",
"name": "d4s-production-cloud-main",
"port": "",
"uuid": "020df98d-ae72-452a-b376-3b6dc289acac"
@ -478,7 +534,7 @@
"build_near_host_ip": "",
"different_cell": [],
"different_host": [],
"group": "84f36b86-904a-4f5f-8e4d-e89108e18baf",
"group": "a88fdb71-e1ed-410d-94c8-6cbe30668b3b",
"query": [],
"same_host": [],
"target_cell": ""
@ -492,7 +548,7 @@
"stop_before_destroy": false,
"tags": null,
"timeouts": null,
"updated": "2023-12-18 14:23:14 +0000 UTC",
"updated": "2024-01-11 11:05:37 +0000 UTC",
"user_data": "ef3d6e5deb29bd1e5de5a76ae6860f3ee872738c",
"vendor_options": [],
"volume": []
@ -501,14 +557,16 @@
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwMH19",
"dependencies": [
"data.terraform_remote_state.privnet_dns_router",
"openstack_compute_servergroup_v2.grsf_publisher_server_group"
"openstack_compute_servergroup_v2.grsf_publisher_grsf_admin_server_group",
"openstack_compute_servergroup_v2.grsf_publisher_grsf_pre_server_group",
"openstack_compute_servergroup_v2.grsf_publisher_grsf_server_group"
]
},
{
"index_key": "grsf_publisher_2",
"index_key": "grsf_publisher_grsf_admin",
"schema_version": 0,
"attributes": {
"access_ip_v4": "10.1.43.59",
"access_ip_v4": "10.1.41.145",
"access_ip_v6": "",
"admin_pass": null,
"all_metadata": {},
@ -531,24 +589,24 @@
}
],
"config_drive": null,
"created": "2023-12-18 14:22:33 +0000 UTC",
"created": "2024-01-11 11:04:17 +0000 UTC",
"flavor_id": "4",
"flavor_name": "m1.medium",
"floating_ip": null,
"force_delete": false,
"id": "325ca4aa-2ec1-4bc7-ac25-d7395b91d820",
"id": "d1e441de-014d-4171-98d1-a28907c443d0",
"image_id": "Attempt to boot from volume - no image supplied",
"image_name": null,
"key_pair": "pc-frosini_key",
"metadata": null,
"name": "grsf-publisher-2",
"name": "grsf-publisher-grsf-admin",
"network": [
{
"access_network": false,
"fixed_ip_v4": "10.1.43.59",
"fixed_ip_v4": "10.1.41.145",
"fixed_ip_v6": "",
"floating_ip": "",
"mac": "fa:16:3e:cc:8c:7a",
"mac": "fa:16:3e:10:a0:1e",
"name": "d4s-production-cloud-main",
"port": "",
"uuid": "020df98d-ae72-452a-b376-3b6dc289acac"
@ -564,7 +622,7 @@
"build_near_host_ip": "",
"different_cell": [],
"different_host": [],
"group": "84f36b86-904a-4f5f-8e4d-e89108e18baf",
"group": "9d0f96ef-e87c-45e2-aaf5-5fd04d43fce5",
"query": [],
"same_host": [],
"target_cell": ""
@ -578,7 +636,7 @@
"stop_before_destroy": false,
"tags": null,
"timeouts": null,
"updated": "2023-12-18 14:23:24 +0000 UTC",
"updated": "2024-01-11 11:05:33 +0000 UTC",
"user_data": "ef3d6e5deb29bd1e5de5a76ae6860f3ee872738c",
"vendor_options": [],
"volume": []
@ -587,7 +645,97 @@
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInVwZGF0ZSI6MTgwMDAwMDAwMDAwMH19",
"dependencies": [
"data.terraform_remote_state.privnet_dns_router",
"openstack_compute_servergroup_v2.grsf_publisher_server_group"
"openstack_compute_servergroup_v2.grsf_publisher_grsf_admin_server_group",
"openstack_compute_servergroup_v2.grsf_publisher_grsf_pre_server_group",
"openstack_compute_servergroup_v2.grsf_publisher_grsf_server_group"
]
},
{
"index_key": "grsf_publisher_grsf_pre",
"schema_version": 0,
"attributes": {
"access_ip_v4": "10.1.43.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": "2024-01-11 11:04:18 +0000 UTC",
"flavor_id": "4",
"flavor_name": "m1.medium",
"floating_ip": null,
"force_delete": false,
"id": "aa8dfda5-b3c8-47cf-8ccd-f27ed45326ce",
"image_id": "Attempt to boot from volume - no image supplied",
"image_name": null,
"key_pair": "pc-frosini_key",
"metadata": null,
"name": "grsf-publisher-grsf-pre",
"network": [
{
"access_network": false,
"fixed_ip_v4": "10.1.43.98",
"fixed_ip_v6": "",
"floating_ip": "",
"mac": "fa:16:3e:13:6e: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": "1fcc338a-3e10-40a3-80d7-cd57b9161ec8",
"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": "2024-01-11 11:05:15 +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_grsf_admin_server_group",
"openstack_compute_servergroup_v2.grsf_publisher_grsf_pre_server_group",
"openstack_compute_servergroup_v2.grsf_publisher_grsf_server_group"
]
}
]