summaryrefslogtreecommitdiffstats
path: root/cobbler/action_sync.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2008-05-02 16:05:32 -0400
committerMichael DeHaan <mdehaan@redhat.com>2008-05-02 16:05:32 -0400
commita6fd395b51a624e4aa7d09b4960382784cefa8e8 (patch)
tree6fdab90d58f4d673f1e5e58201a032cd9eb7386b /cobbler/action_sync.py
parente4fce2b7321c880f8c1f1adbdf137fc4d66563de (diff)
downloadthird_party-cobbler-a6fd395b51a624e4aa7d09b4960382784cefa8e8.tar.gz
third_party-cobbler-a6fd395b51a624e4aa7d09b4960382784cefa8e8.tar.xz
third_party-cobbler-a6fd395b51a624e4aa7d09b4960382784cefa8e8.zip
Working on moving DNS/DHCP management to cobbler/modules (uses modules.conf)
In progress.
Diffstat (limited to 'cobbler/action_sync.py')
-rw-r--r--cobbler/action_sync.py18
1 files changed, 7 insertions, 11 deletions
diff --git a/cobbler/action_sync.py b/cobbler/action_sync.py
index 53ef3a7..fbc9402 100644
--- a/cobbler/action_sync.py
+++ b/cobbler/action_sync.py
@@ -28,8 +28,7 @@ import utils
from cexceptions import *
import templar
import pxegen
-import dhcpgen
-import dnsgen
+import manage_ctrl
import yumgen
import item_distro
@@ -47,7 +46,7 @@ class BootSync:
Handles conversion of internal state to the tftpboot tree layout
"""
- def __init__(self,config,verbose=False,dhcp=None,dns=None):
+ def __init__(self,config,verbose=False,manage=None):
"""
Constructor
"""
@@ -61,7 +60,7 @@ class BootSync:
self.repos = config.repos()
self.templar = templar.Templar(config)
self.pxegen = pxegen.PXEGen(config)
- self.dhcpgen = dhcpgen.DHCPGen(config)
+ self.manager = manage
self.yumgen = yumgen.YumGen(config)
self.bootloc = utils.tftpboot_location()
@@ -84,8 +83,6 @@ class BootSync:
self.settings = self.config.settings()
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
@@ -96,12 +93,11 @@ class BootSync:
self.pxegen.write_all_system_files(x)
self.yumgen.retemplate_all_yum_repos()
if self.settings.manage_dhcp:
- # these functions DRT for ISC or dnsmasq
- self.dhcpgen.write_dhcp_file()
- self.dhcpgen.regen_ethers()
- self.dhcpgen.regen_hosts()
+ self.manager.write_dhcp_file()
+ self.manager.regen_ethers()
+ self.manager.regen_hosts()
if self.settings.manage_dns:
- self.dnsgen.write_bind_files()
+ self.manager.write_dns_files()
self.pxegen.make_pxe_menu()
# run post-triggers