Skip to content

Instantly share code, notes, and snippets.

@thommay
Created February 18, 2016 16:51
Show Gist options
  • Save thommay/560d0bc3164df4c9f889 to your computer and use it in GitHub Desktop.
Save thommay/560d0bc3164df4c9f889 to your computer and use it in GitHub Desktop.
pkg = case node['platform']
when "fedora"
"foo.i586"
when "centos"
if node["platform_version"] < 6.0
"foo.i386"
else
"foo.i586"
end
end
package pkg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment