2 # Copyright 2013,2014 whitestar
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
17 $LOAD_PATH.push("#{File.dirname(__FILE__)}/_lib")
18 #${chef-repo}/roles/_lib/grid.rb
22 description 'Grid distribution node'
27 'role[apt-cacher-ng]',
35 'role[apache-mirror]',
36 #'role[ganglia-gmond]',
41 this_subcluster = Grid::CLUSTERS[:base][:admins]
42 mcast_addr = this_subcluster[:mcast_addr]
46 udp_send_channels4ucast = []
47 this_subcluster[:nodes].first(2).each {|host|
48 udp_send_channels4ucast.push(
51 'host' => "#{host}.#{Grid::DOMAIN}",
65 'cron_period' => '5 23 * * *'
71 '#deb http://cdn.debian.net/debian wheezy main contrib non-free',
72 '#deb http://cdn.debian.net/debian wheezy-updates main contrib',
73 '#deb http://cdn.debian.net/debian wheezy-backports main contrib non-free',
74 '#deb http://security.debian.org/ wheezy/updates main contrib non-free',
76 'deb http://ftp.grid.example.com/debian wheezy main contrib non-free',
77 'deb http://ftp.grid.example.com/debian wheezy-updates main contrib',
78 'deb http://ftp.grid.example.com/debian wheezy-backports main contrib non-free',
79 'deb http://ftp.grid.example.com:3142/security.debian.org/ wheezy/updates main contrib non-free'
83 'cron_period' => '5 22 * * *',
110 'version' => '4.4.0',
112 'with_gplextras' => true,
114 'only_for_mirroring' => true,
116 'platform' => 'centos',
117 'platform_version' => '6',
122 'cron_period' => '5 20 * * *',
125 'cloudera-gplextras4',
128 'url_alias_with_authority_part' => true
132 'version' => '1.3.2',
133 #'version' => '1.2.3.1',
136 'only_for_mirroring' => true,
138 'platform' => 'centos',
139 'platform_version' => '6'
143 'cron_period' => '35 20 * * *',
147 'HDP-UTILS-1.1.0.16',
149 'Updates-ambari-1.2.5.17'
151 'url_alias_with_authority_part' => true
157 'mirrorlist_ctx' => '', # default: inactive
158 #'mirrorlist_ctx' => 'http://mirrorlist.centos.org',
159 'baseurl_ctx' => '', # default: inactive
160 #'baseurl_ctx' => 'http://mirror.centos.org/centos',
161 #'baseurl_ctx' => 'http://ftp.grid.example.com/centos',
162 'gpgkey' => 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6'
165 'mirrorlist_ctx' => '', # default: inactive
166 #'mirrorlist_ctx' => 'http://mirrors.fedoraproject.org',
167 'baseurl_ctx' => '', # default: inactive
168 #'baseurl_ctx' => 'http://ftp.grid.example.com/fedora/epel',
169 'gpgkey' => 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6'
173 'cron_period' => '5 21 * * *',
177 'url' => 'rsync://ftp.riken.jp/centos/',
179 'rsync_opts' => '-avSH --stats --partial --delete --safe-links --exclude /[1-4]*/ --exclude /5.[0-8]/ --exclude /6.[0-3]/ --exclude local* --exclude isos --exclude ppc*',
181 #'rsync_opts' => '-avSH --stats --partial --delete --safe-links --exclude /[1-5]*/ --exclude /6.[0-3]/ --exclude local* --exclude isos --exclude ppc*',
182 'http_alias' => '/centos'
186 'url' => 'rsync://ftp.riken.jp/fedora/epel/',
188 'rsync_opts' => '-avSH --stats --partial --delete --safe-links --exclude /[1-4]*/ --exclude local* --exclude isos --exclude ppc*',
190 #'rsync_opts' => '-avSH --stats --partial --delete --safe-links --exclude /[1-5]*/ --exclude local* --exclude isos --exclude ppc*',
191 'http_alias' => '/fedora/epel'
199 'name' => this_subcluster[:alias],
200 'owner' => Grid::DOMAIN
204 'udp_send_channels' => [
206 'mcast_join' => mcast_addr,
212 'udp_recv_channels' => [
214 'mcast_join' => mcast_addr,
221 'udp_send_channels' => udp_send_channels4ucast,
222 'udp_recv_channels' => [