2023-11-23 12:39:22 +01:00
|
|
|
# Accounting dashboard harvester
|
|
|
|
resource "openstack_compute_instance_v2" "accounting_dashboard_harvester" {
|
2023-12-14 12:55:20 +01:00
|
|
|
name = var.accounting_dashboard_harvester.name
|
2023-11-23 12:39:22 +01:00
|
|
|
availability_zone_hints = var.availability_zones_names.availability_zone_no_gpu
|
2023-12-14 12:55:20 +01:00
|
|
|
flavor_name = var.accounting_dashboard_harvester.flavor
|
|
|
|
key_pair = module.ssh_settings.ssh_key_name
|
|
|
|
security_groups = [var.default_security_group_name]
|
2023-11-23 12:39:22 +01:00
|
|
|
block_device {
|
|
|
|
uuid = var.ubuntu_1804.uuid
|
|
|
|
source_type = "image"
|
|
|
|
volume_size = 10
|
|
|
|
boot_index = 0
|
|
|
|
destination_type = "volume"
|
|
|
|
delete_on_termination = false
|
|
|
|
}
|
|
|
|
network {
|
|
|
|
name = var.main_private_network.name
|
|
|
|
}
|
|
|
|
network {
|
2023-12-01 17:18:43 +01:00
|
|
|
name = var.networks_list.orientdb_se
|
2023-11-23 12:39:22 +01:00
|
|
|
}
|
|
|
|
network {
|
2023-12-01 17:18:43 +01:00
|
|
|
name = var.networks_list.shared_postgresql
|
|
|
|
}
|
|
|
|
network {
|
|
|
|
name = var.networks_list.timescaledb
|
2023-11-23 12:39:22 +01:00
|
|
|
}
|
2023-12-14 12:55:20 +01:00
|
|
|
user_data = file("${var.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
|
|
|
|
]
|
|
|
|
}
|
2023-11-23 12:39:22 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
# Resource checker
|
|
|
|
resource "openstack_compute_instance_v2" "resource_checker" {
|
2023-12-14 12:55:20 +01:00
|
|
|
name = var.resource_checker.name
|
2023-11-23 12:39:22 +01:00
|
|
|
availability_zone_hints = var.availability_zones_names.availability_zone_no_gpu
|
2023-12-14 12:55:20 +01:00
|
|
|
flavor_name = var.resource_checker.flavor
|
|
|
|
key_pair = module.ssh_settings.ssh_key_name
|
|
|
|
security_groups = [var.default_security_group_name]
|
2023-11-23 12:39:22 +01:00
|
|
|
block_device {
|
|
|
|
uuid = var.ubuntu_1804.uuid
|
|
|
|
source_type = "image"
|
|
|
|
volume_size = 10
|
|
|
|
boot_index = 0
|
|
|
|
destination_type = "volume"
|
|
|
|
delete_on_termination = false
|
|
|
|
}
|
|
|
|
network {
|
|
|
|
name = var.main_private_network.name
|
|
|
|
}
|
|
|
|
network {
|
2023-12-01 17:18:43 +01:00
|
|
|
name = var.networks_list.orientdb_se
|
2023-11-23 12:39:22 +01:00
|
|
|
}
|
2023-12-14 12:55:20 +01:00
|
|
|
user_data = file("${var.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
|
|
|
|
]
|
|
|
|
}
|
2023-11-23 12:39:22 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
# Social data indexer
|
|
|
|
resource "openstack_compute_instance_v2" "social_data_indexer" {
|
2023-12-14 12:55:20 +01:00
|
|
|
name = var.social_data_indexer.name
|
2023-11-23 12:39:22 +01:00
|
|
|
availability_zone_hints = var.availability_zones_names.availability_zone_no_gpu
|
2023-12-14 12:55:20 +01:00
|
|
|
flavor_name = var.social_data_indexer.flavor
|
|
|
|
key_pair = module.ssh_settings.ssh_key_name
|
|
|
|
security_groups = [var.default_security_group_name]
|
2023-11-23 12:39:22 +01:00
|
|
|
block_device {
|
|
|
|
uuid = var.ubuntu_1804.uuid
|
|
|
|
source_type = "image"
|
|
|
|
volume_size = 10
|
|
|
|
boot_index = 0
|
|
|
|
destination_type = "volume"
|
|
|
|
delete_on_termination = false
|
|
|
|
}
|
|
|
|
network {
|
|
|
|
name = var.main_private_network.name
|
|
|
|
}
|
|
|
|
network {
|
2023-12-01 17:18:43 +01:00
|
|
|
name = var.networks_list.orientdb_se
|
2023-11-23 12:39:22 +01:00
|
|
|
}
|
2023-12-14 12:55:20 +01:00
|
|
|
user_data = file("${var.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
|
|
|
|
]
|
|
|
|
}
|
2023-11-23 12:39:22 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
# Accounting insert storage
|
|
|
|
resource "openstack_compute_instance_v2" "accounting_insert_storage" {
|
2023-12-14 12:55:20 +01:00
|
|
|
name = var.accounting_insert_storage.name
|
2023-11-23 12:39:22 +01:00
|
|
|
availability_zone_hints = var.availability_zones_names.availability_zone_no_gpu
|
2023-12-14 12:55:20 +01:00
|
|
|
flavor_name = var.accounting_insert_storage.flavor
|
|
|
|
key_pair = module.ssh_settings.ssh_key_name
|
|
|
|
security_groups = [var.default_security_group_name]
|
2023-11-23 12:39:22 +01:00
|
|
|
block_device {
|
|
|
|
uuid = var.ubuntu_1804.uuid
|
|
|
|
source_type = "image"
|
|
|
|
volume_size = 10
|
|
|
|
boot_index = 0
|
|
|
|
destination_type = "volume"
|
|
|
|
delete_on_termination = false
|
|
|
|
}
|
|
|
|
network {
|
|
|
|
name = var.main_private_network.name
|
|
|
|
}
|
|
|
|
network {
|
2023-12-01 17:18:43 +01:00
|
|
|
name = var.networks_list.orientdb_se
|
2023-11-23 12:39:22 +01:00
|
|
|
}
|
2023-12-14 12:55:20 +01:00
|
|
|
user_data = file("${var.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
|
|
|
|
]
|
|
|
|
}
|
2023-11-23 12:39:22 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
# Accounting aggregator
|
|
|
|
resource "openstack_compute_instance_v2" "accounting_aggregator" {
|
2023-12-14 12:55:20 +01:00
|
|
|
name = var.accounting_aggregator.name
|
2023-11-23 12:39:22 +01:00
|
|
|
availability_zone_hints = var.availability_zones_names.availability_zone_no_gpu
|
2023-12-14 12:55:20 +01:00
|
|
|
flavor_name = var.accounting_aggregator.flavor
|
|
|
|
key_pair = module.ssh_settings.ssh_key_name
|
|
|
|
security_groups = [var.default_security_group_name]
|
2023-11-23 12:39:22 +01:00
|
|
|
block_device {
|
|
|
|
uuid = var.ubuntu_1804.uuid
|
|
|
|
source_type = "image"
|
|
|
|
volume_size = 10
|
|
|
|
boot_index = 0
|
|
|
|
destination_type = "volume"
|
|
|
|
delete_on_termination = false
|
|
|
|
}
|
|
|
|
network {
|
|
|
|
name = var.main_private_network.name
|
|
|
|
}
|
|
|
|
network {
|
2023-12-01 17:18:43 +01:00
|
|
|
name = var.networks_list.orientdb_se
|
2023-11-23 12:39:22 +01:00
|
|
|
}
|
2023-12-14 12:55:20 +01:00
|
|
|
user_data = file("${var.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
|
|
|
|
]
|
|
|
|
}
|
2023-11-23 12:39:22 +01:00
|
|
|
}
|