From fa4d2e785970577f27ab2caa437439d319cce605 Mon Sep 17 00:00:00 2001 From: Arif Ali Date: Thu, 13 Jul 2023 17:08:42 +0100 Subject: [PATCH] Add cinter types and stsstack vars --- openstack/init/04-cinder-type.tf | 17 +++++++++++++++++ openstack/stsstack.tfvars | 2 ++ 2 files changed, 19 insertions(+) create mode 100644 openstack/init/04-cinder-type.tf create mode 100644 openstack/stsstack.tfvars diff --git a/openstack/init/04-cinder-type.tf b/openstack/init/04-cinder-type.tf new file mode 100644 index 0000000..53b7232 --- /dev/null +++ b/openstack/init/04-cinder-type.tf @@ -0,0 +1,17 @@ +resource "openstack_blockstorage_volume_type_v3" "cinder-t1" { + name = "cinder-t1" + description = "Cinder Ceph type" + is_public = true + extra_specs = { + volume_backend_name = "cinder-ceph" + } +} + +resource "openstack_blockstorage_volume_type_v3" "cinder-t2" { + name = "cinder-t2" + description = "Cinder Ceph pool2 type" + is_public = true + extra_specs = { + volume_backend_name = "cinder-ceph-pool2" + } +} diff --git a/openstack/stsstack.tfvars b/openstack/stsstack.tfvars new file mode 100644 index 0000000..9db6fbb --- /dev/null +++ b/openstack/stsstack.tfvars @@ -0,0 +1,2 @@ +cloud = "stsstack" +domain_id = "3739b5bb4e9e417da4ecd72e5efd1185"