gremlin_agent

pdk
tasks
Install and configure the gremlin agent and daemon.

gremlin

gremlin

329 downloads

316 latest version

2.6 quality score

Version information

  • 0.1.1 (latest)
  • 0.1.0
released Mar 31st 2021
This version is compatible with:
  • Puppet Enterprise 2021.0.x, 2019.8.x
  • Puppet >= 6.21.0 < 8.0.0
  • CentOS
    ,
    OracleLinux
    ,
    RedHat
    ,
    Scientific
    ,
    Debian
    ,
    Ubuntu
    ,
    Fedora
    ,
    windows
Tasks:
  • attack

Start using this module

Documentation

gremlin/gremlin_agent — version 0.1.1 Mar 31st 2021

gremlin_agent

This module installs and configures the gremlin agent on a variety of operating systems.

Table of Contents

  1. Description
  2. Setup - The basics of getting started with gremlin_agent
  3. Usage - Configuration options and additional functionality
  4. Limitations - OS compatibility, etc.
  5. Development - Guide for contributing to the module

Description

In order to better streamline and standardize the Gremlin agent installation and configuration, this module provides a supported method to manage and maintain the gremlin agent on your systems.

Setup

What gremlin_agent affects

The configuration follows the steps documented on the Gremlin docs

  • It installs the dependencies required based on the host OS.
  • It installs the gremlin repository, the agent, and the daemon.
  • It configures the daemon via config.yaml, and manages the service.

Beginning with gremlin_agent

You need to provide the gremlin_team_id and either gremlin_team_secret or the gremlin_team_certificate_or_file and gremlin_team_private_key_or_file

These can either come from Hiera or called directly as the below example:

class { 'gremlin_agent':
  gremlin_team_id     => '11111111-1111-1111-1111-111111111111',
  gremlin_team_secret => '11111111-1111-1111-1111-111111111111'
}
gremlin_agent::gremlin_team_id: '11111111-1111-1111-1111-111111111111'
gremlin_agent::gremlin_team_secret: '11111111-1111-1111-1111-111111111111'

Usage

If you wish to use the certificate pair instead of the team secret, you can provide either the filepath (prefixed with file://) or the whole certificate.

class { 'gremlin_agent':
  gremlin_team_id                  => '11111111-1111-1111-1111-111111111111',
  gremlin_team_certificate_or_file => 'file://var/lib/gremlin/key.cert',
  gremlin_team_private_key_or_file => 'file://var/lib/gremlin/key.pem',
}

Additional parameters that can be set can be viewed in the REFERENCE.md

Reference

See REFERENCE.md

Limitations

This module has had limited testing and doesn't currently support all features. Please open an issue for any bugs discovered.

Development

Feel free to open a PR for suggested changes or improvements.

TODO:

  • Finish fleshing out Windows support.
  • Add tasks to trigger gremlin checks.
  • Add some additional config validation to confirm agent is successfully talking to control plane.