In a large pot, add the onions, garlic, salt, brown sugar, pickling spice, bay leaves, star anise pods and water. Bring the mixture to a boil, and cook for 10 minutes over medium heat. Turn off the heat and add the ice and cold stout. Check with a thermometer and chill to 40°F. Transfer to a cambro and use with the beef tongue.