Dude, loop over the package names...

    %w{ant openjdk-7-jdk ...}.each do |p|
      package p do
        action [:install]
        options "--force-yes"
      end
    end