Cook, who served in the role for nearly 15 years, will remain involved with the company as executive chairman. John Ternus is set to succeed him as CEO.