123 lines
3.8 KiB
Terraform
123 lines
3.8 KiB
Terraform
|
# Accounting dashboard harvester
|
||
|
resource "openstack_compute_instance_v2" "accounting_dashboard_harvester" {
|
||
|
name = var.accounting_dashboard_harvester.name
|
||
|
availability_zone_hints = var.availability_zones_names.availability_zone_no_gpu
|
||
|
flavor_name = var.accounting_dashboard_harvester.flavor
|
||
|
key_pair = var.ssh_key_file.name
|
||
|
security_groups = [var.default_security_group_name]
|
||
|
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 {
|
||
|
name = var.orientdb_se_net.network_name
|
||
|
}
|
||
|
network {
|
||
|
name = var.shared_postgresql_server_data.network_name
|
||
|
}
|
||
|
user_data = "${file("${var.ubuntu1804_data_file}")}"
|
||
|
}
|
||
|
|
||
|
# Resource checker
|
||
|
resource "openstack_compute_instance_v2" "resource_checker" {
|
||
|
name = var.resource_checker.name
|
||
|
availability_zone_hints = var.availability_zones_names.availability_zone_no_gpu
|
||
|
flavor_name = var.resource_checker.flavor
|
||
|
key_pair = var.ssh_key_file.name
|
||
|
security_groups = [var.default_security_group_name]
|
||
|
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 {
|
||
|
name = var.orientdb_se_net.network_name
|
||
|
}
|
||
|
user_data = "${file("${var.ubuntu1804_data_file}")}"
|
||
|
}
|
||
|
|
||
|
# Social data indexer
|
||
|
resource "openstack_compute_instance_v2" "social_data_indexer" {
|
||
|
name = var.social_data_indexer.name
|
||
|
availability_zone_hints = var.availability_zones_names.availability_zone_no_gpu
|
||
|
flavor_name = var.social_data_indexer.flavor
|
||
|
key_pair = var.ssh_key_file.name
|
||
|
security_groups = [var.default_security_group_name]
|
||
|
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 {
|
||
|
name = var.orientdb_se_net.network_name
|
||
|
}
|
||
|
user_data = "${file("${var.ubuntu1804_data_file}")}"
|
||
|
}
|
||
|
|
||
|
# Accounting insert storage
|
||
|
resource "openstack_compute_instance_v2" "accounting_insert_storage" {
|
||
|
name = var.accounting_insert_storage.name
|
||
|
availability_zone_hints = var.availability_zones_names.availability_zone_no_gpu
|
||
|
flavor_name = var.accounting_insert_storage.flavor
|
||
|
key_pair = var.ssh_key_file.name
|
||
|
security_groups = [var.default_security_group_name]
|
||
|
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 {
|
||
|
name = var.orientdb_se_net.network_name
|
||
|
}
|
||
|
user_data = "${file("${var.ubuntu1804_data_file}")}"
|
||
|
}
|
||
|
|
||
|
# Accounting aggregator
|
||
|
resource "openstack_compute_instance_v2" "accounting_aggregator" {
|
||
|
name = var.accounting_aggregator.name
|
||
|
availability_zone_hints = var.availability_zones_names.availability_zone_no_gpu
|
||
|
flavor_name = var.accounting_aggregator.flavor
|
||
|
key_pair = var.ssh_key_file.name
|
||
|
security_groups = [var.default_security_group_name]
|
||
|
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 {
|
||
|
name = var.orientdb_se_net.network_name
|
||
|
}
|
||
|
user_data = "${file("${var.ubuntu1804_data_file}")}"
|
||
|
}
|