2023-11-29 18:01:34 +01:00
|
|
|
# Define required providers
|
|
|
|
terraform {
|
|
|
|
required_version = ">= 0.14.0"
|
|
|
|
required_providers {
|
|
|
|
openstack = {
|
|
|
|
source = "terraform-provider-openstack/openstack"
|
|
|
|
version = "~> 1.53.0"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module "ssh_settings" {
|
|
|
|
source = "../../modules/ssh-key-ref"
|
|
|
|
}
|
|
|
|
|
2023-11-06 13:06:47 +01:00
|
|
|
resource "openstack_compute_keypair_v2" "initial_ssh_key" {
|
2023-11-29 18:01:34 +01:00
|
|
|
name = module.ssh_settings.ssh_key_name
|
|
|
|
public_key = file("${module.ssh_settings.ssh_key_file}.pub")
|
2023-11-06 13:06:47 +01:00
|
|
|
}
|