when calling a define such as below
<pre>
pam::config { 'foo':
  content => "blah",
}
</pre>

You can access the title, foo in our case, as $name in the code. So you can remove $service altogether and just use $name.