commit a73f06f61b8c24e0c8aef6af336ee7c2a2610346 Author: Magnus Andersson Date: Thu Jan 11 14:26:02 2024 +0100 Initial commit 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 +} +