|
1 | 1 | # == Class: zookeeper |
2 | 2 | # |
3 | | -# Full description of class zookeeper here. |
| 3 | +# Defines a default cluster member for zookeeper and configures it |
4 | 4 | # |
5 | 5 | # === Parameters |
6 | 6 | # |
7 | | -# Document parameters here. |
8 | | -# |
9 | | -# [*sample_parameter*] |
10 | | -# Explanation of what this parameter affects and what it defaults to. |
11 | | -# e.g. "Specify one or more upstream ntp servers as an array." |
12 | | -# |
13 | | -# === Variables |
14 | | -# |
15 | | -# Here you should define a list of variables that this module would require. |
16 | | -# |
17 | | -# [*sample_variable*] |
18 | | -# Explanation of how this variable affects the funtion of this class and if it |
19 | | -# has a default. e.g. "The parameter enc_ntp_servers must be set by the |
20 | | -# External Node Classifier as a comma separated list of hostnames." (Note, |
21 | | -# global variables should not be used in preference to class parameters as of |
22 | | -# Puppet 2.6.) |
| 7 | +# [*version*] |
| 8 | +# The version of zookeeper to install. |
| 9 | +# [*homedir*] |
| 10 | +# Defines where the zookeeper 'home' folder will be. Default param used. |
| 11 | +# [*datadir*] |
| 12 | +# Where to store the zookeeper data files. Can be different from home. |
| 13 | +# [*logdir*] |
| 14 | +# Storage location for all of the zookeeper logs. Generally should be the |
| 15 | +# home-folder. |
| 16 | +# [*clientport*] |
| 17 | +# The port used for communications with the zookeeper cluster by client |
| 18 | +# scripts or programs. |
| 19 | +# [*server_name*] |
| 20 | +# The actual name to use to identify the particular server-node. |
| 21 | +# [*server_group*] |
| 22 | +# Which zookeeper group this configuration is a member of. |
23 | 23 | # |
24 | 24 | # === Examples |
25 | 25 | # |
26 | | -# class { zookeeper: |
27 | | -# servers => [ 'pool.ntp.org', 'ntp.local.company.com' ] |
| 26 | +# class { 'zookeeper': |
| 27 | +# version => '0.0.1', |
| 28 | +# server_name => $::fqdn, |
| 29 | +# server_group => 'default', |
28 | 30 | # } |
29 | 31 | # |
30 | 32 | # === Authors |
31 | 33 | # |
32 | | -# Author Name <author@domain.com> |
| 34 | +# Justice London <jlondon@syrussystems.com> |
33 | 35 | # |
34 | 36 | # === Copyright |
35 | 37 | # |
36 | | -# Copyright 2013 Your name here, unless otherwise noted. |
| 38 | +# Copyright 2013 Justice London, unless otherwise noted. |
37 | 39 | # |
38 | 40 | class zookeeper ( |
39 | 41 | $version = $zookeeper::params::zookeeper_version, |
|
47 | 49 | { |
48 | 50 |
|
49 | 51 | #Add node to cluster with stored config |
50 | | - @@zookeeper::servernode { "${server_name}": |
| 52 | + @@zookeeper::servernode { $server_name: |
51 | 53 | group => $server_group, |
52 | 54 | homedir => $homedir, |
53 | 55 | } |
|
0 commit comments