[AS_HELP_STRING([--with-ssh-initscript],
[SSH init script to use (default is /etc/init.d/ssh)]
)],
- [initd_ssh="$withval"],
- [initd_ssh="/etc/init.d/ssh"])
-AC_SUBST(INITD_SSH, $initd_ssh)
+ [ssh_initd_script="$withval"],
+ [ssh_initd_script="/etc/init.d/ssh"])
+AC_SUBST(SSH_INITD_SCRIPT, $ssh_initd_script)
# Check common programs
AC_PROG_INSTALL
-CLEANFILES = $(nodist_pkgpython_PYTHON) *.py[oc]
+SSH_INITD_SCRIPT = @SSH_INITD_SCRIPT@
-INITD_SSH = @INITD_SSH@
+CLEANFILES = $(nodist_pkgpython_PYTHON) *.py[oc]
nodist_pkgpython_PYTHON = _autoconf.py
pkgpython_PYTHON = __init__.py backend.py cli.py cmdlib.py config.py \
echo "PACKAGE_VERSION = '$(PACKAGE_VERSION)'"; \
echo "LOCALSTATEDIR = '$(localstatedir)'"; \
echo "SYSCONFDIR = '$(sysconfdir)'"; \
- echo "INITD_SSH = '$(INITD_SSH)'"; \
+ echo "SSH_INITD_SCRIPT = '$(SSH_INITD_SCRIPT)'"; \
} > $@
from ganeti import bdev
from ganeti import objects
from ganeti import ssconf
-from ganeti import _autoconf
def StartMaster():
finally:
f.close()
- utils.RunCmd([_autoconf.INITD_SSH, "restart"])
+ utils.RunCmd([constants.SSH_INITD_SCRIPT, "restart"])
return True
SSH_KNOWN_HOSTS_FILE = DATA_DIR + "/known_hosts"
NODE_INITD_SCRIPT = _autoconf.SYSCONFDIR + "/init.d/ganeti"
+SSH_INITD_SCRIPT = _autoconf.SSH_INITD_SCRIPT
DEFAULT_NODED_PORT = 1811
FIRST_DRBD_PORT = 11000
LAST_DRBD_PORT = 14999