Skip to content

Instantly share code, notes, and snippets.

@lusis
Forked from atomic-penguin/arch_test.chef.rb
Created August 30, 2011 17:03
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lusis/1181369 to your computer and use it in GitHub Desktop.
Save lusis/1181369 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