Achieving a for loop in Puppet (4.10.x)

I was working on a module that installed a package. I wanted to take the systemd unit file that was installed through this process and pass in a parameter into the puppet class, to specify a number representing the number of extra of this service I wanted running.

Here is the original module: