from . import lsb
from .cliutil import priority
from .sudo_pushy import get_transport
-from .util import paths, constants
+from .util import paths
LOG = logging.getLogger(__name__)
-def create_mon(cluster, monitor_keyring, init, paths, constants):
+def create_mon(cluster, monitor_keyring, init, paths):
import os
import socket
import subprocess
os.makedirs(path)
if not os.path.exists(done_path):
- if not os.path.exists(constants.tnp_path):
- os.makedirs(constants.tnp_path)
+ if not os.path.exists(path.mon.constants.tmp_path):
+ os.makedirs(path.mon.constants.tmp_path)
keyring = paths.mon.keyring(cluster, hostname)
with file(keyring, 'w') as f:
monitor_keyring=monitor_keyring,
init=init,
paths=paths,
- constants=constants,
)
# TODO add_bootstrap_peer_hint
"""
Common paths for mon, based on the constant file paths defined in
``ceph_deploy.util.constants``.
-All classmethods return a string representation of the absolute path
+All functions return a string representation of the absolute path
construction.
"""
from os.path import join