Hi James,
[...]
> So the Q: is it possible to restore an inherited value
> for a profile attribute? If so, what is the correct work flow?
>
If you use --template-files='<<inherit>>', does it restore the
inheritance?
cobbler: 2.4.0 from epel-testing
OS : SL 6.3 64 bit
Short answer: no.
Long answer: please see the following session log:
fedora17-x86_64 : parent
fedora17-ph-x86_64: child
[root@cobbler ~]# cobbler profile report --name=fedora17-x86_64
Name : fedora17-x86_64
TFTP Boot Files : {}
Comment :
DHCP Tag : default
Distribution : fedora17-x86_64
Enable gPXE? : 0
Enable PXE Menu? : 1
Fetchable Files : {}
Kernel Options : {'interface': 'eth0', 'priority':
'critical', 'locale': 'en_US',
'keyboard-configuration/layoutcode': 'us'}
Kernel Options (Post Install) : {'reboot': 'efi'}
Kickstart : /var/lib/cobbler/kickstarts/rh.cfg
Kickstart Metadata : {'gateway': '192.168.1.254'}
Management Classes : []
Management Parameters : <<inherit>>
Name Servers : ['192.168.1.254']
Name Servers Search Path : ['gateway.2wire.net']
Owners : ['admin']
Parent Profile :
Proxy :
Red Hat Management Key : <<inherit>>
Red Hat Management Server : <<inherit>>
Repos : ['fedora17-x86_64']
Server Override : <<inherit>>
Template Files : {'/srv/cobbler/ub_static_interfaces':
'/etc/network/interfaces', '/srv/cobbler/ub_hostname':
'/etc/hostname', '/srv/cobbler/ub_hosts': '/etc/hosts'}
Virt Auto Boot : 1
Virt Bridge : xenbr0
Virt CPUs : 1
Virt Disk Driver Type : raw
Virt File Size(GB) : 5
Virt Path :
Virt RAM (MB) : 512
Virt Type : qemu
[root@cobbler ~]# cobbler profile report --name=fedora17-ph-x86_64
Name : fedora17-ph-x86_64
TFTP Boot Files : <<inherit>>
Comment :
DHCP Tag : <<inherit>>
Distribution : <<inherit>>
Enable gPXE? : 0
Enable PXE Menu? : <<inherit>>
Fetchable Files : <<inherit>>
Kernel Options : <<inherit>>
Kernel Options (Post Install) : <<inherit>>
Kickstart : <<inherit>>
Kickstart Metadata : <<inherit>>
Management Classes : <<inherit>>
Management Parameters : <<inherit>>
Name Servers : []
Name Servers Search Path : []
Owners : ['admin']
Parent Profile : fedora17-x86_64
Proxy : ~
Red Hat Management Key : <<inherit>>
Red Hat Management Server : <<inherit>>
Repos : <<inherit>>
Server Override : <<inherit>>
Template Files : <<inherit>>
Virt Auto Boot : <<inherit>>
Virt Bridge : <<inherit>>
Virt CPUs : <<inherit>>
Virt Disk Driver Type : <<inherit>>
Virt File Size(GB) : <<inherit>>
Virt Path : <<inherit>>
Virt RAM (MB) : <<inherit>>
Virt Type : <<inherit>>
[root@cobbler ~]# cobbler profile edit --name=fedora17-ph-x86_64
--template-files=''
[root@cobbler ~]# cobbler profile report --name=fedora17-ph-x86_64
Name : fedora17-ph-x86_64
TFTP Boot Files : <<inherit>>
Comment :
DHCP Tag : <<inherit>>
Distribution : <<inherit>>
Enable gPXE? : 0
Enable PXE Menu? : <<inherit>>
Fetchable Files : <<inherit>>
Kernel Options : <<inherit>>
Kernel Options (Post Install) : <<inherit>>
Kickstart : <<inherit>>
Kickstart Metadata : <<inherit>>
Management Classes : <<inherit>>
Management Parameters : <<inherit>>
Name Servers : []
Name Servers Search Path : []
Owners : ['admin']
Parent Profile : fedora17-x86_64
Proxy : ~
Red Hat Management Key : <<inherit>>
Red Hat Management Server : <<inherit>>
Repos : <<inherit>>
Server Override : <<inherit>>
Template Files : {}
Virt Auto Boot : <<inherit>>
Virt Bridge : <<inherit>>
Virt CPUs : <<inherit>>
Virt Disk Driver Type : <<inherit>>
Virt File Size(GB) : <<inherit>>
Virt Path : <<inherit>>
Virt RAM (MB) : <<inherit>>
Virt Type : <<inherit>>
[root@cobbler ~]# cobbler profile edit --name=fedora17-ph-x86_64
--template-files='<<inherit>>'
[root@cobbler ~]# cobbler profile report --name=fedora17-ph-x86_64
Name : fedora17-ph-x86_64
TFTP Boot Files : <<inherit>>
Comment :
DHCP Tag : <<inherit>>
Distribution : <<inherit>>
Enable gPXE? : 0
Enable PXE Menu? : <<inherit>>
Fetchable Files : <<inherit>>
Kernel Options : <<inherit>>
Kernel Options (Post Install) : <<inherit>>
Kickstart : <<inherit>>
Kickstart Metadata : <<inherit>>
Management Classes : <<inherit>>
Management Parameters : <<inherit>>
Name Servers : []
Name Servers Search Path : []
Owners : ['admin']
Parent Profile : fedora17-x86_64
Proxy : ~
Red Hat Management Key : <<inherit>>
Red Hat Management Server : <<inherit>>
Repos : <<inherit>>
Server Override : <<inherit>>
Template Files : {}
Virt Auto Boot : <<inherit>>
Virt Bridge : <<inherit>>
Virt CPUs : <<inherit>>
Virt Disk Driver Type : <<inherit>>
Virt File Size(GB) : <<inherit>>
Virt Path : <<inherit>>
Virt RAM (MB) : <<inherit>>
Virt Type : <<inherit>>
Regards,
-- Zack