In a snug pot, tip in ham, onions, carrot and pour in the Coke until the ham is covered. Put on the lid and bring to the boil.
Turn heat to low and simmer for three hours.
After the ham is cooked through, drain and discard the liquid and the vegetables. Carefully remove the skin from the ham and score the fat.
Heat the oven to 220C fan and line a roasting pan with aluminium foil.
Place the ham in the roasting pan, fat side up and slather on the cherry pineapple glaze.
Bake for 20 minutes. Baste with the glaze every 5 - 10 minutes.
Remove the ham from the oven and let rest for 15 minutes then pull apart and serve.