The once-heralded military leader who oversaw operations in both Iraq and Afghanistan — General David Petraeus — was sentenced yesterday after agreeing to a plea deal in early March for sharing classified information with his biographer and mistress Paula Broadwell in 2012.

He’ll serve two years on probation and pay a $100,000 fine.

“Today marks the end of a two-and-a-half-year ordeal,” Petraeus said outside the Charlotte federal courthouse following his sentencing. “I now look forward to moving on with the next phase of my life.”

The bargain he struck with prosecutors largely centered around him avoiding jail time, which he did. Officials say this was negotiable due to the fact that the top secret intelligence was never shared with the public nor was it published in Broadwell’s account.

According to records of the case, the information came in the form of 5-by-8 inch black notebooks that contained details on national security meetings, the identities of covert officers and more that were given to his biographer, originally, to be used in the book titled All In: The Education of General David Petraeus.

“Make no mistake: This is a serious matter,” Judge David Kessler told the courtroom, adding that his actions “stood in stark contrast to the 37 years of achievement and his remarkable public service.”

CNN