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.
This module helps you run Tor relays by installing, configuring, and managing Tor service instances.
The main tor
class manages the installation options.
The tor::instance
type manages a Tor instance configuration.
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
Optional. String. Sets the name of the Tor package (default: tor
).
Optional. String. Controls the package resource's ensure attribute (default:
present
).
See Resource Type: package for a list of allowed values.
Optional. Stdlib::Absolutepath. Sets the directory where Tor's configuration
files are located (default: /etc/tor
).
Option. Stdlib::Absolutepath. Sets the directory where Tor's instances
configuration files are located (default: /etc/tor/instances
).
Option. Hash. Sets the instances that will be passed to create_resources
.
tor::params
tor::install
: handles the packages installation.tor::config
: handles the configuration file management.
Optional. String (absent or present).
Optional. Hash. Sets the Tor instance configuration values (default: an empty hash).
To repeat the torrc
options multiple times, you can use an Array
as value
for members of settings
.
For instance:
tor::instance { "foo":
settings => {
Nickname => 'foo',
OrPort => [ 9050, "9051 NoAdvertise" ]
DirPort => 9030,
}
}
This module only works with systemd. It has only been tested on Debian 8 (Jessie).
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.