Version information
released Jan 21st 2015
This version is compatible with:
Start using this module
Add this module to your Puppetfile:
mod 'forj-openfire', '0.0.3'
Learn more about managing modules with a PuppetfileDocumentation
forj/openfire — version 0.0.3 Jan 21st 2015
OpenFire
This module installs Openfire chat server.
How to use
##Simple config:
include openfire
In this way it will install using all the default values, you can access your new server this way:
- In your browser go to http://server_address:9090
- Login using: admin/changeme
##To create a new chat group:
openfire::room { 'group_id':
room_name => 'group_friendly_name',
description => 'group description',
}
##To create a new user of modify it:
openfire::user { 'user_name':
password => 'user_password',
}
##To create a Group:
openfire::group { 'group_name': }
##To Add a User to an existing group:
openfire::usergroup { 'Openfire:user_name>group_name' :
user => 'user_name',
group => 'group_name',
require => [ Openfire::User['user_name'], Openfire::Group['group_name'] ],
}
##To add a plug-in:
just add it in the main class declaration, the name is the jar file name that is listed in openfire plugin page:
class { '::openfire':
plugins => ['monitoring.jar'],
}
##Prepare your server to use it with hubot:
You can use this example to configure openfire to accept hubot connections.
class { '::openfire':
of_admin_pass => 'secret',
of_config => {
'xmpp.domain' => { value => $::fqdn },
#Disable TLS
'xmpp.client.tls.policy' => { value => 'disabled' },
'xmpp.server.tls.enabled' => { value => 'true' },
'xmpp.server.dialback.enabled' => { value => 'true' },
'xmpp.server.certificate.accept-selfsigned' => { value => 'false' },
#Disable SSL
'xmpp.socket.ssl.active' => { value => 'false' },
},
plugins => ['monitoring.jar'],
}
Parameters
install_java
: installs java jre (default: true)tar_url
: Openfire tar url (default: 'http://www.igniterealtime.org/downloadServlet?filename=openfire/openfire_3_9_3.tar.gz')plugins_base_url
: Openfire's plugins url (default: 'http://www.igniterealtime.org/projects/openfire/plugins')user_home
: Openfire installation path (default: '/opt/openfire')dbhost
: MySQL server (default: 'localhost')dbport
: MySQL server port (default: '3306')dbname
: MySQL Database name to create (default: 'openfiredb')dbuser_name
: MySQL user for the database (default: 'openfire')dbuser_pass
: MySQL user's password (default: 'changeme')of_port
: Openfire port (default: '9090')of_secure_port
: Openfire secure port (default: '9091')of_admin_pass
: Openfire admin password (default: 'changeme')of_config
: Openfire configuration values (Hash) (default: { 'xmpp.domain' => { value => $::fqdn }})plugins
: Openfire plgins to install (default: [])
License
Released under the Apache 2.0 licence
Contact
- Isaias Piña isaias.pina@hp.com
- IRC channel
Known Issues:
- Only tested on Ubuntu
- Only works with mysql
- Specs missing
- Port changing only works in the first run, this is due Openfire changes config files checksum whenever it runs.
Support
Please log tickets and issues at our GitHub repository
Contribute:
Dependencies
- puppetlabs/stdlib (>= 3.1.0)
- puppetlabs/mysql (>= 0.6.1)
- puppetlabs/java (>= 1.2.0)
Copyright 2014 Hewlett-Packard Development Company, L.P. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.