Puppet Class: cassandra::reaper

Defined in:
manifests/reaper.pp

Summary

Manage a cassandra-reaper instance

Overview

This class is installing and managing an instance of cassandra-repear.

Examples:

include cassandra::reaper

Parameters:

  • package_ensure (String) (defaults to: 'latest')

    package state to be ensured

  • template (Optional[String]) (defaults to: undef)

    select the configuration template to which the settings are going to be merged

  • settings (Hash) (defaults to: {})

    hash of cassandra-reaper settings to be merged

  • configdir (Stdlib::Absolutepath) (defaults to: '/etc/cassandra-reaper')

    directory where to place the configuration file

  • templatedir (Stdlib::Absolutepath) (defaults to: "${configdir}/configs")

    directory containing the template configurations

  • service_ensure (Cassandra::Service::Ensure) (defaults to: 'running')

    serivce state to be ensured

  • service_enable (Cassandra::Service::Enable) (defaults to: true)

    whether to enable or disable the service



29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# File 'manifests/reaper.pp', line 29

class cassandra::reaper (
  # install params
  String                     $package_ensure = 'latest',
  # config params
  Optional[String]           $template = undef,
  Hash                       $settings = {},
  Stdlib::Absolutepath       $configdir = '/etc/cassandra-reaper',
  Stdlib::Absolutepath       $templatedir = "${configdir}/configs",
  # service params
  Cassandra::Service::Ensure $service_ensure = 'running',
  Cassandra::Service::Enable $service_enable = true,
) {
  contain cassandra::reaper::install
  contain cassandra::reaper::config
  contain cassandra::reaper::service

  Class['cassandra::reaper::install']
  -> Class['cassandra::reaper::config']
  ~> Class['cassandra::reaper::service']
}