Bolt tasks

Bolt tasks allow us to write and extend a script with additional metadata parameters. These parameters can be provided on execution by environment variables, PowerShell named arguments, or as JSON input in more advanced cases. Bolt tasks are similar to resources in Puppet, allowing us to parameterize an action and use a command in a repeatable way. We'll be writing a simple task that allows us to inspect certain log files on the Puppet Master by name. This task will be part of a logs module, named puppetserver.

Get Mastering Puppet 5 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.