Pep Guardiola is close to signing a new contract as Manchester City manager.