From 3dee58fa4b81cc22768c7f0863dec306568d9277 Mon Sep 17 00:00:00 2001 From: Khue Doan Date: Wed, 28 Oct 2020 23:30:16 +0700 Subject: [PATCH] Initial platform config --- platform/main.tf | 6 ++++++ platform/providers.tf | 3 +++ platform/versions.tf | 8 ++++++++ 3 files changed, 17 insertions(+) create mode 100644 platform/main.tf create mode 100644 platform/providers.tf create mode 100644 platform/versions.tf diff --git a/platform/main.tf b/platform/main.tf new file mode 100644 index 00000000..3fc82ab8 --- /dev/null +++ b/platform/main.tf @@ -0,0 +1,6 @@ +resource "openstack_images_image_v2" "centos8" { + name = "CentOS_8" + image_source_url = "https://cloud.centos.org/centos/8/x86_64/images/CentOS-8-GenericCloud-8.2.2004-20200611.2.x86_64.qcow2" + container_format = "bare" + disk_format = "qcow2" +} diff --git a/platform/providers.tf b/platform/providers.tf new file mode 100644 index 00000000..4552a7bb --- /dev/null +++ b/platform/providers.tf @@ -0,0 +1,3 @@ +provider "openstack" { + # source admin-openrc.sh +} diff --git a/platform/versions.tf b/platform/versions.tf new file mode 100644 index 00000000..76116996 --- /dev/null +++ b/platform/versions.tf @@ -0,0 +1,8 @@ +terraform { + required_providers { + openstack = { + source = "terraform-provider-openstack/openstack" + } + } + required_version = ">= 0.13" +}