summaryrefslogtreecommitdiff
path: root/manifests/ssl.pp
blob: 5fbaef47c728130e5af333ae69df4b910ec243ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# ssl setup for mumble
class mumble::ssl inherits mumble {
  file {
    [ '/etc/mumble-server', '/etc/mumble-server/ssl',
      '/etc/mumble-server/ssl/certs',
      '/etc/mumble-server/ssl/private' ]:
    ensure  => directory,
    owner   => root,
    group   => 'mumble-server',
    mode    => '0750',
  }

  ssl::cert { 'cert':
    owner   => 'mumble-server',
    group   => 'mumble-server',
    base    => '/etc/mumble-server/ssl',
    notify  => Service['mumble-server'],
    require => File['/etc/mumble-server/ssl/private'],
  }
}