aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2012-08-29 11:49:11 +0200
committerintrigeri <intrigeri@boum.org>2012-08-29 11:49:34 +0200
commita7c8b004e1239b2bef366cbd33a0596b20971ff9 (patch)
treeb11f5b2cf3cab875ef6e3dd478f4b13f9513527d /manifests
parent817a37f02ec443603cbfe7e2cc5c55e07a2a471c (diff)
downloadpuppet-tor-a7c8b004e1239b2bef366cbd33a0596b20971ff9.tar.gz
puppet-tor-a7c8b004e1239b2bef366cbd33a0596b20971ff9.tar.bz2
Add support for including arbitrary snippet into torrc.
Diffstat (limited to 'manifests')
-rw-r--r--manifests/daemon.pp13
1 files changed, 13 insertions, 0 deletions
diff --git a/manifests/daemon.pp b/manifests/daemon.pp
index e6d0c2e..07066c6 100644
--- a/manifests/daemon.pp
+++ b/manifests/daemon.pp
@@ -253,4 +253,17 @@ class tor::daemon inherits tor {
ensure => $ensure,
}
}
+
+ # Arbitrary torrc snippet definition
+ define snippet( $content = '',
+ $ensure = present ) {
+
+ concatenated_file_part { "99.snippet.${name}":
+ dir => $tor::daemon::snippet_dir,
+ content => $content,
+ owner => 'debian-tor', group => 'debian-tor', mode => 0644,
+ ensure => $ensure,
+ }
+ }
+
}