From: intrigeri Date: Wed, 29 Aug 2012 09:49:11 +0000 (+0200) Subject: Add support for including arbitrary snippet into torrc. X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=a7c8b004e1239b2bef366cbd33a0596b20971ff9;p=puppet-tor.git Add support for including arbitrary snippet into torrc. --- 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, + } + } + }