diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2008-04-18 18:25:14 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2008-04-18 18:25:14 -0400 |
commit | b3d798bd603d4c1fe6bb6740b9f95630ba4ee483 (patch) | |
tree | 6a74857c654dd41e63f8708076fcfb34de4e7a26 /cobbler/action_litesync.py | |
parent | aae7d2bb2133fcd171207e0c2a70ed009136d447 (diff) | |
download | third_party-cobbler-b3d798bd603d4c1fe6bb6740b9f95630ba4ee483.tar.gz third_party-cobbler-b3d798bd603d4c1fe6bb6740b9f95630ba4ee483.tar.xz third_party-cobbler-b3d798bd603d4c1fe6bb6740b9f95630ba4ee483.zip |
Abstract out sync code into it's constituent parts, plus some packaging changes that I left out earlier.
Diffstat (limited to 'cobbler/action_litesync.py')
-rw-r--r-- | cobbler/action_litesync.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/cobbler/action_litesync.py b/cobbler/action_litesync.py index 89e24b4..c2029d4 100644 --- a/cobbler/action_litesync.py +++ b/cobbler/action_litesync.py @@ -57,7 +57,7 @@ class BootLiteSync: if distro is None: raise CX(_("error in distro lookup: %s") % name) # copy image files to images/$name in webdir & tftpboot: - self.sync.copy_single_distro_files(distro) + self.sync.pxegen.copy_single_distro_files(distro) # cascade sync kids = distro.get_children() for k in kids: @@ -78,7 +78,7 @@ class BootLiteSync: if profile is None: raise CX(_("error in profile lookup")) # rebuild the yum configuration files for any attached repos - self.sync.retemplate_yum_repos(profile,True) + self.sync.yumgen.retemplate_yum_repos(profile,True) # cascade sync kids = profile.get_children() for k in kids: @@ -97,7 +97,7 @@ class BootLiteSync: system = self.systems.find(name=name) if system is None: raise CX(_("error in system lookup for %s") % name) - self.sync.write_all_system_files(system) + self.sync.pxegen.write_all_system_files(system) def add_single_system(self, name): # get the system object: @@ -105,12 +105,12 @@ class BootLiteSync: if system is None: raise CX(_("error in system lookup for %s") % name) # 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.dhcpgen.regen_ethers() # /etc/ethers, for dnsmasq & rarpd + self.sync.dhcpgen.regen_hosts() # /var/lib/cobbler/cobbler_hosts, pretty much for dnsmasq # write the PXE files for the system - self.sync.write_all_system_files(system) + self.sync.pxegen.write_all_system_files(system) # per system kickstarts - self.sync.retemplate_yum_repos(system,False) + self.sync.yumgen.retemplate_yum_repos(system,False) def remove_single_system(self, name): bootloc = utils.tftpboot_location() |