Corey Kovacs wrote:
Got it, thanks. Seems like it would be helpful to see the parent
options, perhaps displayed in a similar way <<inherit>> is now but
list the value instead as in <<2048>> for your ram example. Keep the
double arrows to mean 'value is inherited'. Just a thought.
Regards,
Corey
Something like this could be doable, though we might want to make it a
bit nicer. "<<inherit>>" as a value
actually means something to cobbler.
Also, hash and array variables are extended, not just overridden.
I'm thinking more like a "cobbler system report --actual" to show all
the values that are filled in, maybe, which would
be pretty easy to do.
--Michael
On Feb 1, 2009, at 16:47, Michael DeHaan <mdehaan(a)redhat.com>
wrote:
> Corey Kovacs wrote:
>
>> In trying the command below, the newly created subprofile doesn't
>> look
>> anything like the parent when doing a report against it.
>>
>>
> Nor should it, see below...
>
>> [root@ronin ~]# cobbler profile report --name=Centos4.7-i386
>> profile : Centos4.7-i386
>> distro : Centos4.7-i386
>> comment :
>> created : Thu Jan 1 01:00:00 1970
>> dhcp tag : default
>> enable menu : True
>> kernel options : {}
>> kickstart : /etc/cobbler/legacy.ks
>> ks metadata : {}
>> mgmt classes : []
>> modified : Thu Jan 1 01:00:00 1970
>> name servers : []
>> owners : ['admin']
>> post kernel options : {}
>> redhat mgmt key : <<inherit>>
>> repos : []
>> server : <<inherit>>
>> template_files : {}
>> virt bridge : xenbr0
>> virt cpus : 1
>> virt file size : 10
>> virt path :
>> virt ram : 512
>> virt type : qemu
>>
>> [root@ronin ~]# cobbler profile add --name=test --
>> inherit='Centos4.7-i386'
>>
>> [root@ronin ~]# cobbler profile report --name=test
>> profile : test
>> parent : Centos4.7-i386
>> comment :
>> created : Sun Feb 1 08:35:24 2009
>> dhcp tag : <<inherit>>
>> enable menu : False
>> kernel options : <<inherit>>
>> kickstart : <<inherit>>
>> ks metadata : <<inherit>>
>> mgmt classes : ['<<inherit>>']
>> modified : Sun Feb 1 08:35:24 2009
>> name servers : <<inherit>>
>> owners : ['admin']
>> post kernel options : <<inherit>>
>> redhat mgmt key : <<inherit>>
>> repos : <<inherit>>
>> server : <<inherit>>
>> template_files : {}
>> virt bridge : <<inherit>>
>> virt cpus : <<inherit>>
>> virt file size : <<inherit>>
>> virt path : <<inherit>>
>> virt ram : <<inherit>>
>> virt type : <<inherit>>
>>
>>
>>
> What you see above is the list of parameters /stored/ for the
> inherited
> profile. If you change any of them, they will no longer use the
> values
> of the parent.
>
> For instance, you could specify that "test" was the same as your
> profile
> "Centos4.7-i386" except that it required 2048 ram and used a different
> kickstart template.
>
> cobbler profile edit --name=test --virt-ram=1024
> --kickstart=/var/lib/cobbler/kickstarts/test.ks
>
> --Michael
>
>
> _______________________________________________
> cobbler mailing list
> cobbler(a)lists.fedorahosted.org
>
https://fedorahosted.org/mailman/listinfo/cobbler
>
_______________________________________________
cobbler mailing list
cobbler(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler