summaryrefslogtreecommitdiff
path: root/manifests/daemon/snippet.pp
blob: 195ed77d1009a96633465876277e8252f49ec418 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Arbitrary torrc snippet definition
define tor::daemon::snippet(
  $ensure  = 'present',
  $content = '',
) {

  if $ensure == 'present' {
    concat::fragment { "99.snippet.${name}":
      content => $content,
      order   => '99',
      target  => $tor::daemon::config_file,
    }
  }
}