Cook the spaghetti al dente according to the package instructions.
Dice the Gouda, salami and tomatoes and place in a bowl. Peel and crush 8 cloves of garlic (if you like, use a garlic press) and add to the other ingredients. Peel the onions, chop them very finely and add them to the bowl as well. Also add the oil, vinegar, liquid stock, salt, pepper and herbs.
Meanwhile, rinse the spaghetti and add to the ingredients in the bowl while it is still warm. Chill for about 1-2 hours until consumption and then serve.