Re: [et-mgmt-tools] issue with templating and substitution

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, May 23, 2007 at 12:11:59AM -0400, Jim Wildman enlightened us:
> Given the following snippet in default.ks
> 
> <-------snip---->
> cat << YUMEND > /etc/yum.repos.d/default.$lbuild.repo
> [$lbuild base]
> name = $lbuild base repo
> baseurl = http://10.1.1.1/mrepo/$lbuild/RPMS.os
> 
> [$lbuild updates]
> name = $lbuild updates repo
> baseurl = http://10.1.1.1/mrepo/$lbuild/RPMS.updates
> 
> [$lbuild rpmforge]
> name = $lbuild rpmforge repo
> baseurl = http://10.1.1.1/mrepo/$lbuild/RPMS.rpmforge
> enabled=0
> YUMEND
> <-----end------>
> 
> and a ksmeta for this profile of
> ks metadata     : {'lbuild': 'centos5-i386'}
> 
> Cobbler will successfully replace every instance of $lbuild with 
> centos5-i386 except the _first_ one (the one in the 'cat' line).
> ie, the file ends up named 'default..repo'.  I've tried $$lbuild (got me
> the PID of the cobbler sync I think), and \$ (got me nothing), and
> yum.repos.d/$lbuild.repo (which got me a hidden file named .repo which
> is why I added the 'default').
> 
> suggestions??
>

${lbuild} ?

Seems to have solved some of my weird problems with cheetah...

Matt

-- 
Matt Hyclak
Department of Mathematics 
Department of Social Work
Ohio University
(740) 593-1263


[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux