Published: Apr 28, 2011 8:47 PM EDT
Updated: Apr 28, 2011 5:47 PM EDT

WASHINGTON (AP) - President Barack Obama is heralding a major reshuffling of his war and intelligence team as the right move to protect the nation's security interests.

The president announced four major personnel changes Thursday, formalizing news that began spilling out about two days earlier.

Obama announced that CIA Director Leon Panetta will replace Defense Secretary Robert Gates when Gates makes his long-planned exit this summer.

Gen. David Petraeus, (peh-TRAY'-uhs) the high-profile commander of the wars in Iraq and Afghanistan, will replace Panetta at the CIA in the fall, after helping to manage the first steps of a drawdown of U.S. troops in Afghanistan.

Petraeus' job will be filled by Marine Corps Lt. Gen. John Allen, the deputy commander of U.S. Central Command. Diplomat Ryan Crocker is being installed as U.S. ambassador in Afghanistan.

(Copyright 2011 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.)