summaryrefslogtreecommitdiffstats
path: root/cobbler/action_litesync.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-05-24 16:11:55 -0400
committerMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-05-24 16:11:55 -0400
commitca8039d41fe40de1237106571f684408e144d7c8 (patch)
tree6e3159f21b6bb76ec1a87bef5951e31fa4f12a4e /cobbler/action_litesync.py
parent8cbf4c2cf24c79f194d5f66c72fdc8cd9df185a7 (diff)
downloadthird_party-cobbler-ca8039d41fe40de1237106571f684408e144d7c8.tar.gz
third_party-cobbler-ca8039d41fe40de1237106571f684408e144d7c8.tar.xz
third_party-cobbler-ca8039d41fe40de1237106571f684408e144d7c8.zip
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.
Diffstat (limited to 'cobbler/action_litesync.py')
-rw-r--r--cobbler/action_litesync.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/cobbler/action_litesync.py b/cobbler/action_litesync.py
index 825bcbe..c08690b 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)