After some tests I got the problem to a specific variable named $environment.
Changing the variable name to something else let the module work with PE 2016.2.
I've changed the variable name from $environment to $smenvironment on every file.
There's also a fix for the ${::ca_package_prefix} variable that should be ${::subscription_manager::ca_package_prefix}
Tested with PE2016.2 - RHEL7 - RedHat SAM1.4
After some tests I got the problem to a specific variable named $environment. Changing the variable name to something else let the module work with PE 2016.2. I've changed the variable name from $environment to $smenvironment on every file. There's also a fix for the ${::ca_package_prefix} variable that should be ${::subscription_manager::ca_package_prefix} Tested with PE2016.2 - RHEL7 - RedHat SAM1.4
Related to Issue #32 and #33