On Tue, May 1, 2012 at 14:33, James Clendenan <[email protected]> wrote:
> Hi Everyone,
>
> For some reason, I'm having trouble crafting a snippet to use the management
> classes in a script.  (Version 2.2.2)
>
> I'm basicly using the management classes  to install specific sets of
> packages, and I was sure I had done this before at an old location but can't
> remember how I did it.
>
> Anyone got a sample they can share for managing packages to install based on
> the management classes?

I use this for disk partitioning.. here is how i do it:

#if 'xen' in $mgmt_classes
clearpart --all --initlabel --drives=cciss/c0d0
ignoredisk --only-use=cciss/c0d0
part /boot --ondisk=cciss/c0d0 --size=500 --fstype ext3 --asprimary
part / --ondisk=cciss/c0d0 --size=1 --fstype ext3 --asprimary --grow

#elif 'virtual' in $mgmt_classes
clearpart --all --initlabel --drives=vda
ignoredisk --only-use=vda
part /boot --ondisk=vda --size=500 --fstype ext3 --asprimary
part / --ondisk=vda --size=1 --fstype ext3 --asprimary --grow

#end if
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to