I really prefer using a static title, and just making the namevar different between platforms, it ensures that both platforms will have the same resources (with only a parameter different)

it would look like:

package { 'puppetmaster':
  name  =>  $::puppet::params::puppetmaster
}