Soak if needed. If the gammon is very salty, soak it in cold water for 2 hours (or overnight in the fridge), then drain. Most modern joints don't need it — check the label.
Simmer gently. Put the gammon in a large pot with the onions, carrots, bay leaves and peppercorns. Cover with cold water, bring to a boil, then reduce to the gentlest simmer — barely bubbling — and cook for 1 hour 30 minutes.
Rest and peel. Lift the gammon out and let it rest for 15 minutes. Peel off the skin, leaving a thin layer of fat. Score the fat in a diamond pattern and stud each diamond with a clove.
Make the glaze. Stir the honey, mustard, brown sugar and vinegar together in a small bowl.
Glaze and roast. Heat the oven to 200°C (400°F). Put the gammon in a roasting tin, brush generously with the glaze, and roast for 25–30 minutes, brushing with more glaze every 10 minutes, until sticky and deep golden.
Rest and slice. Rest for 15 minutes before carving — it slices far more cleanly. Serve with rosemary sprigs and any pan juices spooned over.