from ..errors import ExpectedCobblerError
from ..xlate import XLATOR
-__version__ = '0.1.2'
+__version__ = '0.2.0'
LOG = logging.getLogger(__name__)
ks_meta_list.append("SYSTEM_STATUS={}".format(status))
ks_meta_list.append("WS_REL_FILESDIR={}".format(self.cfg.cobbler_ws_rel_filesdir))
ks_meta_list.append("COBBLER_URL=http://{}".format(self.cfg.cobbler_host))
+ ks_meta_list.append("RHEL9_REPOSERVER_URL={}".format(self.cfg.rhel9_repo_server_url)
ks_meta = ' '.join(ks_meta_list)
ks_meta_vars['WS_REL_FILESDIR'] != str(self.cfg.cobbler_ws_rel_filesdir):
LOG.debug(_('Profile ks_meta {!r} is not ok.').format('WS_REL_FILESDIR'))
ks_meta_ok = False
+
if 'COBBLER_URL' not in ks_meta_vars or \
ks_meta_vars['COBBLER_URL'] != "http://{}".format(self.cfg.cobbler_host):
LOG.debug(_('Profile ks_meta {!r} is not ok.').format('COBBLER_URL'))
ks_meta_ok = False
+ if 'RHEL9_REPOSERVER_URL' not in ks_meta_vars or \
+ ks_meta_vars['RHEL9_REPOSERVER_URL'] != self.cfg.rhel9_repo_server_url:
+ LOG.debug(_('Profile ks_meta {!r} is not ok.').format('RHEL9_REPOSERVER_URL'))
+ ks_meta_ok = False
+
return ks_meta_ok
# -------------------------------------------------------------------------
ks_meta_list.append("SYSTEM_STATUS={}".format(status))
ks_meta_list.append("WS_REL_FILESDIR={}".format(self.cfg.cobbler_ws_rel_filesdir))
ks_meta_list.append("COBBLER_URL=http://{}".format(self.cfg.cobbler_host))
+ ks_meta_list.append("RHEL9_REPOSERVER_URL={}".format(self.cfg.rhel9_repo_server_url)
ks_meta = None
if ks_meta_list:
local -a repos=(
'rhel-9-for-x86_64-appstream-rpms'
'rhel-9-for-x86_64-baseos-rpms'
- 'rhv-4-tools-for-rhel-9-x86_64-rpms'
)
local repo=
export system_status="${SYSTEM_STATUS}"
export ws_rel_filesdir="${WS_REL_FILESDIR}"
export cobbler_url="${COBBLER_URL}"
+export rhel9_reposerver_url="${RHEL9_REPOSERVER_URL}"
{% if distro.is_rhel %}
export rhsm_user="${RHSM_USER}"
export rhsm_pwd="${RHSM_PWD}"
{% endif %}
echo
echo "------------------"
-echo "hostname: '$hostname'"
-echo "system_name: '$system_name'"
-echo "gateway: '$gateway'"
-echo "Management interface: '${mgmt_interface}'"
-echo "ip_address_eth0: '$ip_address_eth0'"
-echo "mac_address_eth0: '$mac_address_eth0'"
-echo "System status: '${system_status}'"
-echo "Cobbler URL: '${cobbler_url}'"
+echo "hostname: '$hostname'"
+echo "system_name: '$system_name'"
+echo "gateway: '$gateway'"
+echo "Management interface: '${mgmt_interface}'"
+echo "ip_address_eth0: '$ip_address_eth0'"
+echo "mac_address_eth0: '$mac_address_eth0'"
+echo "System status: '${system_status}'"
+echo "Cobbler URL: '${cobbler_url}'"
+echo "RHEL9 repo server URL: '${rhel9_reposerver_url}'"
{% if distro.is_rhel %}
echo
echo "RedHat SubscriptionManager User: '${rhsm_user}'"