Is this simpler? I don't know. Worth eyeballing.

```
  tomcat_pkgs = value_for_platform(
    ["debian","ubuntu"] => {
      "default" => ["tomcat#{node["tomcat"]["base_version"]}","tomcat#{node["tomcat"]["base_version"]}-admin"]
    },
    ["centos","redhat","fedora"] => {
      "default" => ["tomcat#{node["tomcat"]["base_version"]}","tomcat#{node["tomcat"]["base_version"]}-admin-webapps"]
    },
    ["smartos"] => {
      "default" => "apache-tomcat"
    },
    "default" => ["tomcat#{node["tomcat"]["base_version"]}"]

  tomcat_pkgs.each do |pkg|
    package pkg do
      action :install
      version node["tomcat"]["base_version"].to_s if node[:platform] == "smartos"
    end
  end
````