?
Solved

Kickstart Installation with mirror list

Posted on 2012-09-19
7
Medium Priority
?
562 Views
Last Modified: 2012-10-23
We are setting up a kickstart installation with mirror list, we are able to get it working with static http path; but not with variables. We keep getting an error - "Unable to read package metadata from repository". (See attached)

!---test.cfg
url --url=http://a.com/repository/releases/6Server/x86_64
repo --name=base --mirrorlist=http://a.com/repository/.kickstart/mirrorlist
repo --name=update --mirrorlist=http://a.com/repository/updates/mirrorlist

Open in new window

!---This works
!---http://a.com/repository/.kickstart/mirrorlist
#base
http://a.com/repository/releases/6Server/x86_64/Server/
http://b.com/repository/releases/6Server/x86_64/Server/

Open in new window

!---This doesn't works
!---http://a.com/repository/.kickstart/mirrorlist
#base
http://a.com/repository/releases/$releasever/$basearch/Server/
http://b.com/repository/releases/$releasever/$basearch/Server/

Open in new window

0
Comment
Question by:Mazdajai
  • 4
  • 3
7 Comments
 
LVL 19

Expert Comment

by:jools
ID: 38417053
how are you writing the files out and what is passing the variables?

if this is in a kickstart file it's just taking the string literally do you need to be using something like cobbler? https://fedorahosted.org/cobbler/#
0
 
LVL 21

Author Comment

by:Mazdajai
ID: 38461500
Not sure what you mean. We do deployment from kickstart via http.

We have different RHEL builds and each build uses different kickstart files. We have two sites and we are trying to split the yum repository so it picks up the closest mirror.
0
 
LVL 19

Expert Comment

by:jools
ID: 38462687
You can't use variables in kickstart files (at least not the stuff I've seen).

I'll setup a quick lab today to see if there is a way of doing it, its been a while since I did stuff with kickstart.
0
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 
LVL 21

Author Comment

by:Mazdajai
ID: 38465306
Thanks!
0
 
LVL 19

Expert Comment

by:jools
ID: 38477555
Try using @ around the variable like @basearch@
0
 
LVL 21

Author Comment

by:Mazdajai
ID: 38480061
This? Doesn't work..

http://a.com/repository/releases/@releasever@/@basearch@/Server/
http://b.com/repository/releases/@releasever@/@basearch@/Server/

Open in new window

0
 
LVL 19

Accepted Solution

by:
jools earned 1500 total points
ID: 38480079
It was a bit of a long shot.

You may have to create kickstart files for each report and just select the correct one unless the cobbler solution works for you.
0

Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month13 days, 18 hours left to enroll

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question