I read through that document before posting to the list.  I'm confused
because what I'm trying to do based on that wiki page isn't working.

I defined a bunch of entries a profile's mgmt_classes container:

'mgmt_classes': ['base',
                  'acct',
                  'audit',],

I have a system assigned to that profile and in the kickstart file I have:

$mgmt_classes

#for $module in $mgmt_classes
    $module
#end for

#for $module in $mgmt_classes
    echo $module
#end for


All that is shown in the rendered kickstart file is []

Why is that the case?  What am I missing or doing wrong?  Am I referencing
the $mgmt_classes array incorrectly?  I would expect inheritance to allow me
to reference it with the name $mgmt_classes.




On Fri, Jun 12, 2009 at 10:32 AM, Michael DeHaan <[email protected]> wrote:

> Jon Sabo wrote:
> > How do you access/reference different objects attributes from a
> > kickstart template?
> >
> > For example how would I access and a profile's mgmt_classes list?
>
> That's intended for use with the Puppet integration (see the Wiki), so
> you don't have to.
>
> However, if you did want to access that or any other variable, read the
> Kickstart Templating page on the Wiki to get started.
>
> >
> > Thanks,
> >
> > Jonathan
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > cobbler mailing list
> > [email protected]
> > https://fedorahosted.org/mailman/listinfo/cobbler
> >
>
> _______________________________________________
> cobbler mailing list
> [email protected]
> https://fedorahosted.org/mailman/listinfo/cobbler
>
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to