You answered your own question.

There's no "right" way, it's wherever you see they fit the best. You want to put them some place where they won't get wet, but where air can circulate so it cools them. I've never heard of ballasts over heating, but any electrical component should have access to fresh air circulation to avoid premature failure.