Forge Home

ditl

Module to manage DNS-OARC DITL uploads

6,856 downloads

6,856 latest version

4.6 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.

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

Version information

  • 0.1.0 (latest)
released Oct 13th 2016
This version is compatible with:
  • ,

Start using this module

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

Add this module to your Puppetfile:

mod 'icann-ditl', '0.1.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add icann-ditl
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install icann-ditl --version 0.1.0

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

icann/ditl — version 0.1.0 Oct 13th 2016

Build Status Puppet Forge Puppet Forge Downloads

ditl

Table of Contents

  1. Overview
  2. Module Description - What the module does and why it is useful
  3. Setup - The basics of getting started with ditl
  4. Usage - Configuration options and additional functionality
  5. Reference - An under-the-hood peek at what the module is doing and how
  6. Limitations - OS compatibility, etc.
  7. Development - Guide for contributing to the module

Overview

This module installs ditl and can also manage the custom scripts, host script and custom modules directories

Setup

What ditl affects

  • installs ssh key to the root user
  • install a bash script to upload pcaps
  • install a cron job to upload pcaps

Setup Requirements

  • puppetlabs-stdlib 4.12.0
  • icann-tea 0.2.4

Beginning with ditl

just add the ditl class and pass the two mandatory parameters upload_key_source and upload_user

class {'::ditl' 
  upload_key_source => 'puppet:///modules/module_files/upload_key_rsa',
  upload_user       => 'ditl-user',
}

Usage

Update pattern

DITL will normaly have a start and stop time, we use the pattern barameter to bass a bash glob matching the pattern for the period. for instance if the period starts on 2016-05-03 and ends 2016-05-06 then we would have the following

class {'::ditl' 
  upload_key_source => 'puppet:///modules/module_files/upload_key_rsa',
  upload_user       => 'ditl-user',
  pattern           => '2016050{3..8}*.{bz2,xz}'
}

of with hiera

ditl::upload_key_source: 'puppet:///modules/module_files/upload_key_rsa',
ditl::upload_user: 'ditl-user',
ditl::pattern: '2016050{3..8}*.{bz2,xz}'

Reference

Classes

Public Classes

Private Classes

Class: ditl

Main class, includes all other classes

Parameters
  • upload_key_source (Tea::Puppetsource, Default: undef): This is a string which will be passed the file type source paramter to be treated as a ssh private key to use for uploads top ditl
  • upload_user (String, Default: undef): The remote username to use for uploads
  • enabled (Boolean Default: true): Whether to enable this module
  • pcap_dir (Tea::Absolutepath, Default: '/opt/pcap'): The location of pcap files toupload
  • upload_host (Tea::Fqdn, Default: capture.ditl.dns-oarc.net): The host to upload DITL data to
  • upload_key_file (Tea::Absolutepath, Default: /root/.ssh/oarc_id_dsa): The location to stor the rsa private key
  • clean_known_hosts (Boolean Default: false): WARNING changing this value is a security risk effectivly meaning that the upload script will trust any host fingerprint its given and therefore open to MITM attacks. Only change this value if you know what you are doing

Limitations

This module is tested on Ubuntu 12.04, and 14.04 and FreeBSD 10