PXE install + kickstart --> CentOS-Base.repo ?

General support questions
Post Reply
kalki70
Posts: 2
Joined: 2014/12/11 15:41:19

PXE install + kickstart --> CentOS-Base.repo ?

Post by kalki70 » 2014/12/11 15:58:02

Hello,

I am configuring a server for PXE install + kickstart, to install several other systems in an unattended way. So far it works, just one thing.
After a system boots and install automatically from my boot server, the CentOS-Base.repo has the standard contents pointing to mirrors on the web, for instance :
CentOS-Base.repo
[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$ ... ch&repo=os
#baseurl=http://mirror.centos.org/centos/$releas ... $basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
...etc..

I don't want this, I want the repo file in my installed system to point to my own server, not to the mirrors. Something like:
baseurl=http://myserver/centos/7/x86_64

Please don't tell me "go to /etc/yum.repos.d, edit the files...". The idea is that after installation the new systems have already the right configuration, without manual intervention. I have many systems to install.

Thanks,

Luis

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: PXE install + kickstart --> CentOS-Base.repo ?

Post by gerald_clark » 2014/12/11 16:16:26

Create and install your own repo files in %post.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: PXE install + kickstart --> CentOS-Base.repo ?

Post by TrevorH » 2014/12/11 17:36:47

Look at things like puppet which can automate system configuration post-install.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

User avatar
MoonWolf
Posts: 81
Joined: 2013/11/07 10:31:59

Re: PXE install + kickstart --> CentOS-Base.repo ?

Post by MoonWolf » 2014/12/11 17:48:06

You may build your own version of centos-release RPM and either install it in kickstart or create your own repository and put it there.
Over And Out
MoonWolf

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: PXE install + kickstart --> CentOS-Base.repo ?

Post by TrevorH » 2014/12/11 18:07:22

Better not to name is centos-release. If you need to edit the files to disable the repos then a new centos-release comes along then the edited files will not be replaced. A differently named package will not conflict later on.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

kalki70
Posts: 2
Joined: 2014/12/11 15:41:19

Re: PXE install + kickstart --> CentOS-Base.repo ?

Post by kalki70 » 2014/12/11 19:18:58

Hello,

Thansk to all for the answers. When I wrote the question I did not know in which rpm the repo files were, I found that after some googling. In Redhat it is a redhat-yumconf something.
I was starting to modify that rpm and create my own repodata, but using the post installating script from the kickstart sounds much better, I will use that.

Thanks again!

Post Reply