Chefでプラットフォームで条件分岐する

OSで分岐

case node["platform"]
when "centos", "amazon", "fedora"
  # something
end

OSの大枠で分岐

case node[:platform_family]
when "debian"
  # something
when "rhel"
  # something
else
  # something
end