apply_helpers
Table of Contents
- Description
- Setup - The basics of getting started with apply_helpers
- Usage - Configuration options and additional functionality
- Reference - An under-the-hood peek at what the module is doing and how
Description
This module provides helper tasks that are used by the apply()
functionality in Bolt. These tasks are not intended to be run on their own, but as part of a bolt plan that uses the apply keyword.
This module allows Bolt plans using apply()
to be run on a Puppet Enterprise (PE) installation.
Setup
- First you'll need to install the puppetlabs-puppet_agent module from the master branch on github. The easiest way to do this is to add
mod 'puppetlabs-puppet_agent', :git => 'https://github.com/puppetlabs/puppetlabs-puppet_agent.git'
to yourPuppetfile
. Alternatively you can clone thepuppetlabs-puppet_agent
repo, build it locally, and use the Puppet Development Kit to installgit clone https://github.com/puppetlabs/puppetlabs-puppet_agent.git cd puppetlabs-puppet_agent pdk build puppet module install ./pkg/puppetlabs-puppet_agent-version.tar.gz
from the commandline - Install the
apply_helpers
module in PE. Add the following to yourPuppetfile
:mod 'puppetlabs-apply_helpers'
Or install using the puppet module command:puppet module install puppetlabs/apply_helpers
- Using PE RBAC, grant the ability to run the
apply_helpers::custom_facts
andapply_helpers::apply_catalog
tasks to the users who intend to use this module.
Usage
Configure Bolt to work with PE Orchestrator and run Bolt commands or Tasks from the console.
Reference
This module includes tasks that are invoked automatically by Bolt: apply_helpers::custom_facts
and apply_helpers::apply_catalog
. These tasks should not be run on their own.