;folder = templates
+;storage_cluster = ds-cluster-hdd-vmcc-l105-01
+
[Template]
;vm_id = centos8
;mac_address = 00:16:3e:54:ab:2b
-;storage_cluster =
-
-;storage_cluster_prod = 'ds-cluster-hdd-vmcc-l105-01'
-
-;storage_cluster_test = 'Daten-Cluster-Gold_01'
-
[Timeouts]
; General timeout in seconds for create_vm, poweron_vm and shutdown_vm
from .xlate import XLATOR
-__version__ = '1.5.8'
+__version__ = '1.6.0'
LOG = logging.getLogger(__name__)
_ = XLATOR.gettext
default_folder = 'templates'
default_template_name = default_os_id + '-template'
default_data_size_gb = 32.0
+ default_storage_cluster = 'ds-cluster-hdd-vmcc-l105-01'
default_num_cpus = 2
default_ram_mb = 4 * 1024
default_network = '192.168.88.0_23'
self.vmware_cfg_version = self.default_vmware_cfg_version
self.os_version = self.default_os_version
+ self.storage_cluster = self.default_storage_cluster
+
self.tpl_vm_domain = self.default_tpl_vm_domain
self.cobbler_profile_given = False
re_excl_ds = re.compile(r'^\s*excluded?[-_]datastores?\s*$', re.IGNORECASE)
re_split_ds = re.compile(r'[,;\s]+')
+ re_storage_cluster = re.compile(r'^\s*storage[-_]?cluster\s*$', re.IGNORECASE)
for (key, value) in config.items(section_name):
datastores = re_split_ds.split(value.strip())
self.excluded_datastores = datastores
+ elif re_storage_cluster.search(key) and value.strip():
+ self.storage_cluster = value.strip()
+
return
# -------------------------------------------------------------------------