Reputation: 467
My issue is, I want to run:
knife ssh "chef_environment:env1" 'cmd'
but one of the hosts is having auth issues, and seems to be breaking my knife ssh run, and not running the command on all hosts. I would like to exclude the one host from being run when using environments. How can I do this?
Upvotes: 1
Views: 789
Reputation: 54211
knife search "chef_environment:env1 AND NOT name:foo"
but beware that NOT
queries can be super unintuitive because of how Chef searches work.
Upvotes: 3