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

  concat::fragment { "99.snippet.${name}":
    ensure  => $ensure,
    content => $content,
    owner   => 'debian-tor',
    group   => 'debian-tor',
    mode    => '0644',
    order   => 99,
    target  => $tor::daemon::config_file,
  }
}