I'm pretty sure comparing a shellout instance with `node.name` will always be false.  Instead, I think you'd have to do:

``` ruby
hostname = Mixlib::ShellOut.new('hostname')
hostname.run_command

unless hostname.stdout.chomp == node.name
# ...
end
```

Or better yet, just skip shelling out altogether (sorry I didn't think of this earlier):

``` ruby
unless Socket.gethostname == node.name
# ...
end
```