From a7c8b004e1239b2bef366cbd33a0596b20971ff9 Mon Sep 17 00:00:00 2001 From: intrigeri Date: Wed, 29 Aug 2012 11:49:11 +0200 Subject: Add support for including arbitrary snippet into torrc. --- manifests/daemon.pp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'manifests') 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, + } + } + } -- cgit v1.2.3