diff --git a/lib/gusteau/node.rb b/lib/gusteau/node.rb
index <HASH>..<HASH> 100644
--- a/lib/gusteau/node.rb
+++ b/lib/gusteau/node.rb
@@ -40,7 +40,7 @@ module Gusteau
 
     def hook(hook_type)
       (@config[hook_type] || []).each do |cmd|
-        Kernel.system cmd
+        Kernel.system({ 'GUSTEAU_NODE' => name }, cmd)
         unless $?.exitstatus == 0
           log_error "Error executing a #{hook_type} hook: '#{cmd}'"
           exit 1
diff --git a/spec/lib/gusteau/node_spec.rb b/spec/lib/gusteau/node_spec.rb
index <HASH>..<HASH> 100644
--- a/spec/lib/gusteau/node_spec.rb
+++ b/spec/lib/gusteau/node_spec.rb
@@ -67,8 +67,8 @@ describe Gusteau::Node do
 
   describe "#hook" do
     it "should execute system commands" do
-      Kernel.expects(:system).with('bundle')
-      Kernel.expects(:system).with('vagrant up')
+      Kernel.expects(:system).with({'GUSTEAU_NODE' => 'test'}, 'bundle')
+      Kernel.expects(:system).with({'GUSTEAU_NODE' => 'test'}, 'vagrant up')
       node.server.chef.expects(:run)
       node.apply([], {})
     end
Pass active node name into ENV for hook commands