Puppet Class: zookeeperd
- Defined in:
- manifests/init.pp
Summary
Main class of puppet module configuring nodes of an zookeeper ensamble.Overview
zookeeperd
Puppet module to configure the nodes of an zookeeper ensamble.
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
# File 'manifests/init.pp', line 37
class zookeeperd (
Enum['present', 'absent'] $ensure = 'present',
Boolean $manage_packages = true,
Array[String] $package_names = [],
Stdlib::Absolutepath $data_dir = '',
Variant[Integer,String] $user = 'zookeeper',
Variant[Integer,String] $group = 'zookeeper',
Stdlib::Absolutepath $cfg_path = '',
# zoo.cfg
Hash[String, Scalar] $config = {},
# maintenance service
Boolean $maintenance_service = true,
Array[String] $maintenance_schedule = [],
Integer $maintenance_snapretention = 3,
# service management
Boolean $manage_service = true,
String $service_name = 'zookeeper',
Boolean $service_enabled = true,
Boolean $service_running = true,
# cluster configuration parameters
Optional[String] $ensamble = undef,
Hash $nodes = {},
# Parameter having facts default
Integer $myid = $facts['zookeeperd']['myid'],
String $nodename = $facts['networking']['fqdn'],
) {
contain zookeeperd::install
contain zookeeperd::config
contain zookeeperd::service
Class['zookeeperd::install']
-> Class['zookeeperd::config']
~> Class['zookeeperd::service']
}
|