Forge Home

pipelines

Manages the Puppet Pipelines agent.

25,704 downloads

13,276 latest version

5.0 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 1.0.1 (latest)
  • 1.0.0
released Jul 17th 2019
This version is compatible with:
  • Puppet Enterprise 2018.1.x, 2017.3.x, 2017.2.x, 2017.1.x, 2016.5.x, 2016.4.x
  • Puppet >= 4.7.0 < 6.0.0
  • , , , , , , , , , ,

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'puppetlabs-pipelines', '1.0.1'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add puppetlabs-pipelines
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install puppetlabs-pipelines --version 1.0.1

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

puppetlabs/pipelines — version 1.0.1 Jul 17th 2019

puppetlabs-pipelines: Configure the Puppet Pipelines agent

The Pipelines module installs, configures, and manages the agent for Puppet Pipelines on Linux, macOS, and Windows. It can be used on build, application, and key management servers.

Table of Contents

  1. Usage
  2. Reference
  3. Contributing

Usage

class { 'pipelines::agent':
  access_token => Sensitive('super_long_access_token'),
  secret_key   => Sensitive('super_secret_key'),
  download_url => 'https://pfa.example.com/download/client',
  start_agent  => true,
  data_dir     => '/home/distelli/data',
  install_dir  => '/home/distelli/bin',
  environments => ['production', 'staging', 'development'],
  version      => '3.68.0',
}

access_token and secret_key (required)

These are the only required parameters. You can obtain these credentials in the Pipelines interface under Settings > Agent.

You will likely want to use Hiera eyaml or some other form of encryption so that you don't have to put your credentials in your codebase in plain text.

download_url (required for on-premise installs)

If you have an on-premise installation of pipelines, you are required to specify a download URL to install from so that the agent which is downloaded has the proper endpoints embedded within it.

start_agent (optional)

You can specify the start_agent => false parameter if you only want the distelli binary to be installed.

data_dir (optional)

By default, the agent stores all data under the /distelli or %SystemDrive%\Distelli.yml directory on Windows. You can specify a different directory with the data_dir option. This option is useful if:

  • You want to run multiple agents on the same host.
  • You want to restrict the permissions of the distelli user.

install_dir (optional)

By default the executable is installed in /usr/local/bin or %ProgramFiles%\Distelli on Windows. You can specify a different install directory with the install_dir option.

environments (optional)

This is a list of PfA environments to "join" when the agent starts.

version (not recommended)

If you want to "pin" a particular verson of the agent you can use this option, although it is not recommended since not all pipeline products support multiple concurrent agent versions.

Reference

Classes

Public classes

  • pipelines::agent: Main class, includes all other classes.

Private classes

  • pipelines::agent::unix: Handles the install on Linux and macOS.
  • pipelines::agent::windows: Handles the install on Windows.

Contributing

Puppet modules on the Puppet Forge are open projects, and community contributions are essential for keeping them great. Please follow our guidelines when contributing changes.

For more information, see Puppet's module contribution guide.

Contributors

To see who's already involved, see the list of contributors.

Special thanks to: