Skip to content

Instantly share code, notes, and snippets.

@clarkdave
Last active December 19, 2015 19:49
Show Gist options
  • Save clarkdave/6008720 to your computer and use it in GitHub Desktop.
Save clarkdave/6008720 to your computer and use it in GitHub Desktop.
(CHEF) knife ssh on servers in an Amazon VPC
knife ssh 'name:*' 'uptime' -G user@gateway.example.com -a private_ipaddress -x user
# to run chef-client on all servers:
knife ssh 'name:*' 'sudo chef-client' -G user@gateway.example.com -a private_ipaddress -x user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment