OSDN Git Service

add .envrc
[metasearch/grid-chef-repo.git] / roles / zookeeper-colo00.rb
1 name 'zookeeper-colo00'
2 description 'ZooKeeper colo00 node'
3
4 run_list(
5   'role[node_commons]',
6   'role[zookeeper]'
7 )
8
9 #env_run_lists "prod" => ["recipe[apache2]"], "staging" => ["recipe[apache2::staging]"], "_default" => []
10
11 ensemble = {
12   '0' => {
13     :hostname => 'zk00.grid.example.com',
14     :leader_port => '2888',
15     :election_port => '3888'
16   },
17   '1' => {
18     :hostname => 'zk01.grid.example.com',
19     :leader_port => '2888',
20     :election_port => '3888'
21   },
22   '2' => {
23     :hostname => 'zk02.grid.example.com',
24     :leader_port => '2888',
25     :election_port => '3888'
26   }
27 }
28
29 default_attributes(
30   'zookeeper' => {
31     'run_mode' => 'full-replicated',
32     'colo_name' => 'colo00',
33     'dataLogDir' => '/grid/vol/1/var/lib/zookeeper',
34     'ensemble' => ensemble
35   }
36 )
37
38 #override_attributes "apache2" => { "max_children" => "50" }