Initial platform config

This commit is contained in:
Khue Doan 2020-10-28 23:30:16 +07:00
parent 4eb6362dbb
commit 3dee58fa4b
3 changed files with 17 additions and 0 deletions

6
platform/main.tf Normal file
View File

@ -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"
}

3
platform/providers.tf Normal file
View File

@ -0,0 +1,3 @@
provider "openstack" {
# source admin-openrc.sh
}

8
platform/versions.tf Normal file
View File

@ -0,0 +1,8 @@
terraform {
required_providers {
openstack = {
source = "terraform-provider-openstack/openstack"
}
}
required_version = ">= 0.13"
}