Skip to content

Instantly share code, notes, and snippets.

@atomic-penguin
Created August 30, 2011 16:54
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save atomic-penguin/1181350 to your computer and use it in GitHub Desktop.
Save atomic-penguin/1181350 to your computer and use it in GitHub Desktop.
# If x86
if node[:kernel][:machine] =~ /^(x|i[3456])86$/i
# Do something
end
# If amd64/x86_64 (same thing)
if node[:kernel][:machine] =~ /^(x86_|amd)64$/i
# Do something
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment