In this chapter, we learned many advanced topics. We started off with facts. In Puppet facts, we learned how to display them and checked out a few standard facts that are already defined. After this, we created our own facts. Another topic was the templates to create dynamic content files. We used a template to create some registry entries for each user in Windows. Then, we finally rounded off with functions. We learned the
stdlib functions and how to call them in the
manifests. Finally, we created our own simple custom function and used it in a manifest.
In the next chapter, we will see how we can use Puppet to secure our hosts and put them in a desired state.