Summary

In this chapter, we used ruby to extend facter and define custom facts. Custom facts can be used in hiera hierarchies to reduce complexity and organize our nodes. We then began writing our own custom modules and ran into a few problems with multiple defined resources. Two solutions were presented, virtual resources and refactoring the code. In the next chapter, we will be making our custom modules more useful with custom types.

Get Mastering Puppet now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.