diff options
author | James Cammarata <jimi@sngx.net> | 2008-09-26 12:43:58 -0500 |
---|---|---|
committer | James Cammarata <jimi@sngx.net> | 2008-09-26 13:58:22 -0500 |
commit | a965aecf843a36ed6f1a005ed965149586074a2e (patch) | |
tree | f47d936bcb76fd2bac2bc12856d06285baf9acfa /cobbler/action_litesync.py | |
parent | 76cb3db0b69ee1b9e9cd54a2870a8b3664dec8b2 (diff) | |
download | cobbler-a965aecf843a36ed6f1a005ed965149586074a2e.tar.gz cobbler-a965aecf843a36ed6f1a005ed965149586074a2e.tar.xz cobbler-a965aecf843a36ed6f1a005ed965149586074a2e.zip |
Commit for template-files testing
Diffstat (limited to 'cobbler/action_litesync.py')
-rw-r--r-- | cobbler/action_litesync.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cobbler/action_litesync.py b/cobbler/action_litesync.py index 1fa7295f..2ec79c9b 100644 --- a/cobbler/action_litesync.py +++ b/cobbler/action_litesync.py @@ -67,6 +67,8 @@ class BootLiteSync: raise CX(_("error in distro lookup: %s") % name) # copy image files to images/$name in webdir & tftpboot: self.sync.pxegen.copy_single_distro_files(distro) + # generate any templates listed in the distro + self.sync.pxegen.write_templates(distro) # cascade sync kids = distro.get_children() for k in kids: @@ -101,6 +103,8 @@ class BootLiteSync: if profile is None: raise CX(_("error in profile lookup")) # rebuild the yum configuration files for any attached repos + # generate any templates listed in the distro + self.sync.pxegen.write_templates(profile) # cascade sync kids = profile.get_children() for k in kids: @@ -123,6 +127,8 @@ class BootLiteSync: if system is None: raise CX(_("error in system lookup for %s") % name) self.sync.pxegen.write_all_system_files(system) + # generate any templates listed in the system + self.sync.pxegen.write_templates(system) def add_single_system(self, name): # get the system object: @@ -136,6 +142,8 @@ class BootLiteSync: self.sync.dns.regen_hosts() # write the PXE files for the system self.sync.pxegen.write_all_system_files(system) + # generate any templates listed in the distro + self.sync.pxegen.write_templates(system) # per system kickstarts if self.settings.manage_dhcp: if self.settings.omapi_enabled: |