mirror of https://github.com/ceph/ceph-ansible.git
commit
a695b2c08f
|
@ -15,8 +15,6 @@
|
||||||
changed_when: false
|
changed_when: false
|
||||||
failed_when: false
|
failed_when: false
|
||||||
register: disk_list
|
register: disk_list
|
||||||
when:
|
|
||||||
- ceph_release_num[ceph_release] < ceph_release_num.kraken
|
|
||||||
|
|
||||||
- name: generate ceph osd docker run script
|
- name: generate ceph osd docker run script
|
||||||
become: true
|
become: true
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
#############
|
#############
|
||||||
# FUNCTIONS #
|
# FUNCTIONS #
|
||||||
#############
|
#############
|
||||||
{% if disk_list.get("rc", 1) == 0 -%}
|
{% if disk_list.get('rc') == 0 -%}
|
||||||
function expose_partitions () {
|
function expose_partitions () {
|
||||||
DOCKER_ENV=$(docker run --rm --name expose_partitions_${1} --privileged=true -v /dev/:/dev/ -v /etc/ceph:/etc/ceph -e CLUSTER={{ cluster }} -e OSD_DEVICE=/dev/${1} {{ ceph_docker_registry }}/{{ ceph_docker_image }}:{{ ceph_docker_image_tag }} disk_list)
|
DOCKER_ENV=$(docker run --rm --name expose_partitions_${1} --privileged=true -v /dev/:/dev/ -v /etc/ceph:/etc/ceph -e CLUSTER={{ cluster }} -e OSD_DEVICE=/dev/${1} {{ ceph_docker_registry }}/{{ ceph_docker_image }}:{{ ceph_docker_image_tag }} disk_list)
|
||||||
docker rm -f expose_partitions_${1}
|
docker rm -f expose_partitions_${1}
|
||||||
|
|
Loading…
Reference in New Issue