from .xlate import XLATOR
-__version__ = '0.6.8'
+__version__ = '0.7.0'
LOG = logging.getLogger(__name__)
raise HandlerError(msg)
self.host = CrTplConfiguration.default_cobbler_host
+ self.cobbler_bin = CrTplConfiguration.default_cobbler_bin
self.ssh_port = CrTplConfiguration.default_cobbler_ssh_port
self.ssh_user = CrTplConfiguration.default_cobbler_ssh_user
self.private_ssh_key = None
self.private_ssh_key = str(self.base_dir.joinpath('keys', CrTplConfiguration.ssh_privkey))
+ self.cobbler_bin = config.cobbler_bin
self.private_ssh_key = config.private_ssh_key
self.host = config.cobbler_host
self.ssh_port = config.cobbler_ssh_port
cmds.append('echo')
if self.ssh_user != 'root':
cmds.append('sudo')
- cmds.append('cobbler')
+ cmds.append(self.cobbler_bin)
if cmd is not None:
if is_sequence(cmd):
cmds += cmd
from .xlate import XLATOR
-__version__ = '1.7.0'
+__version__ = '1.7.1'
LOG = logging.getLogger(__name__)
_ = XLATOR.gettext
default_tpl_vm_domain = 'pixelpark.com'
+ default_cobbler_bin = '/bin/cobbler'
default_cobbler_host = 'cobbler.pixelpark.com'
default_cobbler_ssh_port = 22
default_cobbler_ssh_user = 'root'
self.private_ssh_key = None
+ self.cobbler_bin = self.default_cobbler_bin
self.cobbler_distro = self.default_cobbler_distro
self.cobbler_host = self.default_cobbler_host
self.cobbler_ssh_port = self.default_cobbler_ssh_port
r'^\s*(?:ws|webserver)[-_]?docroot\s*$', re.IGNORECASE)
re_ws_rel_filesdir_key = re.compile(
r'^\s*(?:ws|webserver)[-_]?rel(?:ative)?[-_]?filesdir\s*$', re.IGNORECASE)
- rs_system_status = re.compile(r'^\s*system[-_]?status\s*$', re.IGNORECASE)
+ re_system_status = re.compile(r'^\s*system[-_]?status\s*$', re.IGNORECASE)
+ re_cobbler_bin_key = re.compile(r'^\s*(?:cobbler[_-]?)?bin\s*$', re.IGNORECASE)
for (key, value) in config.items(section_name):
if key.lower() == 'distro' and value.strip() != '':
if re_timeout_key.match(key):
self.cobbler_ssh_timeout = int(value)
continue
+ if re_cobbler_bin_key.match(key) and value.strip() != '':
+ self.cobbler_bin = value.strip()
+ continue
if re_rootdir_key.match(key):
dpath = Path(value)
if dpath.is_absolute():
if re_ws_rel_filesdir_key.match(key) and value.strip() != '':
self.cobbler_ws_rel_filesdir = Path(value.strip())
continue
- if rs_system_status.match(key) and value.strip() != '':
+ if re_system_status.match(key) and value.strip() != '':
val = value.strip().lower()
if val in self.valid_system_status:
self.system_status = val