38 lines
696 B
Terraform
38 lines
696 B
Terraform
|
# Define required providers
|
||
|
terraform {
|
||
|
required_version = ">= 0.14.0"
|
||
|
required_providers {
|
||
|
openstack = {
|
||
|
source = "terraform-provider-openstack/openstack"
|
||
|
version = "~> 1.53.0"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
data "terraform_remote_state" "privnet_dns_router" {
|
||
|
backend = "local"
|
||
|
|
||
|
config = {
|
||
|
path = "../project-setup/terraform.tfstate"
|
||
|
}
|
||
|
}
|
||
|
|
||
|
data "terraform_remote_state" "main_infrastructure" {
|
||
|
backend = "local"
|
||
|
|
||
|
config = {
|
||
|
path = "../basic-infrastructure/terraform.tfstate"
|
||
|
}
|
||
|
}
|
||
|
|
||
|
# SSH settings
|
||
|
module "ssh_settings" {
|
||
|
source = "../../modules/ssh-key-ref"
|
||
|
}
|
||
|
#
|
||
|
# Uses common_variables as module
|
||
|
#
|
||
|
module "common_variables" {
|
||
|
source = "../../modules/common_variables"
|
||
|
}
|