Workers and employers in South Africa's petroleum sector have agreed on a two-year wage deal, says labour union Solidarity.