diff options
Diffstat (limited to 'cobbler/action_litesync.py')
-rw-r--r-- | cobbler/action_litesync.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cobbler/action_litesync.py b/cobbler/action_litesync.py index a1f9eea..a35d16c 100644 --- a/cobbler/action_litesync.py +++ b/cobbler/action_litesync.py @@ -78,11 +78,13 @@ class BootLiteSync: raise CX(_("error in profile lookup")) # rebuild profile_list YAML file in webdir self.sync.write_listings() + # rebuild the yum configuration files for any attached repos + self.sync.retemplate_yum_repos(obj,is_profile) # add profiles/$name YAML file in webdir self.sync.write_profile_file(profile) # generate kickstart for kickstarts/$name/ks.cfg in webdir self.sync.validate_kickstart_for_specific_profile(profile) - + def remove_single_profile(self, name): # rebuild profile_list YAML file in webdir self.sync.write_listings() @@ -99,6 +101,8 @@ class BootLiteSync: # 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 + # rebuild the yum configuration files for any attached repos + self.sync.retemplate_yum_repos(obj,is_profile) self.sync.write_listings() # write the PXE and YAML files for the system self.sync.write_all_system_files(system) |