mirror of https://github.com/ceph/ceph-ansible.git
Changes due to review
parent
5705cc71a3
commit
604ea77ecc
|
@ -6,7 +6,9 @@
|
|||
failed_when: false
|
||||
|
||||
- include: checks.yml
|
||||
when: ceph_health.rc != 0 and not osd_containerized_deployment_with_kv
|
||||
when:
|
||||
ceph_health.rc != 0 and
|
||||
not osd_containerized_deployment_with_kv
|
||||
|
||||
- name: check if it is Atomic host
|
||||
stat: path=/run/ostree-booted
|
||||
|
|
|
@ -24,7 +24,8 @@
|
|||
env: "OSD_DEVICE={{ item }},{{ ceph_osd_docker_prepare_env }}"
|
||||
volumes: "/var/lib/ceph:/var/lib/ceph,/etc/ceph:/etc/ceph,/dev/:/dev/"
|
||||
with_items: ceph_osd_docker_devices
|
||||
when: ceph_osd_docker_prepare_env is defined and
|
||||
when:
|
||||
ceph_osd_docker_prepare_env is defined and
|
||||
not osd_containerized_deployment_with_kv
|
||||
|
||||
- name: prepare ceph osd disk with kv_store
|
||||
|
@ -39,7 +40,8 @@
|
|||
env: "OSD_DEVICE={{ item }},KV_TYPE={{kv_type}},KV_IP={{kv_endpoint}},{{ ceph_osd_docker_prepare_env }}"
|
||||
ignore_errors: true
|
||||
with_items: ceph_osd_docker_devices
|
||||
when: ceph_osd_docker_prepare_env is defined and
|
||||
when:
|
||||
ceph_osd_docker_prepare_env is defined and
|
||||
osd_containerized_deployment_with_kv
|
||||
|
||||
# Use systemd to manage container on Atomic host
|
||||
|
@ -59,7 +61,8 @@
|
|||
dest: /etc/systemd/system/multi-user.target.wants/ceph-osd@{{ item | basename }}.service
|
||||
state: link
|
||||
with_items: ceph_osd_docker_devices
|
||||
when: is_atomic or
|
||||
when:
|
||||
is_atomic or
|
||||
ansible_os_family == 'CoreOS'
|
||||
|
||||
- name: enable systemd unit file for osd instance
|
||||
|
@ -67,12 +70,14 @@
|
|||
failed_when: false
|
||||
changed_when: false
|
||||
with_items: ceph_osd_docker_devices
|
||||
when: is_atomic or
|
||||
when:
|
||||
is_atomic or
|
||||
ansible_os_family == 'CoreOS'
|
||||
|
||||
- name: reload systemd unit files
|
||||
shell: systemctl daemon-reload
|
||||
when: is_atomic or
|
||||
when:
|
||||
is_atomic or
|
||||
ansible_os_family == 'CoreOS'
|
||||
|
||||
- name: systemd start osd container
|
||||
|
@ -82,7 +87,8 @@
|
|||
enabled: yes
|
||||
changed_when: false
|
||||
with_items: ceph_osd_docker_devices
|
||||
when: is_atomic or
|
||||
when:
|
||||
is_atomic or
|
||||
ansible_os_family == 'CoreOS'
|
||||
|
||||
- name: run the ceph osd docker image
|
||||
|
@ -96,7 +102,8 @@
|
|||
env: "OSD_DEVICE={{ item }},{{ ceph_osd_docker_extra_env }}"
|
||||
volumes: "/var/lib/ceph:/var/lib/ceph,/etc/ceph:/etc/ceph,/dev/:/dev/"
|
||||
with_items: ceph_osd_docker_devices
|
||||
when: not is_atomic and
|
||||
when:
|
||||
not is_atomic and
|
||||
ansible_os_family != 'CoreOS' and
|
||||
not osd_containerized_deployment_with_kv
|
||||
|
||||
|
@ -112,6 +119,7 @@
|
|||
env: "KV_TYPE={{kv_type}},KV_IP={{kv_endpoint}},OSD_DEVICE={{ item }},{{ ceph_osd_docker_extra_env }}"
|
||||
volumes: "/dev/:/dev/"
|
||||
with_items: ceph_osd_docker_devices
|
||||
when: not is_atomic and
|
||||
when:
|
||||
not is_atomic and
|
||||
ansible_os_family != 'CoreOS' and
|
||||
osd_containerized_deployment_with_kv
|
||||
|
|
|
@ -3,13 +3,19 @@
|
|||
when: not osd_containerized_deployment
|
||||
|
||||
- include: ./scenarios/journal_collocation.yml
|
||||
when: journal_collocation and not osd_containerized_deployment
|
||||
when:
|
||||
journal_collocation and
|
||||
not osd_containerized_deployment
|
||||
|
||||
- include: ./scenarios/raw_multi_journal.yml
|
||||
when: raw_multi_journal and not osd_containerized_deployment
|
||||
when:
|
||||
raw_multi_journal and
|
||||
not osd_containerized_deployment
|
||||
|
||||
- include: ./scenarios/osd_directory.yml
|
||||
when: osd_directory and not osd_containerized_deployment
|
||||
when:
|
||||
osd_directory and
|
||||
not osd_containerized_deployment
|
||||
|
||||
- include: ./docker/main.yml
|
||||
when: osd_containerized_deployment
|
||||
|
|
Loading…
Reference in New Issue