Tried both ways
When I prepped the brackets for installation, I mounted the ballast on the light bracket. When I finally got around to actually installing the lights and connecting the wiring, I found that it was very difficult to plug the connector into the ballast. I suppose if I had oriented the ballast differently, they might have been easier to work with.
Rather then struggling with the plugs, I removed the ballasts from the bracket and installed them on the rib. I definitely prefer the serviceability of having the ballasts mounted on the outboard side of the ribs.