diff options
author | intrigeri <intrigeri@boum.org> | 2012-08-29 11:49:11 +0200 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2012-08-29 11:49:34 +0200 |
commit | a7c8b004e1239b2bef366cbd33a0596b20971ff9 (patch) | |
tree | b11f5b2cf3cab875ef6e3dd478f4b13f9513527d | |
parent | 817a37f02ec443603cbfe7e2cc5c55e07a2a471c (diff) | |
download | puppet-tor-a7c8b004e1239b2bef366cbd33a0596b20971ff9.tar.gz puppet-tor-a7c8b004e1239b2bef366cbd33a0596b20971ff9.tar.bz2 |
Add support for including arbitrary snippet into torrc.
-rw-r--r-- | manifests/daemon.pp | 13 |
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, + } + } + } |