Hi
Seems the problem is to do with the Distro field. I lost the Distro
field on the web page; not sure why...
I moved aside my sub profile:
mv /var/lib/cobbler/config/profiles.d/shop-cent6u5.json /var/tmp/
I was able to then recreate the sub profile from the web page, and a
restart keeps the sub profile. However I loose the distro field on the
web page. When I added --distro to the sub profile from the command
line, I then loose the sub profile from the web page and the command
line, but the json file is still there. It also disappears after a
cobblerd restart (as in the bug report).
You should be able to inherit anything from the parent? In my case I may
want to override the distro in the sub profile.
Original: "distro": null
After adding --distro: "distro": "cent6u5-x86_64"
I tried setting distro back to "null" but that didn't work. So I just
deleted the sub profile json file (nothing uses it) and restarted
cobblerd.
Alastair
On 2014-07-21 13:18, alastair(a)alastair-munro.com wrote:
Hi
Wondered if anyone had looked at this bug yet?
Reason I want to use sub profiles is we try and keep things simple. So
we have a profile called el6. We have one kickstart that caters for
all our builds (this harps back to satelite days when we had so many
profiles it was a nightmare maintaining it). We then create a sub
profile called shop-cent6u5. Within this we have our distro and a
ksmeta key build=shop. The ksmeta build selects the build within the
single kickstart. So the sub profile allows us to mix and match
distros and builds and we have just one master profile and one
kickstart file. The sub profile will inherit everything for the
master. Master profile el6 will cater for all el6 distros (rh,centos,
oracle linux and minor releases within el6; eg update 5).
Thanks
Alastair
On 2014-07-17 09:42, alastair(a)alastair-munro.com wrote:
> Hi
>
> I restarted cobblerd and it lost my sub profile! Now if I try add it
> back with the same name no profile is created! I will try a different
> name. So I can confirm that bug :)
>
> I wanted to use them so I could put all my templates (eg resolv.conf)
> in the parent and then just clone for minor build variations.
>
> Thanks
>
> Alastair
>
>
>
> On 2014-07-17 09:37, Jörgen Maas wrote:
>> Hi,
>>
>> I was just wondering who would use subprofiles ;-).
>> We have another issue with them, even from the cli.... (see:
>>
https://github.com/cobbler/cobbler/issues/1030 [2])
>>
>> But to answer your question: i'm pretty sure there's no such setting
>> to enable the selection of distros from cobbler-web
>> I assume the distro can't be changed because that is fetched from the
>> parent profile.
>>
>> I will take a look...
>>
>> On Thu, Jul 17, 2014 at 10:24 AM, <alastair(a)alastair-munro.com>
>> wrote:
>>
>>> Hi
>>>
>>> cobbler and cobbler-web at 2.6.1-7.1.
>>>
>>> Sub profiles cannot select distros from the drop down on the web
>>> page. Is there a setting as to whether sub profiles can be edited or
>>> not? I thought they were just like profiles and take values from the
>>> parent if a value is not set? I created the sub profile from the web
>>> page. I had problems selecting other options and had to set them
>>> from the command line.
>>>
>>> Reason I want a parent profile is I want to put all my templated
>>> files in there, have a generic el6 parent and then use sub profiles
>>> to select different distros (rh/centos/si-linux varying versions of
>>> el6, minor release, etc) and pass a ksmeta flag to select different
>>> builds (we like to reduce the number of kickstarts to maintain and
>>> just have one that does everything).
>>>
>>> Functionality from the command line is fine.
>>>
>>> Let me know if a new version is coming soon :)
>>>
>>> Thanks in advance
>>>
>>> Alastair
>>> _______________________________________________
>>> cobbler mailing list
>>> cobbler(a)lists.fedorahosted.org
>>>
https://lists.fedorahosted.org/mailman/listinfo/cobbler [1]
>>
>> --
>> Grtz,
>> Jörgen Maas
>>
>> Links:
>> ------
>> [1]
https://lists.fedorahosted.org/mailman/listinfo/cobbler
>> [2]
https://github.com/cobbler/cobbler/issues/1030
>>
>> _______________________________________________
>> cobbler mailing list
>> cobbler(a)lists.fedorahosted.org
>>
https://lists.fedorahosted.org/mailman/listinfo/cobbler
> _______________________________________________
> cobbler mailing list
> cobbler(a)lists.fedorahosted.org
>
https://lists.fedorahosted.org/mailman/listinfo/cobbler
_______________________________________________
cobbler mailing list
cobbler(a)lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/cobbler