from .xlate import XLATOR
-__version__ = '1.5.6'
+__version__ = '1.5.7'
LOG = logging.getLogger(__name__)
TZ = pytz.timezone('Europe/Berlin')
LOG.info(_("Using MAC address of template VM: {!r}").format(self.tpl_macaddress))
+ tpl_sysname = 'template-' + self.tpl_vm_hostname
+ status = 'development'
+ if self.config.vsphere_host == 'vcs01.ppbrln.internal':
+ status = 'production'
self.cobbler.add_system(
- name=self.tpl_vm_hostname, fqdn=self.tpl_vm_fqdn, mac_address=self.tpl_macaddress)
+ name=tpl_sysname, fqdn=self.tpl_vm_fqdn, mac_address=self.tpl_macaddress,
+ status=status)
# self.vsphere.poweron_vm(self.tpl_vm, max_wait=self.config.max_wait_for_poweron_vm)
# self.ts_start_install = time.time()