]> gitweb.fluxo.info Git - puppet-tor.git/log
puppet-tor.git
9 years agoMerge branch 'master' into 'master' master
Micah [Fri, 11 Mar 2016 20:53:08 +0000 (20:53 +0000)]
Merge branch 'master' into 'master'

Fix deprecated variable references

See merge request !3

9 years agoFix deprecated variable references
Micah Anderson [Fri, 11 Mar 2016 17:08:39 +0000 (12:08 -0500)]
Fix deprecated variable references

10 years agoMerge branch 'bugfix/issue-1-unset_outbound_bindaddresses' into 'master'
Micah [Fri, 9 Oct 2015 18:58:11 +0000 (18:58 +0000)]
Merge branch 'bugfix/issue-1-unset_outbound_bindaddresses' into 'master'

tor::daemon::relay: set $real_outbound_bindaddresses to [] when $outbound_bindad…

…dresses is not explicitly set.

Closes: #1
See merge request !2

10 years agotor::daemon::relay: set $real_outbound_bindaddresses to [] when $outbound_bindaddress...
intrigeri [Fri, 17 Jul 2015 13:11:30 +0000 (13:11 +0000)]
tor::daemon::relay: set $real_outbound_bindaddresses to [] when $outbound_bindaddresses is not explicitly set.

Closes: #1
10 years agoMerge branch 'improvements' into 'master'
Micah [Fri, 27 Mar 2015 18:50:01 +0000 (18:50 +0000)]
Merge branch 'improvements' into 'master'

Improvements

These are a bunch of improvements I got on my github profile in the past.

Interested in merging them?

Summary:

* adds tor repo management
* removes a workaround for a fixed bug
* adds tor-arm support
* support for safe logging
* puppet 3 ready templates.

It's merged on top of the current master.

See merge request !1

11 years agobug is fixed
mh [Sat, 30 Aug 2014 14:37:58 +0000 (16:37 +0200)]
bug is fixed

11 years agofix variable
mh [Fri, 13 Jun 2014 18:21:37 +0000 (20:21 +0200)]
fix variable

11 years agoMerge remote-tracking branch 'github/master'
mh [Fri, 13 Jun 2014 07:41:34 +0000 (09:41 +0200)]
Merge remote-tracking branch 'github/master'

Conflicts:
templates/torrc.global.erb

11 years agoMerge pull request #13 from pataquets/add-safe-logging
duritong [Fri, 13 Jun 2014 06:59:00 +0000 (08:59 +0200)]
Merge pull request #13 from pataquets/add-safe-logging

Add safe_logging parameter.

11 years agoMerge remote-tracking branch 'shared/master'
mh [Fri, 18 Apr 2014 09:10:47 +0000 (11:10 +0200)]
Merge remote-tracking branch 'shared/master'

11 years agoMerge remote-tracking branch 'githubmirror/master'
mh [Fri, 18 Apr 2014 09:10:29 +0000 (11:10 +0200)]
Merge remote-tracking branch 'githubmirror/master'

11 years agoaddress puppet 3.x deprecation warnings
mh [Fri, 18 Apr 2014 09:10:16 +0000 (11:10 +0200)]
address puppet 3.x deprecation warnings

11 years agoMerge pull request #10 from pataquets/add-tor-repo-class
duritong [Thu, 20 Mar 2014 15:51:06 +0000 (16:51 +0100)]
Merge pull request #10 from pataquets/add-tor-repo-class

Add tor::repo class with apt::source from torproject.org.

11 years agoAdd safe_logging parameter.
amontero-referup [Thu, 20 Mar 2014 15:43:38 +0000 (16:43 +0100)]
Add safe_logging parameter.

11 years agoImprove tor::repo and add tor::repo::debian classes.
amontero-referup [Mon, 17 Mar 2014 09:10:19 +0000 (10:10 +0100)]
Improve tor::repo and add tor::repo::debian classes.

11 years agoMerge pull request #11 from pataquets/add-arm-class
duritong [Fri, 14 Mar 2014 16:14:48 +0000 (17:14 +0100)]
Merge pull request #11 from pataquets/add-arm-class

Add tor::arm class.

11 years agoAdd tor::arm class.
amontero-referup [Fri, 14 Mar 2014 12:44:04 +0000 (13:44 +0100)]
Add tor::arm class.

11 years agoRename source name parameter.
amontero-referup [Fri, 14 Mar 2014 12:40:33 +0000 (13:40 +0100)]
Rename source name parameter.

11 years agoAdd tor::repo class with apt::source from torproject.org .
amontero-referup [Thu, 13 Mar 2014 14:57:51 +0000 (15:57 +0100)]
Add tor::repo class with apt::source from torproject.org .

11 years agoMerge pull request #1 from irregulator/bug/5241
micah [Wed, 12 Mar 2014 14:26:06 +0000 (10:26 -0400)]
Merge pull request #1 from irregulator/bug/5241

DirPortFrontPage should serve the 'tor-exit-notice' static page

11 years agoDirPortFrontPage should serve the 'tor-exit-notice' static page
irregulator [Wed, 12 Mar 2014 01:17:34 +0000 (03:17 +0200)]
DirPortFrontPage should serve the 'tor-exit-notice' static page
rather than tor's man page.

12 years agoMerge pull request #9 from pataquets/remove-unneeded-default-values
duritong [Mon, 22 Jul 2013 10:01:08 +0000 (03:01 -0700)]
Merge pull request #9 from pataquets/remove-unneeded-default-values

Don't add config entries to torrc if value is default

12 years agoFix ExitPolicyRejectPrivate not being omitted if set to 1. ( duritong/puppet-tor#5 )
amontero [Mon, 15 Jul 2013 18:13:24 +0000 (20:13 +0200)]
Fix ExitPolicyRejectPrivate not being omitted if set to 1. ( duritong/puppet-tor#5 )

12 years agoDon't add config entries to torrc if value is default. ( duritong/puppet-tor#5 )
amontero [Tue, 2 Jul 2013 00:17:29 +0000 (02:17 +0200)]
Don't add config entries to torrc if value is default. ( duritong/puppet-tor#5 )

12 years agoMerge pull request #6 from pataquets/add-PortForwarding
duritong [Sun, 30 Jun 2013 19:47:05 +0000 (12:47 -0700)]
Merge pull request #6 from pataquets/add-PortForwarding

Add PortForwarding to allow UPnP firewall pf configuration.

12 years agoAdd PortForwarding to allow UPnP firewall pf configuration.
amontero [Fri, 28 Jun 2013 01:05:52 +0000 (03:05 +0200)]
Add PortForwarding to allow UPnP firewall pf configuration.

12 years agoMerge pull request #4 from micah/outbound_bindaddresses
duritong [Tue, 25 Jun 2013 06:57:14 +0000 (23:57 -0700)]
Merge pull request #4 from micah/outbound_bindaddresses

Outbound bindaddresses

12 years agoadd upgrade notice to the README to detail the outbound_bindaddress change
Micah Anderson [Mon, 24 Jun 2013 19:49:04 +0000 (15:49 -0400)]
add upgrade notice to the README to detail the outbound_bindaddress change

12 years agoEmpty template variable for OutboundBindAddress if parameter is an empty array.
amontero [Sun, 28 Apr 2013 21:35:01 +0000 (23:35 +0200)]
Empty template variable for OutboundBindAddress if parameter is an empty array.

13 years agoAnother variable scope fix
Silvio Rhatto [Fri, 25 Jan 2013 20:50:51 +0000 (18:50 -0200)]
Another variable scope fix

13 years agoFixing variable scope assingment
Silvio Rhatto [Fri, 25 Jan 2013 17:18:47 +0000 (15:18 -0200)]
Fixing variable scope assingment

13 years agoFixing scope lookup at global template
Silvio Rhatto [Fri, 25 Jan 2013 16:21:23 +0000 (14:21 -0200)]
Fixing scope lookup at global template

13 years agoSetting hasstatus and pattern for tor::polipo::debian
Silvio Rhatto [Wed, 23 Jan 2013 13:26:16 +0000 (11:26 -0200)]
Setting hasstatus and pattern for tor::polipo::debian

13 years agoFix missing delimiter
Silvio Rhatto [Mon, 21 Jan 2013 01:38:27 +0000 (23:38 -0200)]
Fix missing delimiter

13 years agoMerge branch 'master' of ssh://labs.riseup.net/shared-tor
Silvio Rhatto [Mon, 21 Jan 2013 01:09:20 +0000 (23:09 -0200)]
Merge branch 'master' of ssh://labs.riseup.net/shared-tor

Conflicts:
manifests/daemon.pp

13 years agofix typo on 2.6
mh [Wed, 2 Jan 2013 13:16:11 +0000 (14:16 +0100)]
fix typo on 2.6

13 years agomanage a dedicated control port for munin
mh [Wed, 2 Jan 2013 13:14:28 +0000 (14:14 +0100)]
manage a dedicated control port for munin

13 years agouse the deploy mechanism of the munin module
mh [Wed, 2 Jan 2013 12:59:50 +0000 (13:59 +0100)]
use the deploy mechanism of the munin module

13 years agorefactor daemon and main class for better design
mh [Wed, 2 Jan 2013 12:54:57 +0000 (13:54 +0100)]
refactor daemon and main class for better design

By extracting the resources to their own class we can avoid a bug
in puppet that makes it hard to deal with inherited parametrized
classes.

13 years agosplit out defines into their own files
mh [Wed, 2 Jan 2013 12:41:56 +0000 (13:41 +0100)]
split out defines into their own files

13 years agomake it working on 2.6 - can't end with a , on 2.6
mh [Wed, 2 Jan 2013 12:05:57 +0000 (13:05 +0100)]
make it working on 2.6 - can't end with a , on 2.6

13 years agoLinting.
intrigeri [Wed, 2 Jan 2013 11:30:55 +0000 (12:30 +0100)]
Linting.

13 years agoCleanup: remove now useless variable.
intrigeri [Sun, 11 Nov 2012 21:49:15 +0000 (22:49 +0100)]
Cleanup: remove now useless variable.

13 years agoSpecify file modes as single-quoted strings.
intrigeri [Sun, 11 Nov 2012 21:46:25 +0000 (22:46 +0100)]
Specify file modes as single-quoted strings.

Puppet style guide "9.6. File Modes" reads:

  In addition, file modes should be specified as single-quoted strings instead
  of bare word numbers.

13 years agoMove ensure attributes to the first place.
intrigeri [Sun, 11 Nov 2012 21:42:23 +0000 (22:42 +0100)]
Move ensure attributes to the first place.

Puppet style guide "9.3. Attribute Ordering" reads:

  If a resource declaration includes an ensure attribute, it should be the first
  attribute specified.

13 years agoUse the concat module instead of the obsolete concatenated_file define.
intrigeri [Sun, 11 Nov 2012 21:26:31 +0000 (22:26 +0100)]
Use the concat module instead of the obsolete concatenated_file define.

... and cleanup the now unused spool_dir.

13 years agoGive the debian-tor user /bin/false as a shell.
intrigeri [Sun, 11 Nov 2012 21:15:08 +0000 (22:15 +0100)]
Give the debian-tor user /bin/false as a shell.

This is the Debian package default, and I've never seen the need to give it
a real shell.

13 years agoIndentation fixes.
intrigeri [Sun, 11 Nov 2012 21:10:54 +0000 (22:10 +0100)]
Indentation fixes.

13 years agoAlign all fat arrows in resource’s attribute/value list.
intrigeri [Sun, 11 Nov 2012 20:53:10 +0000 (21:53 +0100)]
Align all fat arrows in resource’s attribute/value list.

Puppet style guide "9.2. Arrow Alignment" reads: "All of the fat comma arrows
(=>) in a resource’s attribute/value list should be aligned. The arrows should
be placed one space ahead of the longest attribute name."

13 years agoQuote and enclose in braces variables in strings.
intrigeri [Sun, 11 Nov 2012 20:48:58 +0000 (21:48 +0100)]
Quote and enclose in braces variables in strings.

Puppet style guide "8. Quoting" reads: "Double quotes should be used when
variable interpolation is required. [...] All variables should be enclosed in
braces when interpolated in a string."

13 years agoUse single-quotes for strings that do not contain variables.
intrigeri [Sun, 11 Nov 2012 20:43:03 +0000 (21:43 +0100)]
Use single-quotes for strings that do not contain variables.

Puppet style guide, section "8. Quoting", reads: "All strings that do not
contain variables should be enclosed in single quotes."

13 years agoGet a lost part of the fix for outbound_bindaddresses back.
intrigeri [Sun, 11 Nov 2012 19:57:33 +0000 (20:57 +0100)]
Get a lost part of the fix for outbound_bindaddresses back.

The fix was implemented in 8e0dbb0, but apparently I've managed to lose it as
part of one of the numerous merge conflicts I've dealt with when merging
everyone's branch.

13 years agoMigrate to parameterized classes, drop global variables.
intrigeri [Fri, 9 Nov 2012 20:54:58 +0000 (21:54 +0100)]
Migrate to parameterized classes, drop global variables.

13 years agoRemove useless comment.
intrigeri [Fri, 9 Nov 2012 20:40:21 +0000 (21:40 +0100)]
Remove useless comment.

13 years agoMerge remote-tracking branch 'immerda/master'
intrigeri [Fri, 9 Nov 2012 20:27:54 +0000 (21:27 +0100)]
Merge remote-tracking branch 'immerda/master'

Conflicts:
manifests/init.pp
manifests/polipo.pp
manifests/polipo/base.pp
manifests/torsocks.pp

13 years agoAdd support for including arbitrary snippet into torrc.
intrigeri [Wed, 29 Aug 2012 09:49:11 +0000 (11:49 +0200)]
Add support for including arbitrary snippet into torrc.

13 years agoMerge remote-tracking branch 'shared/master'
intrigeri [Sat, 4 Aug 2012 14:49:53 +0000 (16:49 +0200)]
Merge remote-tracking branch 'shared/master'

Conflicts:
manifests/daemon.pp

13 years agoMerge remote-tracking branch 'riseup/master' into shared-master
intrigeri [Sat, 4 Aug 2012 14:29:37 +0000 (16:29 +0200)]
Merge remote-tracking branch 'riseup/master' into shared-master

13 years agofix template syntax error
Micah Anderson [Fri, 3 Aug 2012 19:08:43 +0000 (15:08 -0400)]
fix template syntax error

13 years agoadd $cookie_authentication, $cookie_auth_file and $cookie_auth_file_group_readable...
Micah Anderson [Fri, 3 Aug 2012 19:00:32 +0000 (15:00 -0400)]
add $cookie_authentication, $cookie_auth_file and $cookie_auth_file_group_readable variables

13 years agochange location of control port in munin graphs, now that
Micah Anderson [Fri, 3 Aug 2012 18:39:08 +0000 (14:39 -0400)]
change location of control port in munin graphs, now that
/usr/share/tor/tor-service-defaults-torrc exists and contains:

CookieAuthentication 1
CookieAuthFileGroupReadable 1
CookieAuthFile /var/run/tor/control.authcookie

13 years agoadd README, including information about the transition information regarding the...
Micah Anderson [Tue, 31 Jul 2012 02:08:50 +0000 (22:08 -0400)]
add README, including information about the transition information regarding the bandwidth parameters

13 years agoswitch bandwidth_rate and bandwidth_burst to be relay_bandwidth_rate and
Micah Anderson [Tue, 31 Jul 2012 02:08:30 +0000 (22:08 -0400)]
switch bandwidth_rate and bandwidth_burst to be relay_bandwidth_rate and
relay_bandwidth_burst so we can use those variables for their proper tor
configuration variables

13 years agoRemove trailing whitespace from newly added lines.
intrigeri [Sat, 7 Jul 2012 17:02:34 +0000 (19:02 +0200)]
Remove trailing whitespace from newly added lines.

13 years agoAdding support for MapAddress tor option
Silvio Rhatto [Thu, 21 Jun 2012 02:24:30 +0000 (23:24 -0300)]
Adding support for MapAddress tor option

13 years agoAdding support for MapAddress tor option
Silvio Rhatto [Thu, 21 Jun 2012 02:24:30 +0000 (23:24 -0300)]
Adding support for MapAddress tor option

13 years agoAdd support for AutomapHostsOnResolve.
intrigeri [Tue, 19 Jun 2012 02:48:26 +0000 (04:48 +0200)]
Add support for AutomapHostsOnResolve.

13 years agoAdd support for using bridges.
intrigeri [Tue, 19 Jun 2012 02:07:31 +0000 (04:07 +0200)]
Add support for using bridges.

13 years agoAdd support for TransPort and TransListenAddress.
intrigeri [Tue, 19 Jun 2012 02:02:13 +0000 (04:02 +0200)]
Add support for TransPort and TransListenAddress.

13 years agoAdd support for DNSPort and DNSListenAddress.
intrigeri [Tue, 19 Jun 2012 01:59:20 +0000 (03:59 +0200)]
Add support for DNSPort and DNSListenAddress.

13 years agoNot managing the top level folder of a hidden service anymore: this can be done in...
Silvio Rhatto [Mon, 18 Jun 2012 15:16:15 +0000 (12:16 -0300)]
Not managing the top level folder of a hidden service anymore: this can be done in a custom module

13 years agoChanging data dir permission for a hidden service
Silvio Rhatto [Mon, 11 Jun 2012 22:59:37 +0000 (19:59 -0300)]
Changing data dir permission for a hidden service

13 years agoManaging the top level folder of a hidden service
Silvio Rhatto [Sun, 10 Jun 2012 20:02:30 +0000 (17:02 -0300)]
Managing the top level folder of a hidden service

13 years agoThe torsocks package does not need the Tor data directory.
intrigeri [Fri, 8 Jun 2012 15:49:54 +0000 (17:49 +0200)]
The torsocks package does not need the Tor data directory.

13 years agoadd a compact class
mh [Fri, 28 Oct 2011 14:55:19 +0000 (16:55 +0200)]
add a compact class

mainly to give a way to have the old behavior

13 years agoMove Polipo configuration files to a dedicated directory.
intrigeri [Fri, 8 Jun 2012 15:37:05 +0000 (17:37 +0200)]
Move Polipo configuration files to a dedicated directory.

13 years agoFactor out Polipo into base and Debian -specific classes.
intrigeri [Fri, 8 Jun 2012 15:34:13 +0000 (17:34 +0200)]
Factor out Polipo into base and Debian -specific classes.

13 years agoDecouple torsocks into its own class.
intrigeri [Fri, 8 Jun 2012 15:27:59 +0000 (17:27 +0200)]
Decouple torsocks into its own class.

immerda's big decoupling commit (8f1d1c4) is too hard to apply in one shot in
the current state of the shared branch, so let's pick bits of it one after
the other.

13 years agonew style for 2.7
mh [Tue, 5 Jun 2012 21:05:25 +0000 (18:05 -0300)]
new style for 2.7

13 years agoMerge branch 'bugfix/outbound_bindaddresses-default'
intrigeri [Thu, 26 Apr 2012 15:22:15 +0000 (17:22 +0200)]
Merge branch 'bugfix/outbound_bindaddresses-default'

13 years agoFix the relay define's outbound_bindaddresses default value setting.
intrigeri [Thu, 26 Apr 2012 14:56:35 +0000 (16:56 +0200)]
Fix the relay define's outbound_bindaddresses default value setting.

Apparently, we have no guarantee $outbound_bindaddresses's value is set *after*
$listen_addresses is, so (at least on my setup) it ends up being undef,
and then the template parsing fails:

err: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed
to parse template tor/torrc.relay.erb: undefined method `each' for :undef:Symbol
at /etc/puppet/modules/tor/manifests/daemon.pp:117

So, let's set $real_outbound_bindaddresses to $listen_addresses in the define
body, as needed.

13 years agoenable service on boot
mh [Fri, 28 Oct 2011 14:36:00 +0000 (16:36 +0200)]
enable service on boot

Conflicts:

manifests/init.pp

13 years agothis file should be deployed after the package have been installed, as it replaces...
mh [Fri, 28 Oct 2011 14:33:28 +0000 (16:33 +0200)]
this file should be deployed after the package have been installed, as it replaces the file from the cronjob

Conflicts:

manifests/init.pp

13 years agoDon't manage /etc/polipo: it's shipped by the polipo package.
intrigeri [Wed, 11 Apr 2012 13:09:42 +0000 (15:09 +0200)]
Don't manage /etc/polipo: it's shipped by the polipo package.

13 years agoDo not ensure the privoxy package is uninstalled.
mh [Fri, 28 Oct 2011 14:16:28 +0000 (16:16 +0200)]
Do not ensure the privoxy package is uninstalled.

this should be done in a seperate module and is not really needed here

Conflicts:

manifests/init.pp

13 years agoMerge remote-tracking branch 'riseup/master'
intrigeri [Wed, 14 Mar 2012 19:36:22 +0000 (20:36 +0100)]
Merge remote-tracking branch 'riseup/master'

13 years agofix torc.relay.erb outboundaddress/outboundaddresses confusion
Micah Anderson [Wed, 14 Mar 2012 19:35:52 +0000 (15:35 -0400)]
fix torc.relay.erb outboundaddress/outboundaddresses confusion

13 years agofix duplicate definition of torssocks
Micah Anderson [Wed, 14 Mar 2012 19:33:28 +0000 (15:33 -0400)]
fix duplicate definition of torssocks

13 years agooutbound_bindaddress should be outbound_bindaddresses and $outbound_bindaddresses...
Micah Anderson [Wed, 14 Mar 2012 19:29:35 +0000 (15:29 -0400)]
outbound_bindaddress should be outbound_bindaddresses and $outbound_bindaddresses  = $listen_addresses

13 years agoenable different version ensure for torssocks, it doesn't share the same version...
Micah Anderson [Wed, 14 Mar 2012 19:27:17 +0000 (15:27 -0400)]
enable different version ensure for torssocks, it doesn't share the same version number as tor and tor-geoipdb, so if you set $tor_ensure_version, you will have an error with torsocks

13 years agofix package name for tor-geoipdb
Micah Anderson [Wed, 14 Mar 2012 19:26:14 +0000 (15:26 -0400)]
fix package name for tor-geoipdb

13 years agoadd missing munin plugins that should have been added when the munin.pp was created
Micah Anderson [Wed, 14 Mar 2012 19:17:45 +0000 (15:17 -0400)]
add missing munin plugins that should have been added when the munin.pp was created

13 years agoadd ExitPolicyRejectPrivate option to exit_policy define
Micah Anderson [Wed, 14 Mar 2012 17:05:14 +0000 (13:05 -0400)]
add ExitPolicyRejectPrivate option to exit_policy define

13 years agoadd OutboundBindAddress, default set to $listen_address
Micah Anderson [Wed, 14 Mar 2012 16:45:59 +0000 (12:45 -0400)]
add OutboundBindAddress, default set to $listen_address

13 years agoRemove useless import (closes Redmine #3855).
intrigeri [Wed, 14 Mar 2012 13:06:29 +0000 (14:06 +0100)]
Remove useless import (closes Redmine #3855).

13 years agoswitch legacy puppet://$server to puppet:///
Micah Anderson [Wed, 14 Mar 2012 16:17:12 +0000 (12:17 -0400)]
switch legacy puppet://$server to puppet:///

13 years agomake sure that the control port's hashed password is not empty
Micah Anderson [Wed, 14 Mar 2012 15:45:52 +0000 (11:45 -0400)]
make sure that the control port's hashed password is not empty

13 years agominor formatting standardizing
Micah Anderson [Wed, 14 Mar 2012 15:45:36 +0000 (11:45 -0400)]
minor formatting standardizing

13 years agoadd tor-geoip package to be installed as its useful for most all installations (...
Micah Anderson [Wed, 14 Mar 2012 15:24:23 +0000 (11:24 -0400)]
add tor-geoip package to be installed as its useful for most all installations (#3854)

13 years agoadd variable $tor_ensure_version which allows you to specify a different installed...
Micah Anderson [Sun, 11 Mar 2012 20:11:54 +0000 (16:11 -0400)]
add variable $tor_ensure_version which allows you to specify a different installed version