since lts is passed to jenkins::repo::el and jenkins::repo::debian reading the value from jenkins::repo seems a bit odd.  I think either $lts or $jenkins::repo::<name>::lts makes more sense OR removing the parameter from jenkins::repo::<name>.