Thanks Greg. Exactly what I was looking for.
I'm needing to do this to wrap package groups together, and avoid having to diff too many lists of packages for each type of machine we build. James On Tue, May 1, 2012 at 12:47 PM, Greg Swift <gregsw...@gmail.com> wrote: > On Tue, May 1, 2012 at 14:33, James Clendenan <james.clende...@gmail.com> > 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 cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler