summaryrefslogtreecommitdiffstats
path: root/cobbler/action_sync.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2006-09-28 17:46:38 -0400
committerJim Meyering <jim@meyering.net>2006-09-28 17:46:38 -0400
commit810c7e39285c17803cfdad2909b4bec79762055c (patch)
tree7951ca4a97abfd53cdb70e571fe6334ce3d63a72 /cobbler/action_sync.py
parent16f02908736ff0b89accb25be50d66deadb4cd62 (diff)
downloadthird_party-cobbler-810c7e39285c17803cfdad2909b4bec79762055c.tar.gz
third_party-cobbler-810c7e39285c17803cfdad2909b4bec79762055c.tar.xz
third_party-cobbler-810c7e39285c17803cfdad2909b4bec79762055c.zip
- Interim checkin while working on "enchant" feature
- Fixed changelogs to include user/email
Diffstat (limited to 'cobbler/action_sync.py')
-rw-r--r--cobbler/action_sync.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/cobbler/action_sync.py b/cobbler/action_sync.py
index 02fb186..d7cd1a1 100644
--- a/cobbler/action_sync.py
+++ b/cobbler/action_sync.py
@@ -14,6 +14,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
import os
+import os.path
import shutil
import time
import yaml
@@ -63,6 +64,7 @@ class BootSync:
self.validate_kickstarts()
self.configure_httpd()
self.build_trees()
+ self.copy_koan()
if self.settings.manage_dhcp:
self.write_dhcp_file()
try:
@@ -73,6 +75,13 @@ class BootSync:
print >>sys.stderr, "Warning: dhcpd restart failed: ", e
return True
+ def copy_koan(self):
+ koan_path = self.settings.koan_path
+ if koan_path is None:
+ return
+ if not os.path.isfile(koan_path):
+ raise cexceptions.CobblerException("exc_koan_path")
+ self.copyfile(koan_path, os.path.join(self.settings.webdir, "koan.rpm"))
def copy_bootloaders(self):
"""