/puppet-transmission

Puppet module to manage the Transmission BitTorrent client

Primary LanguagePuppetApache License 2.0Apache-2.0

puppet-transmission

Build Status Puppet Forge

Table of Contents

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

Overview

This Puppet module installs and configures the transmission daemon - the headless component of the Transmission BitTorrent client.

Puppet 3 Support

Please note that the master branch of this module does not support Puppet 3!

On 31st December 2016, support for Puppet 3.x was withdrawn. As such, this module no longer supports Puppet 3, and is actively being migrated to Puppet 4 syntax.

If you require Puppet 3 compatibility, please use version 1.2.1 from the Puppet Forge, or the puppet3 branch in Git.

Module Description

  • Adds the Transmission PPA from ppa:transmissionbt/ppa
  • Installs transmission-cli,transmission-common and transmission-daemon packages
  • Downloads and periodically updates blocklists if configured
  • Configures the configuration file for Transmission at /etc/transmission-daemon/settings.json
  • Enables and starts the transmission-daemon daemon/service

Setup

Beginning With puppet-transmission

To accept default class parameters (correct in most situations):

include transmission

Usage Example

To specify an RPC user/password, set a custom port number for RPC and peer connections and enable mandatory encryption for peer connections:

class { 'transmission':
  rpc_username => 'rpcuser',
  rpc_password => 'somecomplexpasswordgoeshere',
  rpc_port     => 8080,
  peer_port    => 54612,
  encryption   => 2,
}

Reference

Transmission Configuration Parameters

Classes

transmission::config

  • Places the daemon configuration and service defaults files
  • Configures the blocklist update cron, if enabled

transmission::install

  • Adds the Transmission Apt PPA to the system
  • Installs the packages necessary to run the headless daemon

transmission::service

  • Ensures the transmission-daemon service is running
  • Copies the temporary daemon settings file on-change by stopping and starting the daemon

Limitations

  • The module does not manage or install the transmission-gtk package for the client's GUI

Supported Operating Systems

  • Ubuntu (tested on 14.04 LTS)

Development

  • Copyright (C) Craig Watson - craig@cwatson.org
  • Distributed under the terms of the Apache License v2.0 - see LICENSE file for details.
  • Further contributions and testing reports are extremely welcome - please submit a pull request or issue on GitHub