Puppet Enterprise Task Management

Bolt is a fully-featured open source product. It does not need Puppet Enterprise to work well in your environment. That being said, the console for Puppet Enterprise ties in very nicely with Bolt. There is a single tasks page on the left-hand side of the console that will take you to the main tasks page. Once you enter, you'll be greeted with the Run a task page, which provides you with a few convenient features if you're sharing yours tasks in your organization.

This section is only relevant for Puppet Enterprise users. This module will need to be in /etc/puppetlabs/code/environments/production/modules via r10k or manual placement to be read by the Puppet Enterprise console.

The first main feature is the ability to directly view the supporting JSON parameters file before running the task. Notice that our description and optional parameters are represented in tasks when we add logs::puppetserver, making documentation for other users convenient:

Every parameter is also represented as a drop-down menu. Because we selected Enum[console,puppetdb,puppetserver] as our type in puppetserver.json, those are the only options available to the users in the console. Store is also a true or false only value drop-down, thanks to our Boolean selection:

Once we run the job, we'll get back a cleaned up version of the logs that we've selected. If you're in a large organization, you could put this task into the inventory and allow administrators to remotely view log files on demand without ever needing to log into the server or manage the code:

This task was meant to be a simple example. With complicated tasks and plans, you can orchestrate automation of any kind and in any language across your infrastructure, using just SSH or WinRM. Our tasks have the ability to import and export JSON variables, allowing us to build more complex dependencies between tasks. Puppet Tasks is still relatively new to the Puppet ecosystem, but is a promising new addition, allowing for the rapid sharing of administration automation tasks within an organization.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.191.22