From fe1c86b8f938283e9dd8196a8b11a9648f4b49e6 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 12 Apr 2013 17:09:03 -0300 Subject: Major refactor --- manifests/role/jabber.pp | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 manifests/role/jabber.pp (limited to 'manifests/role/jabber.pp') diff --git a/manifests/role/jabber.pp b/manifests/role/jabber.pp new file mode 100644 index 0000000..b510ccd --- /dev/null +++ b/manifests/role/jabber.pp @@ -0,0 +1,36 @@ +class nodo::role::jabber inherits nodo::vserver { + include ssl + include ejabberd + + # We can offer jabber web access in a web node, so + # we leave this out. + # + #include websites::setup + # + #package { 'jwchat': + # ensure => present, + #} + + host { "chat": + ensure => present, + ip => "127.0.0.1", + host_aliases => [ "chat.${domain}" ], + } + + file { [ "/etc/ejabberd/ssl", "/etc/ejabberd/ssl/certs", "/etc/ejabberd/ssl/private" ]: + ensure => directory, + owner => "root", + group => "ejabberd", + mode => 0750, + } + + # 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'], + require => File['/etc/ejabberd/ssl/private'], + } +} -- cgit v1.2.3