OSDN Git Service

add .envrc
[metasearch/grid-chef-repo.git] / roles / test-on-localhost.rb
index 9f2471f..ad5cfd2 100644 (file)
@@ -6,19 +6,28 @@ run_list(
   'role[node_commons]',
   'role[chef_utils]',
   'role[nameservice-client]',
-  'role[ganglia-gmond-ucast-localhost]',
-  'role[ganglia-gmetad-localhost]',
-  'role[ganglia-web]',
+  'role[ganglia-all-in-one-localhost]',
   'role[nagios]',
   'role[hadoop-pseudo-distributed-with-security]',
   'role[zookeeper-pseudo-replicated-with-security]',
   'role[hbase-pseudo-distributed-with-security]',
-  'role[pig]'
+  'role[pig]',
+  'role[grid-ops-utils]'
 )
 
-#env_run_lists "prod" => ["recipe[apache2]"], "staging" => ["recipe[apache2::staging]"], "_default" => []
+#env_run_lists()
 
 default_attributes(
+  'grid' => {
+    'gridctl' => {
+      'env' => {
+        #'DOMAIN' => '',
+        #'HADOOP_ARTIFACT_TYPE' => 'tarball',
+        'HADOOP_DISTRIBUTION' => 'apache',
+        #'HADOOP_HOME' => '/grid/usr/hadoop',
+      }
+    }
+  },
   'openldap' => {
     'client' => {
       'URI' => 'ldap://localhost/',
@@ -57,17 +66,6 @@ default_attributes(
       #  => 'aes256-cts-hmac-sha1-96 aes128-cts-hmac-sha1-96 arcfour-hmac-md5 des-cbc-crc des-cbc-md5'
     }
   },
-  'ganglia' => {
-    'trusted_hosts' => ['127.0.0.1'],
-    'web' => {
-      #'Allow' => ['from .grid.example.com'],
-      'AuthType' => 'Kerberos',
-      'mod_auth_kerb' => {
-        'KrbAuthRealms' => 'LOCALDOMAIN',
-        'Krb5Keytab' => '/etc/krb5.keytab'
-      }
-    }
-  },
   'nagios' => {
     'web' => {
       #'Allow' => ['from .grid.example.com'],
@@ -169,8 +167,8 @@ default_attributes(
     # for 1.0.x only >>
     'extra_configs' => {
       'core-site.xml' => {
-        'hadoop.http.authentication.signature.secret' \
-          => '91d365813d6dd1f4ceafff73f90a9a06'
+        #'hadoop.http.authentication.signature.secret' \
+        #  => '91d365813d6dd1f4ceafff73f90a9a06'
       }
     },
     'krb5_strong_crypto' => {
@@ -203,6 +201,14 @@ default_attributes(
 override_attributes(
   'ganglia' => {
     'trusted_hosts' => ['127.0.0.1'],
+    'web' => {
+      #'Allow' => ['from .grid.example.com'],
+      'AuthType' => 'Kerberos',
+      'mod_auth_kerb' => {
+        'KrbAuthRealms' => 'LOCALDOMAIN',
+        'Krb5Keytab' => '/etc/krb5.keytab'
+      }
+    }
 =begin
     # for TEST
     'gmond_conf_type' => 'automatic',