OSDN Git Service

add .envrc
[metasearch/grid-chef-repo.git] / roles / hbase-pleiades-with-security.rb
1 name 'hbase-pleiades-with-security'
2 description 'Pleiades HBase cluster node with security'
3
4 run_list(
5   'role[node_commons]',
6   'role[nameservice-client-grid]',
7   'role[hbase]',
8   'role[jce_policy]'
9 )
10
11 #env_run_lists "prod" => ["recipe[apache2]"], "staging" => ["recipe[apache2::staging]"], "_default" => []
12
13 grid_etc_root = '/grid/etc'
14 grid_vol_root = '/grid/vol'
15 cluster_name = 'pleiades'
16 realm = 'GRID.EXAMPLE.COM'
17 hbase_attributes = {
18   'with_security' => true,
19   # hbase-env.sh
20   
21   # hbase-site.xml
22   'this.cluster.name' => cluster_name, 
23   'this.domain' => 'grid.example.com',
24   'this.realm' => realm,
25   'this.keytab.dir' => "#{grid_etc_root}/keytabs/#{cluster_name}",
26   'this.namenode.fqdn' => '${this.cluster.name}-nn.${this.domain}',
27   'hbase.zookeeper.quorum' \
28     => 'zk00.grid.example.com,zk01.grid.example.com,zk02.grid.example.com',
29   'hbase.master.kerberos.principal' => 'hbase/_HOST@${this.realm}',
30   'jaas_master_kerberos_principal' => "hbase/${this.fqdn}@#{realm}",
31   'jaas_regionserver_kerberos_principal' => "hbase/${this.fqdn}@#{realm}"
32 }
33
34 default_attributes(
35   'grid' => {
36     'etc_root' => grid_etc_root,
37     'vol_root' => grid_vol_root,
38     'max_vol_nums' => '4'
39   },
40   'hbase' => hbase_attributes
41 )
42
43 #override_attributes "apache2" => { "max_children" => "50" }