]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
Set init_system fact and reference in ceph-osd role 755/head
authorMatt Thompson <mattt@defunct.ca>
Wed, 4 May 2016 10:47:24 +0000 (11:47 +0100)
committerMatt Thompson <mattt@defunct.ca>
Wed, 4 May 2016 11:05:31 +0000 (12:05 +0100)
commited2b7757d43ba7af96d97a9f345aba38e4410bd2
tree45a1d73e95c737ec21333b94ac4d44c2fd0faa9f
parent896097e6aae79b8b2737df0d58ab8f7d02b30dc5
Set init_system fact and reference in ceph-osd role

The ceph-osd role currently uses ansible_service_mgr, which is a fact
only available on ansible 2.x and greater.  This commit sets a similar
fact called init_system which will store the contents of /proc/1/comm
(systemd, init, etc.) and then references it ceph-osd instead.

Closes #741
roles/ceph-common/tasks/facts.yml
roles/ceph-osd/tasks/scenarios/osd_directory.yml