Re: [et-mgmt-tools] Two Minor Problems with Cobbler

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Demetri Mouratis wrote:
Hi,

I've been spending quite a bit of time with cobbler lately and have
run into two very small issues.  First, running cobbler sync with
manage_dhcp: 1 set drops an empty dhcpd.conf directory in the PWD.

Good catch... this apparently came across in the move back to Cheetah for templating. I'll commit and push the fix.


[mdehaan@mdehaan cobbler]$ hg diff
diff -r 7f3dc5cdd1b40c7521d2ce2052388e7df69906dc cobbler/action_sync.py
--- a/cobbler/action_sync.py    Fri Mar 02 11:07:10 2007 -0500
+++ b/cobbler/action_sync.py    Thu Mar 08 11:40:52 2007 -0500
@@ -464,7 +464,7 @@ class BootSync:
t = Template(source=data, searchList=[metadata])
        data_out = str(t)
-        self.mkdir(os.path.basename(out_path))
+        self.mkdir(os.path.dirname(out_path))
        fd = open(out_path, "w+")
        fd.write(data_out)
        fd.close()




[root@hemops2 ~]# cd /tmp/
[root@hemops2 tmp]# ls
[root@hemops2 tmp]# cobbler sync
sync distro: centos44
Shutting down dhcpd:                                       [  OK  ]
Starting dhcpd:                                            [  OK  ]
[root@hemops2 tmp]# ls
dhcpd.conf

Second, I have two configuration changes I need made to
/tftpboot/pxelinux.cfg/default. These have to do with NIC ordering and
a doc I found here:

http://linux.dell.com/files/whitepapers/nic-enum-whitepaper-v2.pdf

There, it suggests making two changes to the pxe configuration, adding
the following lines:

IPAPPEND 2
APPEND ksdevice=bootif

I put a config file called default.pxe in /etc/cobbler and run cobbler
sync but I see a vanilla default file in
/tftpboot/pxelinux.cfg/default.

Kickstart parameters can be managed with a cobbler profile or even on specific systems or distros.

"cobbler profile add ... --kopts="ksdevice=bootif otheroption=blah etc etc foo etc"

The vanilla cobbler "default" file in recent versions now is used for PXE menus. If you would like to use a specific profile as a default profile instead, you can do the following:

cobbler system add --name=default --profile=name-of-profile-to-use-as-default

If you have a kernel option you would like to use on every single cobbler profile you have, you can also add that kernel option to /var/lib/cobbler/settings and it will automagically appear on every profile and system. (run "cobbler sync" to apply changes)



Thanks.

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/et-mgmt-tools


[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux