From a73f06f61b8c24e0c8aef6af336ee7c2a2610346 Mon Sep 17 00:00:00 2001 From: Magnus Andersson Date: Thu, 11 Jan 2024 14:26:02 +0100 Subject: [PATCH] Initial commit --- main.tf | 23 +++++++++++++++++++++++ network.tf | 4 ++++ 2 files changed, 27 insertions(+) create mode 100644 main.tf create mode 100644 network.tf diff --git a/main.tf b/main.tf new file mode 100644 index 0000000..e80b20b --- /dev/null +++ b/main.tf @@ -0,0 +1,23 @@ +# Define required providers +terraform { +required_version = ">= 0.14.0" + required_providers { + openstack = { + source = "terraform-provider-openstack/openstack" + version = "~> 1.53.0" + } + local = { + source = "hashicorp/local" + version = "2.4.1" + } + } +} + +provider "openstack" { + # Source application credentials to use environemnt variables to provide auth +} + +provider "local" { + # Configuration options +} + diff --git a/network.tf b/network.tf new file mode 100644 index 0000000..6ea4eff --- /dev/null +++ b/network.tf @@ -0,0 +1,4 @@ +data "openstack_networking_subnet_v2" "public_sub" { + name = "public-v4" # Name of subnet to be used +} +