At CIA, Petraeus taking up top spy post