From 41da4d802195a009995b4c49a4e8d5fb3ef70cce Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 13 May 2012 01:10:14 -0300 Subject: Changing ejabberd ssl cert location --- manifests/jabber.pp | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'manifests') 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'], } } -- cgit v1.2.3