--- /dev/null
+~FC001
+~FC019
--- /dev/null
+AllCops:
+ Exclude:
+ - vendor/**/*
+
+AlignParameters:
+ Enabled: false
+LineLength:
+ Enabled: false
+Lint/UnusedBlockArgument:
+ Enabled: false
+Metrics/AbcSize:
+ Enabled: false
+Style/BlockComments:
+ Enabled: false
+Style/BlockDelimiters:
+ Enabled: false
+Style/ExtraSpacing:
+ Enabled: false
+Style/FileName:
+ Enabled: false
+Style/LeadingCommentSpace:
+ Enabled: false
+Style/RescueModifier:
+ Enabled: false
+Style/SpaceBeforeFirstArg:
+ Enabled: false
+Style/TrailingCommaInLiteral:
+ EnforcedStyleForMultiline: comma
+Style/WordArray:
+ Enabled: false
+
+#Style/AccessorMethodName:
+# Enabled: false
+#Style/MethodLength:
+# Max: 30
+#Style/ModuleLength:
+# Max: 150
--- /dev/null
+#
+# Copyright 2017 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.
+#
+
+#grid_chef_repo = 'git://git.osdn.jp/gitroot/metasearch/grid-chef-repo.git'
+
+# for ver. 3.x
+#source 'https://berks-api.io.example.com:6280'
+source 'https://supermarket.chef.io'
+
+metadata
# CHANGELOG for grid
+0.1.2
+-----
+- refactoring.
+
0.1.1
-----
- Documentation update.
grid Cookbook
=============
-This cookbook provides some attributes for distributed computing environment and some operarional commands.
+This cookbook provides some attributes for distributed computing environment and some operational commands.
-Requirements
-------------
+## Contents
-Nothing.
+- [Requirements](#requirements)
+- [Attributes](#attributes)
+- [Usage](#usage)
+ - [Recipes](#recipes)
+ - [grid::default](#griddefault)
+ - [grid::ops-utils](#gridops-utils)
+- [License and Authors](#license-and-authors)
-Attributes
-----------
+## Requirements
+
+None.
+
+## Attributes
|Key|Type|Description, example|Default|
|:--|:--|:--|:--|
|`['grid']['gridctl']['env']['ZOOKEEPER_USER']`|String||`'zookeeper'`|
|`['grid']['gridctl']['env']['ZOOKEEPER_PEERS']`|String|e.g. `'zk00 zk01 zk02'`|`'localhost'`|
-Usage
------
+## Usage
+
+### Recipes
+
#### grid::default
- creates fundamental derectories.
-- dsh_ipass
-- gridctl
-License and Authors
--------------------
+## License and Authors
+
- Author:: whitestar at osdn.jp
```text
-Copyright 2013-2016, whitestar
+Copyright 2013-2017, whitestar
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
--- /dev/null
+require 'rspec/core/rake_task'
+require 'rubocop/rake_task'
+require 'foodcritic'
+
+namespace :style do
+ desc 'Run Ruby style checks'
+ RuboCop::RakeTask.new(:ruby)
+
+ desc 'Run Chef style checks'
+ FoodCritic::Rake::LintTask.new(:chef) do |t|
+ t.options = {
+ fail_tags: ['any'],
+ }
+ end
+end
+
+desc 'Run all style checks'
+task style: ['style:chef', 'style:ruby']
+
+desc 'Run ChefSpec examples'
+RSpec::Core::RakeTask.new(:spec)
+
+task default: ['style', 'spec']
# Cookbook Name:: grid
# Attributes:: default
#
-# Copyright 2013, whitestar
+# Copyright 2013-2017, whitestar
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
+# $ knife supermarket share grid "Applications"
name 'grid'
maintainer 'whitestar'
maintainer_email ''
license 'Apache 2.0'
-description 'Installs/Configures grid'
+description 'Grid (distributed computing environment) base cookbook'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '0.1.1'
+source_url 'http://scm.osdn.jp/gitroot/metasearch/grid-chef-repo.git'
+issues_url 'https://osdn.jp/projects/metasearch/ticket'
# Cookbook Name:: grid
# Recipe:: default
#
-# Copyright 2013, whitestar
+# Copyright 2013-2017, whitestar
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
recursive true
end
}
-
# Cookbook Name:: grid
# Recipe:: ops-utils
#
-# Copyright 2013, whitestar
+# Copyright 2013-2017, 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.
#
-%w{
+%w(
dsh_ipass
gridctl
-}.each {|command|
+).each {|command|
template "/usr/local/bin/#{command}" do
source "usr/local/bin/#{command}"
owner 'root'
group 'root'
mode '0644'
end
-
#
-# Copyright 2013 the original author or authors.
+# Copyright 2013-2017 the original author or authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
<% node['grid']['gridctl']['env'].each do |key, value| -%>
export <%= key %>="<%= value %>"
<% end -%>
-
#
# $Id: dsh_ipass 492 2013-05-10 11:16:15Z whitestar $
#
-# Copyright 2012-2013 the original author or authors.
+# Copyright 2012-2017 the original author or authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
#
# $Id: gridctl 527 2013-05-16 10:49:40Z whitestar $
#
-# Copyright 2013 the original author or authors.
+# Copyright 2013-2017 the original author or authors.
#
# 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.
#
-
PATH=.:/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin:`dirname $0`