diff --git a/ansible/group_vars/all.yml b/ansible/group_vars/all.yml index 845c7e4432..a44369dd8d 100644 --- a/ansible/group_vars/all.yml +++ b/ansible/group_vars/all.yml @@ -151,6 +151,7 @@ enable_ironic: "no" ironic_keystone_user: "ironic" + #################### # RabbitMQ options #################### @@ -167,3 +168,11 @@ haproxy_user: "openstack" # Cinder - Block Storage options ################################# 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" diff --git a/ansible/roles/cinder/tasks/ceph.yml b/ansible/roles/cinder/tasks/ceph.yml index 9275318837..a26b99bb24 100644 --- a/ansible/roles/cinder/tasks/ceph.yml +++ b/ansible/roles/cinder/tasks/ceph.yml @@ -19,7 +19,7 @@ # TODO(SamYaple): Improve failed_when and changed_when tests - 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] }}" changed_when: False failed_when: False @@ -27,7 +27,7 @@ # TODO(SamYaple): Improve failed_when and changed_when tests - 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] }}" changed_when: False failed_when: False diff --git a/ansible/roles/glance/tasks/ceph.yml b/ansible/roles/glance/tasks/ceph.yml index b1270eb8ee..f690ecd70e 100644 --- a/ansible/roles/glance/tasks/ceph.yml +++ b/ansible/roles/glance/tasks/ceph.yml @@ -13,7 +13,7 @@ # TODO(SamYaple): Improve failed_when and changed_when tests - 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] }}" changed_when: False failed_when: False diff --git a/ansible/roles/nova/tasks/ceph.yml b/ansible/roles/nova/tasks/ceph.yml index b7dffcc576..4f68a469e7 100644 --- a/ansible/roles/nova/tasks/ceph.yml +++ b/ansible/roles/nova/tasks/ceph.yml @@ -19,7 +19,7 @@ # TODO(SamYaple): Improve failed_when and changed_when tests - 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] }}" changed_when: False failed_when: False diff --git a/etc/kolla/globals.yml b/etc/kolla/globals.yml index 57b9e27bd8..1a078295d2 100644 --- a/etc/kolla/globals.yml +++ b/etc/kolla/globals.yml @@ -84,3 +84,11 @@ neutron_external_interface: "eth1" # OpenStack services can be enabled or disabled with these options #enable_cinder: "yes" #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"