aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-05-13 01:10:14 -0300
committerSilvio Rhatto <rhatto@riseup.net>2012-05-13 01:10:14 -0300
commit41da4d802195a009995b4c49a4e8d5fb3ef70cce (patch)
tree09184f85d962a0ba975ff031f86effd4b7a146d4
parentb16f4c2c4b96aeec30735853e1fdeba681cbe38e (diff)
downloadpuppet-nodo-41da4d802195a009995b4c49a4e8d5fb3ef70cce.tar.gz
puppet-nodo-41da4d802195a009995b4c49a4e8d5fb3ef70cce.tar.bz2
Changing ejabberd ssl cert location
-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'],
}
}