Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stepanstipl/puppet-openfire
Puppet module for installing and configuring Openfire jabber server
https://github.com/stepanstipl/puppet-openfire
Last synced: about 1 month ago
JSON representation
Puppet module for installing and configuring Openfire jabber server
- Host: GitHub
- URL: https://github.com/stepanstipl/puppet-openfire
- Owner: stepanstipl
- License: mit
- Created: 2014-04-22T12:04:44.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-05-14T09:32:10.000Z (over 10 years ago)
- Last Synced: 2024-10-12T12:39:26.383Z (2 months ago)
- Language: Puppet
- Size: 220 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
puppet-openfire
===============Puppet module for installing and configuring Openfire jabber server
Simplest usage:
`include openfire`See manifests/params.pp for more configuration details.
Requirements
------------
- Tested on RHEL/CentOS 6Setup
-----
This module will install openfire, using system package manager. It's tested and expected to work with RHEL/CentOS 6, yum package manger and official RPM package from http://www.igniterealtime.org/. Module will also try to install javam, if '$install_java' is enabled (default is disabled, as there's java bundled within the RPM package) and also glibc, as it's needed by the bundled java version. See below list of parameters for available options.Usage
-----
- Make sure you have puppetlabs stdlib module installed.
- Make sure you have puppetlabs java module installed, if you set `$install_java` to true.
- Make sure there's openfire package (RPM) present in your system repositories
*Currently the module does not support direct download of packages, please open a ticket if you woule be interested in that feature.*
- Simple use is just by including the class by `include openfire` in your manifest, for more options use parametrised class and see available options below.
```
class {'::openfire':
java_ks => '/usr/local/keys/openfire/keystore',
java_xms => '128m',
java_xmx => '1024m',
version => '3.9.1-1'
}
```Reference
---------
### Class: openfireMain class for openfire module
Simplest usage is just by `include openfire`#### Parameters
##### service_manage
- default: true
- options: true, falseIf set to true (default), module will ensure openfire service is enabled
and running.##### service_enable
- default: true
- options: true, false, manualWhat the module passes to openfire service:enable.
##### service_ensure
- default: present
- options: present, false (running, stopped)What the module passes to openfire service:ensure.
##### install_glibc
- default: true
- options: true, falseWhether the module should try to install glibc, which is needed by
bundled java jre version.##### install_java
- default: true
- options: true, falseWhether the module should try to install java, if enabled, Puppetlab's
java module will have to be installed. Defaults to false, as jre bundled
within RPM package is prefered.##### java_xms
- default: 256m
- options: [g|G|m|M|k|K]Size of initial memory allocation passed to JVM.
##### java_xmx
- default: 512m
- options: [g|G|m|M|k|K]Size of maximum memory allocation passed to JVM.
##### java_opts
- default:
- options: StringAny additional options that should be passed to JVM. These will simply
be appended to command line, so for typical java opt they have to include
`-X` such as `-XlargePages`.##### java_home
- default:
- options: absolute path in the filesystemJava home directory passed to init script, by default it's empty and
init script tries to use one bundled with RPM package which is located in
`/opt/openfire/jre`.##### java_keystore
- default:
- options: absolute path in the filesystemPath to the file containing java keystore, in case you want to use custom
certificates. Default to ``.##### package_name
- default: openfire
- options: StringName of the package to be installed.
##### package_version
- default: latest
- options: latest, StringVersion of the package to be installed, defaults to 'latest'.
##### ensure
- default: present
- options: present, absentIf set to absent, module will try to cleanup after itself and removed
any resources installed.
created on the system.##### home
- default: /opt/openfire
- options: absolute path in the filesystemValue put into openfire sysconfig, pointing install location.
##### user
- default: daemon
- options: StringUser that the JVM should be run as.
##### group
- default: daemon
- options: StringGroup that the JVM should be run as.
##### pidfile
- default: /var/run/openfire.pid
- options: absolute path in the filesystemPath where the pid file should be located.
##### logdir
- default: /var/log/openfire
- options: absolute path in the filesystemPath to directory where should the log files be stored.
#### Examples:
Simplest usage is just by including the class itself:
`include openfire`.For more oprions use parametrised class like:
```
class {'::openfire':
java_ks => '/usr/local/keys/openfire/keystore',
java_xms => '128m',
java_xmx => '1024m',
version => '3.9.1-1'
}
```Limitations
-----------
- This module has never been tested, and is not really expected to work, on other systems than RHEL/CentOS 6 family
- This module expects openfire package to be present in system pcakage management tool (yum)FAQ, Support & Development
--------------------------
Feek free to fork the module and extend it in any way, any pull requests will be welcome. Also let me know in case you're interested in some functionality.
Please use Github's Issues for any communication & bug reporting.TODO
----
- better passing of args to java class
- proper modulefile & release to Puppet Forge
- tests