aboutsummaryrefslogtreecommitdiff
path: root/manifests/jabber.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/jabber.pp')
-rw-r--r--manifests/jabber.pp16
1 files changed, 14 insertions, 2 deletions
diff --git a/manifests/jabber.pp b/manifests/jabber.pp
index a421526..6231b5f 100644
--- a/manifests/jabber.pp
+++ b/manifests/jabber.pp
@@ -2,16 +2,28 @@ 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'],
}
- # TODO: remove in the future
- ssl::cert { "cert":
+ # Remove in the future
+ ssl::cert { "cert-concat":
+ owner => 'ejabberd',
+ group => 'ejabberd',
ensure => absent,
+ notify => Service['ejabberd'],
}
}