Forge Home

tor

Configuration and management of Tor relays

8,282 downloads

6,603 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.

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.2.0 (latest)
  • 0.1.2
  • 0.1.1
  • 0.1.0 (deleted)
released Oct 13th 2017
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.0.0 < 6.0.0

Start using this module

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

Add this module to your Puppetfile:

mod 'arcaik-tor', '0.2.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add arcaik-tor
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install arcaik-tor --version 0.2.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
Tags: tor, router, onion

Documentation

arcaik/tor — version 0.2.0 Oct 13th 2017

Tor

Build Status

Overview

From the Tor project website: Tor is free software and an open network that helps you defend against traffic analysis, a form of network surveillance that threatens personal freedom and privacy, confidential business activities and relationships, and state security.

Table of Contents

  1. Module description
  2. Usage
  3. Reference
  1. Limitations
  2. Development

Module description

This module helps you run Tor relays by installing, configuring, and managing Tor service instances.

Usage

The main tor class manages the installation options.

The tor::instance type manages a Tor instance configuration.

Beginning with tor

You must first include the main class with: include ::tor, then you can create an instance with:

tor::instance { 'foo':
  settings => {
    Nickname => 'foo',
    OrPort   => 9050,
    DirPort  => 9030,
  }
}

The instances parameters of the main class, will be passed to create_resources.

You may put you configuration options in hiera:

---
tor::instances:
  foo:
    settings:
      Nickname: 'foo'
      OrPort: 9050
      DirPort: 9030

Reference

Public classes

Class tor

Parameters
package_name

Optional. String. Sets the name of the Tor package (default: tor).

package_ensure

Optional. String. Controls the package resource's ensure attribute (default: present).

See Resource Type: package for a list of allowed values.

config_dir

Optional. Stdlib::Absolutepath. Sets the directory where Tor's configuration files are located (default: /etc/tor).

instances_config_dir

Option. Stdlib::Absolutepath. Sets the directory where Tor's instances configuration files are located (default: /etc/tor/instances).

instances

Option. Hash. Sets the instances that will be passed to create_resources.

Private classes

  • tor::params
  • tor::install: handles the packages installation.
  • tor::config: handles the configuration file management.

Public defined types

Defined type tor::instance:

Parameters

ensure

Optional. String (absent or present).

settings

Optional. Hash. Sets the Tor instance configuration values (default: an empty hash).

To repeat an options multiple times, its value can be an Array.

For instance:

tor::instance { "foo":
  settings => {
    Nickname => 'foo',
    OrPort   => [ 9050, "9051 NoAdvertise" ]
    DirPort  => 9030,
  }
}

Limitations

This module only works with systemd. It has only been tested on Debian 8 (Jessie).

Development

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 our module contribution guide.