A South Australian piggery is set to become Australia’s first agricultural renewable gas ­producer, potentially powering 2000 homes.