Retired major general, twice considered to lead military, to enter role in coming weeks; Gallant hails 'outstanding commander' who once served as Netanyahu's military secretary