Modify repo.pp to work with newer RHEL based releases

There is a bunch of hard coded references in the repo.pp file that will break using this module on CentOS/RHEL 7 machines. 

I have modified the code to use the ${::operatingsystemmajrelease} to determine the correct OS major version and setup the correct repository links for the server this module is being installed on.