Puppet Class: hbase::common::config

Defined in:
manifests/common/config.pp

Overview

Class hbase::common::config

Configuration needed for all HBase components.



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'manifests/common/config.pp', line 5

class hbase::common::config {
  $realm = $::hbase::realm
  $backup_hostnames = $::hbase::backup_hostnames

  file { "${hbase::confdir}/hbase-site.xml":
    owner   => 'root',
    group   => 'root',
    alias   => 'hbase-site.xml',
    content => template('hbase/hbase-site.xml.erb'),
  }

  if $backup_hostnames {
    file { "${hbase::confdir}/backup-masters":
      owner   => 'root',
      group   => 'root',
      alias   => 'backup-masters',
      content => template('hbase/backup-masters.erb'),
    }
  } else {
    file { "${hbase::confdir}/backup-masters":
      ensure => absent,
      alias  => 'backup-masters',
    }
  }

  file { "${hbase::confdir}/regionservers":
    owner   => 'root',
    group   => 'root',
    alias   => 'regionservers',
    content => template('hbase/regionservers.erb'),
  }

  file { "${hbase::confdir}/hbase-env.sh":
    owner   => 'root',
    group   => 'root',
    content => template('hbase/hbase-env.sh.erb'),
  }

  if $hbase::realm and $hbase::realm != '' {
    file { "${hbase::confdir}/zk-jaas.conf":
      owner   => 'root',
      group   => 'root',
      content => template('hbase/zk-jaas.conf.erb'),
    }
  }
}