Kickstart Installation with mirror list

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

LVL 21
MazdajaiAsked:
Who is Participating?
 
joolsConnect With a Mentor Commented:
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
 
joolsCommented:
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
 
MazdajaiAuthor Commented:
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
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
joolsCommented:
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
 
MazdajaiAuthor Commented:
Thanks!
0
 
joolsCommented:
Try using @ around the variable like @basearch@
0
 
MazdajaiAuthor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.