When I did mine, the wiring harness was from the bulbs only, about 2 feet long from the light bar and ended in a female D/C plug that had no corresponding male half under the bumper. I cut off the connector and bought a male and female molex plug and wired them to the license marker light circuit hiding the connector under the bumper. I also drilled a 1/2 hole in the tailgate behind the light bar so the 2 wires and plug can be routed out inside the tailgate and through an existing hole beneath the tailgate so the wiring is unseen. I covered the wires in loom and wire tied to the bottom of the tailgate just like factory so you can either remove the light bar or tailgate as desired by just unplugging the connector under the bumper. On 2500 trucks no provision is offered for the light bar unless special ordered so you must tie into a light circuit or into the trailer tow circuit.
Adding a relay to the headlight circuit right behind the dash at the switch is a good idea, IMHO, because of the known overheating problem with that switch. The added relay would only pick up the load of the exterior light circuits and any you may add + the trailer tow relay which then picks up the trailer light load.
I bought a Bosch relay that was rated for 30 amps and included a base with wires and just used the light switch to pick up the relay. Everything needed is right there at the light switch. Ground, a heavy 12 gauge 12V+ and the switch as a trigger . Just add the relay and cut the wire output from the switch and wire it to the output from the relay instead. While I was there, I also switched the wires from the light switch to the cargo light and interior lights so the cargo light comes on BEFORE the interior lights instead of after, so I can see stuff in the bed at night without the interior light on. Put it all back together, wrap the added relay with foam to prevent rattles and stuff behind the switch. That way, it's hidden but accessible behind the switch for service if needed and the added relay is removable from the socket too.
-Paul R. Haller-