#
-# 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.
# 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'
'role[apt-source]',
'role[yum-mirror]',
#'role[yum-repos]',
+ 'role[yum-cdh]',
'role[cdh-mirror]',
'role[yum-hdp]',
'role[hdp-mirror]',
'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',
'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 * * *',