Allow specifying erasure as the pool type

Change-Id: I581efd7c0d138cb78ab3afd755521f3fb375c0ee
Partially-Implements: blueprint ceph-improvements
This commit is contained in:
Sam Yaple 2015-10-18 19:38:42 +00:00
parent 331e2f3bef
commit 6932ca48b8
5 changed files with 21 additions and 4 deletions

View File

@ -151,6 +151,7 @@ enable_ironic: "no"
ironic_keystone_user: "ironic" ironic_keystone_user: "ironic"
#################### ####################
# RabbitMQ options # RabbitMQ options
#################### ####################
@ -167,3 +168,11 @@ haproxy_user: "openstack"
# Cinder - Block Storage options # Cinder - Block Storage options
################################# #################################
cinder_volume_driver: "{{ 'ceph' if enable_ceph | bool else 'lvm' }}" cinder_volume_driver: "{{ 'ceph' if enable_ceph | bool else 'lvm' }}"
###################
# Ceph options
###################
# A requirement for using the erasure-coded pools is you must setup a cache tier
# Valid options are [ erasure, replicated ]
ceph_pool_type: "replicated"

View File

@ -19,7 +19,7 @@
# TODO(SamYaple): Improve failed_when and changed_when tests # TODO(SamYaple): Improve failed_when and changed_when tests
- name: Creating ceph pool for cinder - name: Creating ceph pool for cinder
command: docker exec ceph_mon ceph osd pool create volumes 128 command: docker exec ceph_mon ceph osd pool create volumes 128 {{ ceph_pool_type }}
delegate_to: "{{ groups['ceph-mon'][0] }}" delegate_to: "{{ groups['ceph-mon'][0] }}"
changed_when: False changed_when: False
failed_when: False failed_when: False
@ -27,7 +27,7 @@
# TODO(SamYaple): Improve failed_when and changed_when tests # TODO(SamYaple): Improve failed_when and changed_when tests
- name: Creating ceph pool for cinder-backup - name: Creating ceph pool for cinder-backup
command: docker exec ceph_mon ceph osd pool create backups 128 command: docker exec ceph_mon ceph osd pool create backups 128 {{ ceph_pool_type }}
delegate_to: "{{ groups['ceph-mon'][0] }}" delegate_to: "{{ groups['ceph-mon'][0] }}"
changed_when: False changed_when: False
failed_when: False failed_when: False

View File

@ -13,7 +13,7 @@
# TODO(SamYaple): Improve failed_when and changed_when tests # TODO(SamYaple): Improve failed_when and changed_when tests
- name: Creating ceph pool for glance - name: Creating ceph pool for glance
command: docker exec ceph_mon ceph osd pool create images 128 command: docker exec ceph_mon ceph osd pool create images 128 {{ ceph_pool_type }}
delegate_to: "{{ groups['ceph-mon'][0] }}" delegate_to: "{{ groups['ceph-mon'][0] }}"
changed_when: False changed_when: False
failed_when: False failed_when: False

View File

@ -19,7 +19,7 @@
# TODO(SamYaple): Improve failed_when and changed_when tests # TODO(SamYaple): Improve failed_when and changed_when tests
- name: Creating ceph pool for vms - name: Creating ceph pool for vms
command: docker exec ceph_mon ceph osd pool create vms 128 command: docker exec ceph_mon ceph osd pool create vms 128 {{ ceph_pool_type }}
delegate_to: "{{ groups['ceph-mon'][0] }}" delegate_to: "{{ groups['ceph-mon'][0] }}"
changed_when: False changed_when: False
failed_when: False failed_when: False

View File

@ -84,3 +84,11 @@ neutron_external_interface: "eth1"
# OpenStack services can be enabled or disabled with these options # OpenStack services can be enabled or disabled with these options
#enable_cinder: "yes" #enable_cinder: "yes"
#enable_heat: "no" #enable_heat: "no"
###################
# Ceph options
###################
# A requirement for using the erasure-coded pools is you must setup a cache tier
# Valid options are [ erasure, replicated ]
# ceph_pool_type: "replicated"