Puppet Class: cassandra
- Defined in:
- manifests/init.pp
Summary
This is the main entry point and API for Cassandra module.Overview
Puppet module for Cassandra cluster which enables to install, configure and manage Cassandra nodes. The module consists of the install
class, which is included first, followed by config
and config::topology
classes. Finally, the service
class is included and notification from config
are forwarded to service
.
This class is the main class of this module and the only one which should be included in your node manifests. For documentation of the particular feature, refer to the reference documentation of the other components.
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 |
# File 'manifests/init.pp', line 59
class cassandra (
String $cassandra_package = 'cassandra',
String $cassandra_ensure = 'installed',
String $tools_package = 'cassandra-tools',
String $tools_ensure = $cassandra_ensure,
Boolean $manage_service = true,
Cassandra::Service::Ensure $service_ensure = undef,
Cassandra::Service::Enable $service_enable = false,
String $service_name = 'cassandra',
Stdlib::Absolutepath $config_dir = '/etc/cassandra',
Hash $environment = {},
Hash $jvm_option_sets = {},
Array[String] $jvm_options = [],
Struct[{
properties => Optional[Hash],
agents => Optional[Hash],
runtime_options => Optional[Hash],
adv_runtime_options => Optional[Hash],
}] $java = {},
Optional[Hash] $java_gc = undef,
Hash $config = {},
Optional[Hash[Stdlib::Host,Pattern[/^[0-9]+$/]]] $initial_tokens = undef,
Stdlib::Host $node_key = $facts['networking']['fqdn'],
Stdlib::Absolutepath $cassandra_home = '/var/lib/cassandra',
Stdlib::Absolutepath $envfile = "${cassandra_home}/.cassandra.in.sh",
Optional[Cassandra::Rackdc] $rackdc = undef,
Optional[Hash] $topology = undef,
Optional[Pattern[/[a-zA-Z0-9.]:[a-zA-Z0-9.-]/]] $topology_default = undef,
) {
contain cassandra::install
contain cassandra::config
contain cassandra::config::topology
contain cassandra::service
Class['cassandra::install']
-> Class['cassandra::config']
~> Class['cassandra::service']
Class['cassandra::install']
-> Class['cassandra::config::topology']
}
|