OSDN Git Service

fix service control.
[metasearch/grid-chef-repo.git] / roles / grid-ftp.rb
index 2e9f1e7..ba4840b 100644 (file)
@@ -1,5 +1,5 @@
 #
-# Copyright 2013, whitestar
+# Copyright 2013,2014 whitestar
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
@@ -14,8 +14,8 @@
 # limitations under the License.
 #
 
-$LOAD_PATH.push("#{File.dirname(__FILE__)}/../_lib")
-#${chef-repo}/_lib/grid.rb
+$LOAD_PATH.push("#{File.dirname(__FILE__)}/_lib")
+#${chef-repo}/roles/_lib/grid.rb
 require 'grid'
 
 name 'grid-ftp'
@@ -28,6 +28,7 @@ run_list(
   'role[apt-source]',
   'role[yum-mirror]',
   #'role[yum-repos]',
+  'role[yum-cdh]',
   'role[cdh-mirror]',
   'role[yum-hdp]',
   'role[hdp-mirror]',
@@ -67,10 +68,10 @@ override_attributes(
   'apt_utils' => {
     'source' => {
       'apt_lines' => [
-        #'deb http://cdn.debian.net/debian wheezy main contrib non-free',
-        #'deb http://cdn.debian.net/debian wheezy-updates main contrib',
-        #'deb http://cdn.debian.net/debian wheezy-backports main contrib non-free',
-        #'deb http://security.debian.org/ wheezy/updates main contrib non-free',
+        '#deb http://cdn.debian.net/debian wheezy main contrib non-free',
+        '#deb http://cdn.debian.net/debian wheezy-updates main contrib',
+        '#deb http://cdn.debian.net/debian wheezy-backports main contrib non-free',
+        '#deb http://security.debian.org/ wheezy/updates main contrib non-free',
         # self test
         'deb http://ftp.grid.example.com/debian wheezy main contrib non-free',
         'deb http://ftp.grid.example.com/debian wheezy-updates main contrib',
@@ -108,12 +109,14 @@ override_attributes(
   'cdh' => {
     'version' => '4.4.0',
     'yum_repo' => {
+      'with_gplextras' => true,
       'update' => true,
-      #'only_for_mirroring' => true,
-      #'mirroring' => {
-      #  'platform' => 'centos',
-      #  'platform_version' => '6'
-      #}
+      'only_for_mirroring' => true,
+      'mirroring' => {
+        'platform' => 'centos',
+        'platform_version' => '6',
+        'arch' => 'x86_64'
+      }
     },
     'yum_mirror' => {
       'cron_period' => '5 20   * * *',