This is too ambiguous and could cause conflicts with other modules. Try

<pre>
file { "pam.d-service-${name}":
</pre>