diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2012-05-13 01:10:14 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2012-05-13 01:10:14 -0300 |
commit | 41da4d802195a009995b4c49a4e8d5fb3ef70cce (patch) | |
tree | 09184f85d962a0ba975ff031f86effd4b7a146d4 | |
parent | b16f4c2c4b96aeec30735853e1fdeba681cbe38e (diff) | |
download | puppet-nodo-41da4d802195a009995b4c49a4e8d5fb3ef70cce.tar.gz puppet-nodo-41da4d802195a009995b4c49a4e8d5fb3ef70cce.tar.bz2 |
Changing ejabberd ssl cert location
-rw-r--r-- | manifests/jabber.pp | 16 |
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'], } } |