Ruthless, resilient and divisive - he served as secretary of defence twice in a career spanning decades.