re_resolv_ns_entry = re.compile(r'^\s*nameserver\s+(\S+)')
default_rhsm_user = 'dpx-subscriber'
+ default_rhel9_repo_server_url = 'https://test-repo01.pixelpark.com/Linux/yum/rhel'
# -------------------------------------------------------------------------
def __init__(
self._rhsm_user = self.default_rhsm_user
self._rhsm_pwd = None
+ self._rhel9_repo_server_url = self.default_rhel9_repo_server_url
+
super(CrTplConfiguration, self).__init__(
appname=appname, verbose=verbose, version=version, base_dir=base_dir,
append_appname_to_stems=append_appname_to_stems, config_dir=config_dir,
"""Flag, that the RPM packages should be installed with documentation and man pages."""
return self._vm_has_docs
+ # -------------------------------------------------------------------------
+ @property
+ def rhel9_repo_server_url(self):
+ """The complete URL of the repository server for RHEL-9."""
+ return self._rhel9_repo_server_url
+
# -------------------------------------------------------------------------
def as_dict(self, short=True):
"""
res['data_size'] = self.data_size
res['default_cobbler_nameservers'] = self.default_cobbler_nameservers
res['ram_gb'] = self.ram_gb
+ res['rhel9_repo_server_url'] = self.rhel9_repo_server_url
res['rhsm_pwd'] = None
res['rhsm_user'] = self.rhsm_user
res['system_ks'] = self.system_ks
re_rhsm_pwd = re.compile(r'^\s*rhsm[-_]?(?:pwd|password)\s*$', re.IGNORECASE)
re_has_docs = re.compile(
r'^\s*(?:vm[-_]?)?has[-_]?doc(?:s|umentation)?\s*$', re.IGNORECASE)
+ re_rhel9_repo_server = re.compile(
+ r'^\s*rhel9[-_]?repo[-_]?server(?:[-_]?url)?\s*$', re.IGNORECASE)
for key in section.keys():
value = section[key]
if re_has_docs.match(key):
self._vm_has_docs = to_bool(value)
continue
+ if re_rhel9_repo_server.match(key) and value.strip():
+ self._rhel9_repo_server_url = value.strip()
return