+import mon
from install import install
# Allow to set some information about this distro
--- /dev/null
+from create import create
--- /dev/null
+from ceph_deploy.util.wrappers import check_call
+from ceph_deploy.hosts import common
+
+
+def create(distro, logger, args, monitor_keyring):
+ hostname = distro.sudo_conn.modules.socket.gethostname().split('.')[0]
+ common.mon_create(distro, logger, args, monitor_keyring, hostname)
+
+ check_call(
+ distro.sudo_conn,
+ logger,
+ [
+ '/sbin/service',
+ 'ceph',
+ 'start',
+ 'mon.{hostname}'.format(hostname=hostname)
+ ],
+ )
+import mon
from install import install
# Allow to set some information about this distro
--- /dev/null
+from create import create
--- /dev/null
+from ceph_deploy.util.wrappers import check_call
+from ceph_deploy.hosts import common
+
+
+def create(distro, logger, args, monitor_keyring):
+ hostname = distro.sudo_conn.modules.socket.gethostname().split('.')[0]
+ common.mon_create(distro, logger, args, monitor_keyring, hostname)
+
+ if distro.name.lower() == 'ubuntu':
+ check_call(
+ distro.sudo_conn,
+ logger,
+ [
+ 'initctl',
+ 'emit',
+ 'ceph-mon',
+ 'cluster={cluster}'.format(cluster=args.cluster),
+ 'id={hostname}'.format(hostname=hostname),
+ ],
+ )
+
+ else: # Debian doesn't use initctl
+ check_call(
+ distro.sudo_conn,
+ logger,
+ [
+ '/sbin/service',
+ 'ceph',
+ 'start',
+ 'mon.{hostname}'.format(hostname=hostname)
+ ],
+ )
+import mon
from install import install
# Allow to set some information about this distro
--- /dev/null
+from create import create
--- /dev/null
+from ceph_deploy.util.wrappers import check_call
+from ceph_deploy.hosts import common
+
+
+def create(distro, logger, args, monitor_keyring):
+ hostname = distro.sudo_conn.modules.socket.gethostname().split('.')[0]
+ common.mon_create(distro, logger, args, monitor_keyring, hostname)
+
+ check_call(
+ distro.sudo_conn,
+ logger,
+ [
+ '/sbin/service',
+ 'ceph',
+ 'start',
+ 'mon.{hostname}'.format(hostname=hostname)
+ ],
+ )
+import mon
from install import install
# Allow to set some information about this distro
--- /dev/null
+from create import create
--- /dev/null
+from ceph_deploy.util.wrappers import check_call
+from ceph_deploy.hosts import common
+
+
+def create(distro, logger, args, monitor_keyring):
+ hostname = distro.sudo_conn.modules.socket.gethostname().split('.')[0]
+ common.mon_create(distro, logger, args, monitor_keyring, hostname)
+
+ check_call(
+ distro.sudo_conn,
+ logger,
+ [
+ '/sbin/service',
+ 'ceph',
+ 'start',
+ 'mon.{hostname}'.format(hostname=hostname)
+ ],
+ )