So looks like I can possibly use ksmeta for this but can't seem to get
it to work.  I added this piece of code to this if statement:

--
#if $swaps
#set $swapsize=$swaps
#else if $machinetype == 'virtual'
#set $swapsize='4096'
#else if $machinetype == 'physical'
#set $swapsize='20480'
#end if
--

I am expecting that when --ksmeta="swaps=some#" is defined that my
$swapsize will get set to this number and if it is not defined it will
use the machinetype to decide whether to set 4096 or 20480.  However,
when I introduce the "#if $swaps" statement this breaks the whole code
and I no longer see any partitioning in my kickstart.  I have also
tried "#if $swaps != "none"" but that did not work either.  What am I
missing here?  Any help would be appreciated!

Thanks.

On Fri, Jan 23, 2015 at 4:07 PM, Jagga Soorma <jagg...@gmail.com> wrote:
> Hi All,
>
> I am starting to use cobbler to provision servers and there is a use
> case for some servers to tweak the swap size.  I currently do the
> following for the swap size:
>
> --
> #if $machinetype == 'virtual'
> #set $swapsize='4096'
> #else if $machinetype == 'physical'
> #set $swapsize='20480'
> #end if
> --
>
> However, if I want a few physical servers (part of the same profile)
> to bypass this and set more swap size how can I go about implementing
> that?  Any help would be appreciated.
>
> Thanks.
_______________________________________________
cobbler mailing list
cobbler@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/cobbler

Reply via email to