From ca8039d41fe40de1237106571f684408e144d7c8 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Thu, 24 May 2007 16:11:55 -0400 Subject: Change cobbler code to use /etc/ethers and /var/lib/cobbler/cobbler_hosts for dnsmasq, only writing minimal contents to /etc/dnsmasq.conf -- basically just tagging the systems with weird arches so they get the right bootloaders. "Cobbler sync" will only need to be run when adding the systems with the weird arches, and others should be dynamic without need to SIGHUP (/sbin/service restart) dnsmasq. In theory :) dnsmasq integration with cobbler is still rather experimental, but looks solid thus far. Have not actually tested any non-pxelinux.0 arches. --- cobbler/action_litesync.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cobbler/action_litesync.py') diff --git a/cobbler/action_litesync.py b/cobbler/action_litesync.py index 825bcbe3..c08690b6 100644 --- a/cobbler/action_litesync.py +++ b/cobbler/action_litesync.py @@ -97,6 +97,8 @@ class BootLiteSync: if system is None: raise cexceptions.CobblerException("error in system lookup") # rebuild system_list file in webdir + self.sync.regen_ethers() # /etc/ethers, for dnsmasq & rarpd + self.sync.regen_hosts() # /var/lib/cobbler/cobbler_hosts, pretty much for dnsmasq self.sync.write_listings() # write the PXE and YAML files for the system self.sync.write_all_system_files(system) -- cgit