mirror of https://github.com/ceph/ceph-ansible.git
lvm_osds: ensure osd daemons are started
Signed-off-by: Andrew Schoen <aschoen@redhat.com>pull/1716/head
parent
d8aea71e31
commit
63b7e3d36c
|
@ -81,21 +81,3 @@
|
|||
- not item.0.get("skipped")
|
||||
- item.0.get("rc", 0) == 0
|
||||
- not osd_auto_discovery
|
||||
|
||||
- include: osd_fragment.yml
|
||||
when: crush_location
|
||||
|
||||
- name: get osd id
|
||||
shell: |
|
||||
ls /var/lib/ceph/osd/ | sed 's/.*-//'
|
||||
changed_when: false
|
||||
failed_when: false
|
||||
always_run: true
|
||||
register: osd_id
|
||||
|
||||
- name: start and add that the osd service(s) to the init sequence
|
||||
service:
|
||||
name: ceph-osd@{{ item }}
|
||||
state: started
|
||||
with_items: "{{ (osd_id|default({})).stdout_lines|default([]) }}"
|
||||
changed_when: false
|
||||
|
|
|
@ -28,6 +28,13 @@
|
|||
# Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)
|
||||
static: False
|
||||
|
||||
- name: ensure OSD daemons are started
|
||||
include: start_osds.yml
|
||||
when:
|
||||
- not containerized_deployment
|
||||
# Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)
|
||||
static: False
|
||||
|
||||
- include: ./docker/main.yml
|
||||
when: containerized_deployment
|
||||
# Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
|
||||
- include: osd_fragment.yml
|
||||
when: crush_location
|
||||
|
||||
- name: get osd id
|
||||
shell: |
|
||||
ls /var/lib/ceph/osd/ | sed 's/.*-//'
|
||||
changed_when: false
|
||||
failed_when: false
|
||||
always_run: true
|
||||
register: osd_id
|
||||
|
||||
- name: start and add that the osd service(s) to the init sequence
|
||||
service:
|
||||
name: ceph-osd@{{ item }}
|
||||
state: started
|
||||
with_items: "{{ (osd_id|default({})).stdout_lines|default([]) }}"
|
||||
changed_when: false
|
Loading…
Reference in New Issue