Consistent Lorentz violation in flat and curved space