Skip to content

Commit e17bed6

Browse files
authored
Merge pull request #40 from stackhpc/volume-types
Support configuring Cinder volume types
2 parents 37ac0df + 07e05c1 commit e17bed6

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed

ansible/openstack-volume-types.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
- name: Ensure OpenStack volume types exist
3+
hosts: localhost
4+
tags:
5+
- volume-types
6+
roles:
7+
- role: stackhpc.openstack.os_volumes
8+
os_volumes_venv: "{{ openstack_venv }}"
9+
os_volumes_auth_type: "{{ openstack_auth_type }}"
10+
os_volumes_auth: "{{ openstack_auth }}"
11+
os_volumes_cacert: "{{ openstack_cacert }}"
12+
os_volumes_types: "{{ openstack_volumes_types }}"

ansible/openstack.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
- import_playbook: openstack-flavors.yml
66
- import_playbook: openstack-images.yml
77
- import_playbook: openstack-host-aggregates.yml
8+
- import_playbook: openstack-volume-types.yml
89
- import_playbook: openstack-container-clusters.yml
910
- import_playbook: openstack-ratings.yml

examples/volume-types.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
###############################################################################
3+
# Configuration of volume types for openstack.
4+
5+
# List of volume types. Format is as required by the stackhpc.os-volumes role.
6+
openstack_volumes_types:
7+
- "{{ openstack_volume_type_ceph_hdd }}"
8+
- "{{ openstack_volume_type_ceph_ssd }}"
9+
10+
# Volume types
11+
openstack_volume_type_ceph_hdd:
12+
name: "ceph-hdd"
13+
description: "Ceph HDD pool"
14+
extra_specs:
15+
volume_backend_name: "replicated-hdd"
16+
17+
openstack_volume_type_ceph_ssd:
18+
name: "ceph-ssd"
19+
description: "Ceph SSD pool"
20+
extra_specs:
21+
volume_backend_name: "replicated-ssd"

0 commit comments

Comments
 (0)