Skip to content

Instantly share code, notes, and snippets.

@saschpe
Created June 12, 2013 09:16
Show Gist options
  • Save saschpe/5763924 to your computer and use it in GitHub Desktop.
Save saschpe/5763924 to your computer and use it in GitHub Desktop.
diff --git a/crowbar_framework/app/models/service_object.rb b/crowbar_framework/app/models/service_object.rb
index 5f24184..b60483e 100644
--- a/crowbar_framework/app/models/service_object.rb
+++ b/crowbar_framework/app/models/service_object.rb
@@ -1027,6 +1027,8 @@ class ServiceObject
# XXX: This should not be done this way. Something else should request this.
system("sudo -i /opt/dell/bin/single_chef_client.sh") if CHEF_ONLINE and !ran_admin
+ apply_role_post_chef_call(old_role, role, all_nodes)
+
update_proposal_status(inst, "success", "")
restore_to_ready(all_nodes)
process_queue unless in_queue
@@ -1037,6 +1039,10 @@ class ServiceObject
# noop by default.
end
+ def apply_role_post_chef_call(old_role, role, all_nodes)
+ # noop by default.
+ end
+
#
# Inputs: role = RoleObject of proposal being applied/queued.
# Returns: List of hashs { "barclamp" => bcname, "inst" => instname }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment