Maintaining Repos in Kickstarted Machines After Install
After you've installed a machine, its install-time repository config in /etc/yum.repos.d is pretty much set.
Bah, I say! Bah! Just keep it updated.
Kickstart (cobbler):
Bah, I say! Bah! Just keep it updated.
Kickstart (cobbler):
If you're not running cobbler, set it into place by hand:#set yumconfcronfilename = "/etc/cron.daily/50-yum-config-stanza" cat << EOECYCS > $yumconfcronfilename #!/bin/sh $yum_config_stanza sed -ne ' /^baseurl=/{ s/baseurl=/repomd / s://:__: s:/: : s:__://: p } ' /etc/yum.repos.d/cobbler-config.repo \ > /etc/apt/sources.list.d/cobbler-config.list EOECYCS chmod a+x $yumconfcronfilename
That's dereferenced for you. The actual profile's going to be way off, though, so don't use that one verbatim. Find your own:cat << EOECYCS > /etc/cron.daily/50-yum-config-stanza #!/bin/sh wget "http://archive/cblr/svc/op/yum/profile/centos5-i386-minimal" --output-document=/etc/yum.repos.d/cobbler-config.repo sed -ne ' /^baseurl=/{ s/baseurl=/repomd / s://:__: s:/: : s:__://: p } ' /etc/yum.repos.d/cobbler-config.repo \ > /etc/apt/sources.list.d/cobbler-config.list EOECYCS chmod a+x /etc/cron.daily/50-yum-config-stanza
As usual, watch carefully for the way in which the 'new', 'better' blogspot editor makes an artistic puree of the quoted stuff; grain of salt, kids.awk -F/ '/^url/{print $NF}' anaconda-ks.cfg
Labels: apt, automation, awk, cobbler, hack, kickstart, linux, RHEL5, RPM, tools, yum
<< Home