]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-detect-init: ceph-disk helper to select the init system
authorLoic Dachary <ldachary@redhat.com>
Sat, 2 May 2015 14:25:22 +0000 (16:25 +0200)
committerLoic Dachary <ldachary@redhat.com>
Tue, 5 May 2015 23:54:32 +0000 (01:54 +0200)
commit73e2c7426242c8d7651f9e321282188d2987080b
tree16488b64b5cdecda4cc5565e04f7fbacb2b1f3d9
parent2b5f0fc6ae239bff772cd843ee296986346341e2
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>
31 files changed:
src/ceph-detect-init/.gitignore [new file with mode: 0644]
src/ceph-detect-init/AUTHORS.rst [new file with mode: 0644]
src/ceph-detect-init/MANIFEST.in [new file with mode: 0644]
src/ceph-detect-init/README.rst [new file with mode: 0644]
src/ceph-detect-init/ceph_detect_init/__init__.py [new file with mode: 0644]
src/ceph-detect-init/ceph_detect_init/centos/__init__.py [new file with mode: 0644]
src/ceph-detect-init/ceph_detect_init/debian/__init__.py [new file with mode: 0644]
src/ceph-detect-init/ceph_detect_init/exc.py [new file with mode: 0644]
src/ceph-detect-init/ceph_detect_init/fedora/__init__.py [new file with mode: 0644]
src/ceph-detect-init/ceph_detect_init/main.py [new file with mode: 0644]
src/ceph-detect-init/ceph_detect_init/rhel/__init__.py [new file with mode: 0644]
src/ceph-detect-init/ceph_detect_init/suse/__init__.py [new file with mode: 0644]
src/ceph-detect-init/integration/centos-6.dockerfile [new file with mode: 0644]
src/ceph-detect-init/integration/centos-7.dockerfile [new file with mode: 0644]
src/ceph-detect-init/integration/debian-jessie.dockerfile [new file with mode: 0644]
src/ceph-detect-init/integration/debian-sid.dockerfile [new file with mode: 0644]
src/ceph-detect-init/integration/debian-squeeze.dockerfile [new file with mode: 0644]
src/ceph-detect-init/integration/debian-wheezy.dockerfile [new file with mode: 0644]
src/ceph-detect-init/integration/fedora-21.dockerfile [new file with mode: 0644]
src/ceph-detect-init/integration/opensuse-13.1.dockerfile [new file with mode: 0644]
src/ceph-detect-init/integration/opensuse-13.2.dockerfile [new file with mode: 0644]
src/ceph-detect-init/integration/test_main.py [new file with mode: 0644]
src/ceph-detect-init/integration/ubuntu-12.04.dockerfile [new file with mode: 0644]
src/ceph-detect-init/integration/ubuntu-14.04.dockerfile [new file with mode: 0644]
src/ceph-detect-init/integration/ubuntu-15.04.dockerfile [new file with mode: 0644]
src/ceph-detect-init/requirements.txt [new file with mode: 0644]
src/ceph-detect-init/run-tox.sh [new file with mode: 0755]
src/ceph-detect-init/setup.py [new file with mode: 0644]
src/ceph-detect-init/test-requirements.txt [new file with mode: 0644]
src/ceph-detect-init/tests/test_all.py [new file with mode: 0644]
src/ceph-detect-init/tox.ini [new file with mode: 0644]