No worries figured it out, just wasn't thinking outside the box. Ended up getting rid of the fact or using facter and just using the variable straight away.
for others interest: node.pp $group="role" source => [ "puppet:///files/classes/nginx/nginx_conf.$hostname", "puppet:///files/classes/nginx/nginx_conf.$group", "puppet:///files/classes/nginx/nginx_conf" ], AB -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/pY1ap2l2WP8J. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.