diff options
-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, + } + } + } |