from .xlate import XLATOR
-__version__ = '1.5.0'
+__version__ = '1.5.1'
LOG = logging.getLogger(__name__)
_ = XLATOR.gettext
max_max_wait_for_finish_install = 24 * 60 * 60
limit_max_nr_templates_stay = 100
+ default_tpl_vm_domain = 'pixelpark.com'
+
default_cobbler_host = 'cobbler.pixelpark.com'
default_cobbler_ssh_port = 22
default_cobbler_ssh_user = 'root'
self.vmware_cfg_version = self.default_vmware_cfg_version
self.os_version = self.default_os_version
+ self.tpl_vm_domain = self.default_tpl_vm_domain
+
self._cobbler_profile_given = False
self._template_name_given = False
re_os_id = re.compile(r'^\s*os[-_]?id\s*$', re.IGNORECASE)
re_os_id_subst = re.compile(r'[^a-z0-9_-]+', re.IGNORECASE)
+ re_vm_domain = re.compile(r'^\s*(?:vm[-_]?)?domain\s*$', re.IGNORECASE)
for (key, value) in config.items(section_name):
if key.lower() == 'vm':
self.template_name = value
self._template_name_given = True
continue
+ elif re_vm_domain.match(key) and value.strip():
+ self.tpl_vm_domain = value.strip().lower()
+ continue
elif key.lower() == 'data_size_gb':
self.data_size_gb = float(value)
continue
from .xlate import XLATOR
-__version__ = '1.4.6'
+__version__ = '1.5.0'
LOG = logging.getLogger(__name__)
TZ = pytz.timezone('Europe/Berlin')
self.tpl_data_store = None
self.tpl_network = None
self.tpl_vm = None
+ self.tpl_vm_hostname = None
self.ts_start_install = None
self.ts_finish_install = None
self.initial_sleep = 60
self.initialized = True
self.vsphere.initialized = True
+ # -------------------------------------------------------------------------
+ @property
+ def tpl_vm_hostname_base(self):
+
+
# -------------------------------------------------------------------------
def __call__(self):
"""Executing the underlying action."""