manages Orcus - Orchestrator to Consul synchronization tool
This module installs and configures the orcus package.
This module requires toml gem, which is used to translate Hash configuration to Orcus TOML format configuration file. To install it you need to execute following command on your puppetmaster server:
sudo puppetserver gem install toml
class { 'orcus':
override_config => {
general => {
listen_address => '127.0.0.1:3008',
log_file => '/var/log/orcus/orcus.log',
log_level => 'info',
sync_interval => '10m',
ssl_skip_verify => true,
http_timeout => '5s',
threads => 5,
cache_ttl => '24h'
},
orchestrator => {
url => 'http://localhost:3000',
force_sync_delay => '5s',
submit_masters_to_consul => true,
},
consul => {
address => '127.0.0.1:8500',
acl_token => '',
kv_prefix => 'db/mysql',
lock_ttl => '1m',
retry_interval => '5s',
}
},
version => '0.3',
}
Classes
Public Classes
orcus
: Installs and configures orcus.
Private Classes
orcus::config
: Private class for managing orcus config.orcus::install
: Private class for installing orcus.orcus::params
: Private class for setting default orcus parameters.orcus::service
: Private class for managing orcus service.
Functions
orcus_config
: Convert hash to Orcus TOML config.
Installs and configures orcus.
class { 'orcus':
override_config => {
general => {
listen_address => '127.0.0.1:3008',
}
}
}
The following parameters are available in the orcus
class.
Data type: String
Package containing orcus. Defaults to 'orcus'.
Default value: $orcus::params::package_name
Data type: String
Version of orcus. Defaults to 'latest'.
Default value: $orcus::params::version
Data type: Boolean
Specifies whether orcus service should be managed. Defaults to 'true'.
Default value: $orcus::params::manage_service
Data type: String
User for orcus. Defaults to 'orcus'.
Default value: $orcus::params::user
Data type: String
User for orcus. Defaults to 'orcus'.
Default value: $orcus::params::group
Data type: Array[String]
Array of install options for managed package resources. Appropriate options are passed to package manager.
Default value: $orcus::params::package_install_options
Data type: Hash
Hash of override configuration options for orcus
Default value: {}
Type: Ruby 3.x API
Convert hash to Orcus TOML config.
For a list of supported operating systems, see metadata.json
Please feel free to fork, modify, create issues, bug reports and pull requests.