Importing the module class in Foreman
Log in to the Foreman user interface. From the top menu go to Configure | Puppet classes. After this, click on the Import from yourserveraddress button. For our example in this book, the button is Import from puppetmaster.example.com.
After clicking on the button, we will see our newly created module name. You will also see the different environments: common, development, example_env, and production. As you will recall, we assigned all our hosts to the production environment. We will do the same and assign the module to the production environment. To do this, just click on the checkbox in the production line and after this click on the Update button:
Note
We are using only the production environment to keep things simple. In the real world, it will be a good idea to use the development and production environments. The development environment can be used to test your modules. When you feel comfortable, you can assign the module to the production environment...