expose_partitions "$1"
+# discover osd_objectstore for ceph-disk based osds
+if [[ $DOCKER_ENV =~ "BLUESTORE" ]]; then
+ DOCKER_ENV="$DOCKER_ENV -e OSD_BLUESTORE=1"
+elif [[ $DOCKER_ENV =~ "JOURNAL" ]]; then
+ DOCKER_ENV="$DOCKER_ENV -e OSD_FILESTORE=1"
+fi
+
{% endif -%}
{% if ansible_distribution == 'Ubuntu' -%}
--security-opt apparmor:unconfined \
{% endif -%}
- {% if osd_objectstore == 'filestore' and not dmcrypt -%}
- -e OSD_FILESTORE=1 \
- -e OSD_DMCRYPT=0 \
- {% endif -%}
- {% if osd_objectstore == 'filestore' and dmcrypt -%}
- -e OSD_FILESTORE=1 \
+ {% if dmcrypt -%}
-e OSD_DMCRYPT=1 \
- {% endif -%}
- {% if osd_objectstore == 'bluestore' and not dmcrypt -%}
- -e OSD_BLUESTORE=1 \
+ {% else -%}
-e OSD_DMCRYPT=0 \
{% endif -%}
- {% if osd_objectstore == 'bluestore' and dmcrypt -%}
- -e OSD_BLUESTORE=1 \
- -e OSD_DMCRYPT=1 \
- {% endif -%}
-e CLUSTER={{ cluster }} \
{% if (ceph_tcmalloc_max_total_thread_cache | int) > 0 and osd_objectstore == 'filestore' -%}
-e TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES={{ ceph_tcmalloc_max_total_thread_cache }} \