Kafo support for Puppet 4 new module features
Channel: Dominic Cleal
Date: 2017-01-06

A quick screencast to show off some recent new features in Kafo, a library to create installers from Puppet modules.

This shows support for three features of Puppet 4 that are new in Kafo:

1. Data types - shown in passing, Kafo 1.0.0 can understand all of the advanced data types that Puppet 4 can (e.g. arrays, integers, enumerations, optional types) as well as custom types from stdlib and other modules.
2. YARD documentation -  kafo_parsers 0.1.6 can use Puppet Strings to parse class documentation in YARD format with @param tags, rather than its more unique RDoc style.
3. Data in modules - the next version of Kafo should support Hiera data files stored in modules, which authors can use to move complex data logic out of "params" classes and into data files.

The puppetlabs-ntp module is shown with additional YARD documentation that I added. Available on GitHub at domcleal/puppetlabs-ntp, "yard" branch. The data module support is in PR #203 in Kafo's project.