Salling was ordered to pay $50,000 in restitution to each victim who has requested it.
Salling has also agreed to register as a sex offender permanently and a lifetime of supervision if and when he's released from federal custody. According to court documents that have circulated, Salling stated, "I am pleading guilty because I am guilty of the charges and wish to take advantage of the promises set forth in this agreement, and not for any other reason".
When authorities raided his home on a search warrant, they discovered more than 50,00 images and videos of child pornography and erotica.
The documents reveal that Smalling knowingly downloaded thousands of images of child pornography between April and December 2015, hiding the activity with software that masked his IP address.
He had initially pleaded not guilty in June 2016 to two counts receiving and possessing child pornography.
Though he attempted to hide his illegal behavior, he showed the horrific images to an "adult woman in the context of their sexual relationship".
Salling is best known for playing Noah "Puck" Puckerman on the show that ended in 2015.
He was subsequently fired from his starring role in the miniseries "Adi Shankar's Gods and Secrets" a few days later.