Skip to content

Instantly share code, notes, and snippets.

@uran1980
Last active December 11, 2015 19:38
Show Gist options
  • Save uran1980/4649478 to your computer and use it in GitHub Desktop.
Save uran1980/4649478 to your computer and use it in GitHub Desktop.
Chef :: Check platform for Chef cookbook
unless node['platform'] == "debian"
log("recipe[debian::default] included in non-Debian platform. Skipping.") { level :warn }
return
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment