summaryrefslogtreecommitdiffstats
path: root/cobbler/action_sync.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2008-05-02 11:58:36 -0400
committerMichael DeHaan <mdehaan@redhat.com>2008-05-02 11:58:36 -0400
commit82f4bb814835a8aadcfe5cbba8bfbc4359c34b39 (patch)
tree1634a3ecfc84a14ce53ae8ff69a69ea0fc910849 /cobbler/action_sync.py
parent7eb0fa0be305d1d682b29aaff6dde267402a9e6a (diff)
downloadthird_party-cobbler-82f4bb814835a8aadcfe5cbba8bfbc4359c34b39.tar.gz
third_party-cobbler-82f4bb814835a8aadcfe5cbba8bfbc4359c34b39.tar.xz
third_party-cobbler-82f4bb814835a8aadcfe5cbba8bfbc4359c34b39.zip
Apply John Eckersberg's patch for BIND management.
Diffstat (limited to 'cobbler/action_sync.py')
-rw-r--r--cobbler/action_sync.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/cobbler/action_sync.py b/cobbler/action_sync.py
index 4156ea7..98faa0c 100644
--- a/cobbler/action_sync.py
+++ b/cobbler/action_sync.py
@@ -29,6 +29,7 @@ from cexceptions import *
import templar
import pxegen
import dhcpgen
+import dnsgen
import yumgen
import item_distro
@@ -84,6 +85,7 @@ class BootSync:
self.repos = self.config.repos()
self.pxegen = pxegen.PXEGen(self.config)
self.dhcpgen = dhcpgen.DHCPGen(self.config)
+ self.dnsgen = dnsgen.DNSGen(self.config)
self.yumgen = yumgen.YumGen(self.config)
# execute the core of the sync operation
@@ -98,6 +100,8 @@ class BootSync:
self.dhcpgen.write_dhcp_file()
self.dhcpgen.regen_ethers()
self.dhcpgen.regen_hosts()
+ if self.settings.manage_dns:
+ self.dnsgen.write_bind_files()
self.pxegen.make_pxe_menu()
# run post-triggers