ceph-detect-init: ceph-disk helper to select the init system
On Ubuntu 14.04
$ ceph-detect-init --default=sysvinit
upstart
The ceph-detect-init helper is a copy/paste of the ceph-deploy init
system detection found at:
https://github.com/ceph/ceph-deploy/blob/
4992ef0993c5ab41710c1f1e126886d43c78cc3a/ceph_deploy/hosts/__init__.py#L15
It is meant to be used by both ceph-disk and ceph-deploy to avoid
duplicating the logic. Some operating systems implement more than one
init system and ceph-detect-init will not return the default one, it
will return the init system suitable for ceph deployment.
ceph-detect-init is implemented as a standalone python module suitable
to be published at https://pypi.python.org/pypi/ceph-detect-init, with
unit tests and integration tests (based on docker) for the following
platforms:
centos-6
centos-7
debian-jessie
debian-sid
debian-squeeze
debian-wheezy
fedora-21
opensuse-13.1
opensuse-13.2
ubuntu-12.04
ubuntu-14.04
ubuntu-15.04
The tests can be run without network access with run-tox.sh, provided
pip wheel previously populated the wheelhouse directory.
Signed-off-by: Owen Synge <osynge@suse.com>
Signed-off-by: Loic Dachary <ldachary@redhat.com>