Manage the SSH keys in a separate task.

This commit is contained in:
Andrea Dell'Amico 2023-11-06 13:06:47 +01:00
parent 064e5c03b8
commit 3cb8725d54
Signed by untrusted user: andrea.dellamico
GPG Key ID: 147ABE6CEB9E20FF
10 changed files with 31 additions and 6 deletions

View File

@ -1,4 +1,4 @@
# resource "openstack_compute_keypair_v2" "initial_ssh_key" {
# name = var.ssh_key_file.name
# public_key = "${file("${var.ssh_key_file.file}.pub")}"
# }
resource "openstack_compute_keypair_v2" "initial_ssh_key" {
name = var.ssh_key_file.name
public_key = "${file("${var.ssh_key_file.file}.pub")}"
}

View File

@ -1 +0,0 @@
../../common_setups/16-ssh-keys.tf

View File

@ -0,0 +1 @@
../../common_variables/00-terraform-provider.tf

View File

@ -0,0 +1 @@
../../common_variables/05-projects-and-users-vars.tf

View File

@ -0,0 +1 @@
../../common_setups/ssh-keys.tf

View File

@ -1 +0,0 @@
../../common_setups/16-ssh-keys.tf

View File

@ -0,0 +1,21 @@
shared_postgresql_server_data = {
name ="shared-postgresql-server"
flavor = "m1.large"
vol_data_name = "shared-postgresql-data"
vol_data_size = "300"
vol_data_device = "/dev/vdb"
vol_backup_name = "shared-postgresql-backup-data"
vol_backup_size = "100"
vol_backup_device = "/dev/vdc"
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"
}
# Provided in the output of the project setup
main_private_network_id = "020df98d-ae72-452a-b376-3b6dc289acac"
dns_zone_id = "74135b34-1a9c-4c01-8cf0-22450a5660c4"

View File

@ -0,0 +1 @@
../../common_variables/00-terraform-provider.tf

View File

@ -0,0 +1 @@
../../common_variables/05-projects-and-users-vars.tf

View File

@ -0,0 +1 @@
../../common_setups/ssh-keys.tf