-$LOAD_PATH.push("#{File.dirname(__FILE__)}/../_lib")
-#${chef-repo}/_lib/grid.rb
+#
+# 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.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+$LOAD_PATH.push("#{File.dirname(__FILE__)}/_lib")
+#${chef-repo}/roles/_lib/grid.rb
require 'grid'
name 'grid-gpm'
run_list(
'role[node_commons]',
'role[ganglia-gmond]',
+ 'role[berkshelf-api-server]',
)
#env_run_lists "prod" => ["recipe[apache2]"], "staging" => ["recipe[apache2::staging]"], "_default" => []
)
override_attributes(
+ 'berkshelf_api' => {
+ 'host' => "gpm00.#{Grid::DOMAIN}",
+ 'proxy_port' => 6280,
+ 'app_host' => '127.0.0.1',
+ 'port' => 26200,
+ 'proxy' => {
+ 'ssl' => true,
+ 'ssl_certificate' => '/etc/pki/tls/certs/01gpm00_server.crt',
+ 'ssl_certificate_key' => '/etc/pki/tls/private/01gpm00_server.key',
+ },
+ 'config' => {
+ 'build_interval' => 180.0,
+ 'endpoints' => [
+ {
+ 'type' => 'chef_server',
+ 'options' => {
+ 'url' => 'https://api.opscode.com/organizations/gridverse', # hosted chef
+ 'client_key' => '/etc/berkshelf/api-server/gridverse-berkshelf.pem',
+ 'client_name' => 'berkshelf',
+ 'ssl_verify' => true
+ }
+ },
+ {
+ 'type' => 'chef_server',
+ 'options' => {
+ #'url' => 'https://gpm00.grid.example.com/organizations/grid', # chef12
+ 'url' => 'https://gpm00.grid.example.com', # chef11
+ 'client_key' => '/etc/berkshelf/api-server/grid-berkshelf.pem',
+ 'client_name' => 'berkshelf',
+ 'ssl_verify' => false
+ }
+ },
+ ],
+ },
+ },
'ganglia' => {
# gmond
'cluster' => {