Hi Vikas,

This is not the solution to your question but possibly alternative option.

It seems you want to generate a yum repo url for specific OS version so 
that it picks-up correct version arch etc.

How about if you use following and set up repos to match. 
baseurl=http://<repo server>/centos/$releasever/os/$basearch/

Regards,
CD

On Thursday, July 24, 2014 5:07:51 PM UTC+10, Vikas Kumar wrote:
>
> Hello All,
>
> I have a kickstart server which I use to deploy many minor versions of 
> CentOS/RHEL 5 and 6 for both 32 and 64 Bit OS.
>
> I have lots of yum repository files. For. e.g. - RHEL_5.5_64.repo, 
> RHEL_5.6_64.repo, RHEL_6.2_32, RHEL_6.5_64, etc. I am looking to use Puppet 
> to automatically deploy the required kickstart repos. I tried to follow 
> this 
> <http://seriousbirder.com/blogs/how-to-create-a-puppet-yum-repo-module/> 
> link in vain.
>
> The problem is that I am unable to use facter variables *$lsbdistrelease* 
> with something like below.
>
> baseurl        => "http://our-reposrv:8080/dev/RHEL_$lsbdistrelease_64";
>
> Here, the variable does not converts to is value.
>
> Please help me to get this sorted. Am I missing anything ?
>
> Regards,
> Vikas
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/da859571-0c6f-4c22-b1e2-c17426d59a76%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to