Version information
This version is compatible with:
- Puppet Enterprise 2018.1.x, 2017.3.x, 2017.2.x, 2017.1.x, 2016.5.x, 2016.4.x
- Puppet >=4.0.0 <6.0.0
- , , , , ,
Start using this module
Add this module to your Puppetfile:
mod 'encore-cerebro', '0.3.0'
Learn more about managing modules with a PuppetfileDocumentation
Cerebro Puppet Module
Table of Contents
- Description
- Setup - The basics of getting started with cerebro
- Usage - Configuration options and additional functionality
- Reference - An under-the-hood peek at what the module is doing and how
- Limitations - OS compatibility, etc.
- Development - Guide for contributing to the module
Description
Puppet module for managing and configuring Cerebro.
Setup
Beginning with cerebro
include cerebro
Usage
class { 'cerebro':
version => '0.8.1',
}
Reference
See REFERENCE.md. This module has been documented with puppet-strings.
Limitations
This module has been tested on:
- CentOS 7
Development
Bug reports and pull requests are welcome on GitHub at https://github.com/EncoreTechnologies/puppet-cerebro.
To regenerate the REFERENCE.MD file, please run the rake task as follows.
% bundle exec rake strings:generate\[',,,,false,true']
Reference
Table of Contents
Classes
Public Classes
cerebro
: Installs and configures Cerebro
Private Classes
cerebro::config
: Configures Cerebrocerebro::install
: Installs Cerebrocerebro::params
:cerebro::service
: Manages Cerebro servicecerebro::user
: Creates the cerebro user
Classes
cerebro
Installs and configures Cerebro
- See also https://github.com/lmenezes/cerebro
Examples
Basic usage
include cerebro
Installing a specific version
class { 'cerebro':
version => '0.8.1',
}
Parameters
The following parameters are available in the cerebro
class.
version
Data type: String[1]
Defines the Cerebro version.
Default value: $cerebro::params::version
service_ensure
Data type: Stdlib::Ensure::Service
Determines whether the cerebro service should be running.
Default value: $cerebro::params::service_ensure
service_enable
Data type: Boolean
Determines whether the cerebro service should be enabled when the system is booted.
Default value: $cerebro::params::service_enable
secret
Data type: String
Specifies the secret string used to sign session cookies etc.
Default value: $cerebro::params::secret
hosts
Data type: Array[Struct[{ host => Stdlib::HTTPUrl, name => String[1] }]]
Defines an array of known hosts hashes.
Default value: $cerebro::params::hosts
basepath
Data type: Variant[Pattern[/^\/$/],Stdlib::Unixpath]
Specifies the application base path.
Default value: $cerebro::params::basepath
shell
Data type: Stdlib::Unixpath
Specifies a shell for the cerebro user.
Default value: $cerebro::params::shell
manage_user
Data type: Boolean
Determines whether to creating the user that the cerebro process is executed as.
Default value: $cerebro::params::manage_user
cerebro_user
Data type: String[1]
Specifies the user that cerebro process is executed as.
Default value: $cerebro::params::cerebro_user
package_url
Data type: Optional[String[1]]
Defines a package location for downloading cerebro.
Default value: $cerebro::params::package_url
java_opts
Data type: Array[String[1]]
Defines the JAVA_OPTS
variables.
Default value: $cerebro::params::java_opts
java_home
Data type: Optional[Stdlib::Unixpath]
Defines the JAVA_HOME
path.
Default value: $cerebro::params::java_home
basic_auth_settings
Data type: Optional[Hash]
Defines basic authentication settings.
Default value: $cerebro::params::basic_auth_settings
address
Data type: Optional[Stdlib::IP::Address]
Defines the IP address cerebro should listen on.
Default value: $cerebro::params::address
Dependencies
- puppetlabs/stdlib (>= 4.25.0 < 7.0.0)
- puppet/archive (>= 1.0.0 < 5.0.0)
- puppet/extlib (>= 0.10.4 < 5.0.0)
- camptocamp/systemd (>= 0.4.0 < 3.0.0)
MIT License Copyright (c) 2017 Teppei Yano Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.