aboutsummaryrefslogtreecommitdiff
path: root/manifests/jabber.pp
blob: 6231b5f899fd41eae9e0ffe6716e87d64dd2e27d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
class nodo::jabber inherits nodo::vserver {
  include ssl
  include ejabberd

  file { [ "/etc/ejabberd/ssl", "/etc/ejabberd/ssl/certs", "/etc/ejabberd/ssl/private" ]:
    ensure  => directory,
    owner   => "root",
    group   => "ejabberd",
    mode    => 0750,
    require => Service['ejabberd'],
  }

  # We use a concatenated cert file
  # http://site4fast.blogspot.com.br/2011/10/ejabberd-ssl-how-to.html
  ssl::cert { "cert-concat":
    owner  => 'ejabberd',
    group  => 'ejabberd',
    base   => '/etc/ejabberd/ssl',
    notify => Service['ejabberd'],
  }

  # Remove in the future
  ssl::cert { "cert-concat":
    owner  => 'ejabberd',
    group  => 'ejabberd',
    ensure => absent,
    notify => Service['ejabberd'],
  }
}