Unfortunately Puppet is not able to handle the installation of Yum package groups like “Base” or “compat-libraries” and so forth. This is due to the fact that Puppet is currently not able to verify if all packages in a package group are installed after a Puppet run.
Puppet Lint is a nice tool to check the syntax of your Puppet code. Common errors can be fixed directly with Puppet Lint. It can also be included to CI tools like Jenkins if you want to check your Puppet code during a Jenkins build job for example. Find out more about Puppet Lint here.
If you are creating a custom fact and want to test the output of your fact then you need to perform the following command: $ FACTERLIB=/path/to/your/fact/ facter