Instead of using inline template it's much better to install Puppetlab's stdlib module which provides among other things a lot of excellent functions, like getvar.
Once you have done this you can simply write
$rp1 = getvar("${params_file}::root_passwd")
and you are done. Here is an example:
class x::y {
$z = "hello world"
}
include x::y
$i = "x::y"
alert( getvar ( "${i}::z" ) ) # outputs "hello world"