Rainer Duffner wrote:
Hi,
my cobbler server is used to install servers via a dedicated VLAN and
IP-space that is only used and configured for the initial installation.
Later, the server (and the repositories) is still available, but under a
different IP.
How can I account for that in e.g. /etc/yum.repos.d ?
Is there a way to replace the IP in $yum.repos.stanza automatically?
Not in cobbler directly.
Since your repo is no longer resolvable post-install-and-move, calling
sed/perl in %post to mangle the files in /etc/yum.repos.d will solve the
problem, as will disabling yum_post_install_mirror in settings (you'll
then have to set up /etc/yum.repos.d on your own).
Alternatively, set a name on both networks that is always resolvable.
--Michael