diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2007-11-29 14:58:46 -0500 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2007-11-29 14:58:46 -0500 |
commit | 231ef515b22aa0204c625340f492eba651ef4bae (patch) | |
tree | f835e671d7c233e6c71ec7b1c1af58a6f76de7d7 /cobbler/action_sync.py | |
parent | bddd3d6affa106b800f9ad1ec25f0dcfed750604 (diff) | |
download | third_party-cobbler-231ef515b22aa0204c625340f492eba651ef4bae.tar.gz third_party-cobbler-231ef515b22aa0204c625340f492eba651ef4bae.tar.xz third_party-cobbler-231ef515b22aa0204c625340f492eba651ef4bae.zip |
Initial application of Tim V's patch to enable post install triggers.
Diffstat (limited to 'cobbler/action_sync.py')
-rw-r--r-- | cobbler/action_sync.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cobbler/action_sync.py b/cobbler/action_sync.py index f81c2cd..c8ab81e 100644 --- a/cobbler/action_sync.py +++ b/cobbler/action_sync.py @@ -2,8 +2,9 @@ Builds out a TFTP/cobbler boot tree based on the object tree. This is the code behind 'cobbler sync'. -Copyright 2006, Red Hat, Inc +Copyright 2006,2007, Red Hat, Inc Michael DeHaan <mdehaan@redhat.com> +Tim Verhoeven <tim.verhoeven.be@gmail.com> This software may be freely redistributed under the terms of the GNU general public license. @@ -389,6 +390,7 @@ class BootSync: pattern1 = "wget \"http://%s/cblr/watcher.py?%s_%s=%s\" -b" pattern2 = "wget \"http://%s/cgi-bin/cobbler/nopxe.cgi?system=%s\" -b" pattern3 = "wget \"http://%s/cobbler/%s/%s/ks.cfg\" -O /root/cobbler.ks" + pattern4 = "wget \"http://%s/cgi-bin/cobbler/postinstalltrigger.cgi?system=%s\" -b" blend_this = profile if system: @@ -404,6 +406,8 @@ class BootSync: buf = buf + "\n" + pattern2 % (blended["server"], system.name) if kickstart and os.path.exists(kickstart): buf = buf + "\n" + pattern3 % (blended["server"], "kickstarts_sys", system.name) + if self.settings.run_postinstall_trigger: + buf = buf + "\n" + pattern4 % (blended["server"], system.name) else: buf = buf + pattern1 % (blended["server"], "profile", "done", profile.name) |