Bug #5911 » common.py.patch
ceph_deploy/hosts/common.py | ||
---|---|---|
from ceph_deploy.util.wrappers import check_call
|
||
from ceph_deploy.util.context import remote
|
||
from ceph_deploy import conf
|
||
from ceph_deploy import lsb
|
||
from StringIO import StringIO
|
||
... | ... | |
logger.debug('remote hostname: %s' % hostname)
|
||
path = paths.mon.path(args.cluster, hostname)
|
||
done_path = paths.mon.done(args.cluster, hostname)
|
||
if distro.name.lower() == 'ubuntu':
|
||
init = 'upstart'
|
||
else:
|
||
init = 'sysvinit'
|
||
init = lsb.choose_init(distro.name, distro.codename)
|
||
init_path = paths.mon.init(args.cluster, hostname, init)
|
||