Merge pull request #1967 from ceph/use_systemd_module

Use systemd module instead of service.
pull/1952/merge
Sébastien Han 2017-09-29 16:35:10 +02:00 committed by GitHub
commit 0da6d8e356
5 changed files with 10 additions and 54 deletions

View File

@ -8,19 +8,10 @@
group: "root"
mode: "0644"
- name: enable systemd unit file for mds instance
shell: systemctl enable ceph-mds@{{ ansible_hostname }}.service
failed_when: false
changed_when: false
- name: reload systemd unit files
shell: systemctl daemon-reload
changed_when: false
failed_when: false
- name: systemd start mds container
service:
systemd:
name: ceph-mds@{{ ansible_hostname }}
state: started
enabled: yes
daemon_reload: yes
changed_when: false

View File

@ -8,19 +8,10 @@
group: "root"
mode: "0644"
- name: enable systemd unit file for mgr instance
shell: systemctl enable ceph-mgr@{{ ansible_hostname }}.service
failed_when: false
changed_when: false
- name: reload systemd unit files
shell: systemctl daemon-reload
changed_when: false
failed_when: false
- name: systemd start mgr container
service:
systemd:
name: ceph-mgr@{{ ansible_hostname }}
state: started
enabled: yes
daemon_reload: yes
changed_when: false

View File

@ -49,19 +49,10 @@
group: "root"
mode: "0644"
- name: enable systemd unit file for mon instance
shell: systemctl enable ceph-mon@{{ ansible_hostname }}.service
failed_when: false
changed_when: false
- name: reload systemd unit files
shell: systemctl daemon-reload
changed_when: false
failed_when: false
- name: systemd start mon container
service:
systemd:
name: ceph-mon@{{ ansible_hostname }}
state: started
enabled: yes
daemon_reload: yes
changed_when: false

View File

@ -28,19 +28,11 @@
group: "root"
mode: "0644"
- name: enable systemd unit file for osd instance
shell: systemctl enable ceph-osd@{{ item | basename }}.service
changed_when: false
with_items: "{{ devices }}"
- name: reload systemd unit files
shell: systemctl daemon-reload
changed_when: false
- name: systemd start osd container
service:
systemd:
name: ceph-osd@{{ item | basename }}
state: started
enabled: yes
daemon_reload: yes
changed_when: false
with_items: "{{ devices }}"

View File

@ -9,19 +9,10 @@
group: "root"
mode: "0644"
- name: enable systemd unit file for rbd mirror instance
command: systemctl enable ceph-rbd-mirror@rbd-mirror.{{ ansible_hostname }}.service
failed_when: false
changed_when: false
- name: reload systemd unit files
command: systemctl daemon-reload
changed_when: false
failed_when: false
- name: systemd start rbd mirror container
service:
systemd:
name: ceph-rbd-mirror@rbd-mirror.{{ ansible_hostname }}
state: started
enabled: yes
daemon_reload: yes
changed_when: false