OSDN Git Service

add ganglia::web recipe.
[metasearch/grid-chef-repo.git] / roles / test-on-localhost.rb
1 name 'test-on-localhost'
2 description 'Testing on local machine'
3
4 run_list(
5   'role[mocker]',
6   'role[ganglia-gmond-ucast-localhost]',
7   'role[ganglia-gmetad-localhost]',
8   'role[ganglia-web]',
9   'role[hadoop-pseudo-distributed-with-security]',
10   'role[zookeeper-pseudo-replicated-with-security]',
11   'role[hbase-pseudo-distributed-with-security]',
12   'role[pig]'
13 )
14
15 #env_run_lists "prod" => ["recipe[apache2]"], "staging" => ["recipe[apache2::staging]"], "_default" => []
16
17 default_attributes(
18   'krb5' => {
19     'libdefaults' => {
20       'default_realm' => 'LOCALDOMAIN',
21       # strong crypto
22       'default_tgs_enctypes' \
23         => 'aes256-cts-hmac-sha1-96 aes128-cts-hmac-sha1-96 arcfour-hmac-md5',
24       'default_tkt_enctypes' \
25         => 'aes256-cts-hmac-sha1-96 aes128-cts-hmac-sha1-96 arcfour-hmac-md5',
26       'permitted_enctypes' \
27         => 'aes256-cts-hmac-sha1-96 aes128-cts-hmac-sha1-96 arcfour-hmac-md5'
28       # or weak crypto for 1.0.x KSSL
29       #'allow_weak_crypto' => 'true',
30       #'default_tgs_enctypes' \
31       #  => 'aes256-cts-hmac-sha1-96 aes128-cts-hmac-sha1-96 arcfour-hmac-md5 des-cbc-crc des-cbc-md5',
32       #'default_tkt_enctypes' \
33       #  => 'aes256-cts-hmac-sha1-96 aes128-cts-hmac-sha1-96 arcfour-hmac-md5 des-cbc-crc des-cbc-md5',
34       #'permitted_enctypes' \
35       #  => 'aes256-cts-hmac-sha1-96 aes128-cts-hmac-sha1-96 arcfour-hmac-md5 des-cbc-crc des-cbc-md5'
36     }
37   },
38   'zookeeper' => {
39     'version' => '3.4.5'
40   },
41   'hadoop' => {
42     #'version' => '1.1.2',
43     'version' => '1.0.4',
44     'metrics2' => {
45       'namenode.sink.ganglia.servers' => 'localhost:8649',
46       'datanode.sink.ganglia.servers' => 'localhost:8649',
47       'jobtracker.sink.ganglia.servers' => 'localhost:8649',
48       'tasktracker.sink.ganglia.servers' => 'localhost:8649',
49       'maptask.sink.ganglia.servers' => 'localhost:8649',
50       'reducetask.sink.ganglia.servers' => 'localhost:8649'
51     },
52     # for 1.0.x only >>
53     'extra_configs' => {
54       'core-site.xml' => {
55         'hadoop.http.authentication.signature.secret' \
56           => '91d365813d6dd1f4ceafff73f90a9a06'
57       }
58     },
59     'krb5_strong_crypto' => {
60       'default_tgs_enctypes' \
61         => 'aes256-cts-hmac-sha1-96 aes128-cts-hmac-sha1-96 arcfour-hmac-md5',
62       'default_tkt_enctypes' \
63         => 'aes256-cts-hmac-sha1-96 aes128-cts-hmac-sha1-96 arcfour-hmac-md5',
64       'permitted_enctypes' \
65         => 'aes256-cts-hmac-sha1-96 aes128-cts-hmac-sha1-96 arcfour-hmac-md5'
66     },
67     'krb5_weak_crypto' => {
68       'default_tgs_enctypes' \
69         => 'des-cbc-crc des-cbc-md5',
70       'default_tkt_enctypes' \
71         => 'aes256-cts-hmac-sha1-96 aes128-cts-hmac-sha1-96 arcfour-hmac-md5 des-cbc-crc des-cbc-md5',
72       'permitted_enctypes' \
73         => 'aes256-cts-hmac-sha1-96 aes128-cts-hmac-sha1-96 arcfour-hmac-md5 des-cbc-crc des-cbc-md5'
74     }
75     # <<
76   },
77   'hbase' => {
78     'version' => '0.94.7'
79   },
80   'pig' => {
81     'version' => '0.11.1'
82     #'version' => '0.11.0'
83   }
84 )
85
86 #override_attributes "apache2" => { "max_children" => "50" }