Grid環境構築用のChefリポジトリです。
Revisión | 97d334e33cc7227c9bbde05df0f1f253413d9fc5 (tree) |
---|---|
Tiempo | 2016-09-11 18:52:32 |
Autor | whitestar <whitestar@gaea...> |
Commiter | whitestar |
chef_utils-0.7.0
@@ -0,0 +1,2 @@ | ||
1 | +~FC001 | |
2 | +~FC014 |
@@ -0,0 +1,37 @@ | ||
1 | +AllCops: | |
2 | + Exclude: | |
3 | + - vendor/**/* | |
4 | + | |
5 | +AlignParameters: | |
6 | + Enabled: false | |
7 | +LineLength: | |
8 | + Enabled: false | |
9 | +Lint/UnusedBlockArgument: | |
10 | + Enabled: false | |
11 | +Metrics/AbcSize: | |
12 | + Enabled: false | |
13 | +Style/BlockComments: | |
14 | + Enabled: false | |
15 | +Style/BlockDelimiters: | |
16 | + Enabled: false | |
17 | +Style/ExtraSpacing: | |
18 | + Enabled: false | |
19 | +Style/FileName: | |
20 | + Enabled: false | |
21 | +Style/LeadingCommentSpace: | |
22 | + Enabled: false | |
23 | +Style/RescueModifier: | |
24 | + Enabled: false | |
25 | +Style/SpaceBeforeFirstArg: | |
26 | + Enabled: false | |
27 | +Style/TrailingCommaInLiteral: | |
28 | + EnforcedStyleForMultiline: comma | |
29 | +Style/WordArray: | |
30 | + Enabled: false | |
31 | + | |
32 | +#Style/AccessorMethodName: | |
33 | +# Enabled: false | |
34 | +Style/MethodLength: | |
35 | + Max: 20 | |
36 | +#Style/ModuleLength: | |
37 | +# Max: 150 |
@@ -1,13 +1,19 @@ | ||
1 | 1 | CHANGELOG for chef_utils |
2 | 2 | ========================= |
3 | 3 | |
4 | +0.7.0 | |
5 | +----- | |
6 | +- Cleanup for FoodCritic and RuboCop. | |
7 | +- adds chef-gem-packages recipe. | |
8 | +- adds knife-supermarket recipe. | |
9 | + | |
4 | 10 | 0.6.1 |
5 | 11 | ----- |
6 | -- add some attributes to the chef-vault recipe. | |
12 | +- adds some attributes to the chef-vault recipe. | |
7 | 13 | |
8 | 14 | 0.6.0 |
9 | 15 | ----- |
10 | -- add chef-server-configuration recipe. | |
16 | +- adds chef-server-configuration recipe. | |
11 | 17 | |
12 | 18 | 0.1.0 |
13 | 19 | ----- |
@@ -0,0 +1,3 @@ | ||
1 | +source 'https://rubygems.org' | |
2 | + | |
3 | +#gem 'foodcritic' |
@@ -3,50 +3,73 @@ chef_utils Cookbook | ||
3 | 3 | |
4 | 4 | This cookbook contains setup recipes for Chef utilities and Knife plugins. |
5 | 5 | |
6 | -Requirements | |
7 | ------------- | |
6 | +## Contents | |
8 | 7 | |
9 | -#### packages | |
10 | -- `build-essential` - to build native libraries. | |
8 | +- [Requirements](#requirements) | |
9 | + - [packages](#packages) | |
10 | +- [Attributes](#attributes) | |
11 | +- [Usage](#usage) | |
12 | + - [recipes](#recipes) | |
13 | +- [License and Authors](#license-and-authors) | |
11 | 14 | |
12 | -Attributes | |
13 | ----------- | |
15 | +## Requirements | |
16 | + | |
17 | +### packages | |
18 | + | |
19 | +- `build-essential` - to build native libraries for berkshelf. | |
20 | + | |
21 | +## Attributes | |
14 | 22 | |
15 | 23 | |Key|Type|Description, example|Default| |
16 | 24 | |:--|:--|:--|:--| |
17 | 25 | |`['chef_utils']['chef_gem']['clear_sources']`|Boolean|chef_gem resource's clear_sources property.|`false`| |
18 | 26 | |`['chef_utils']['chef_gem']['source']`|String|chef_gem resource's source property.|`nil`| |
19 | 27 | |`['chef_utils']['chef_gem']['options']`|String|chef_gem resource's options property.|`nil`| |
28 | +|`['chef_utils']['chef_gem_packages']`|Array|These packages are installed by the `chef-gem-packages` recipe.|`[]`| | |
29 | +|`['chef_utils']['bracecomp']['version']`|String|installation version.|`nil`| | |
20 | 30 | |`['chef_utils']['chef-vault']['version']`|String|chef-vault installation version.|`'~> 2.6'`| |
31 | +|`['chef_utils']['chefspec']['version']`|String|installation version.|`nil`| | |
32 | +|`['chef_utils']['knife-acl']['version']`|String|installation version.|`nil`| | |
33 | +|`['chef_utils']['knife-ec2']['version']`|String|installation version.|`nil`| | |
34 | +|`['chef_utils']['knife-eucalyptus']['version']`|String|installation version.|`nil`| | |
35 | +|`['chef_utils']['knife-openstack']['version']`|String|installation version.|`nil`| | |
36 | +|`['chef_utils']['knife-push']['version']`|String|installation version.|`nil`| | |
37 | +|`['chef_utils']['knife-reporting']['version']`|String|installation version.|`nil`| | |
38 | +|`['chef_utils']['knife-solo']['version']`|String|installation version.|`nil`| | |
39 | +|`['chef_utils']['knife-spec']['version']`|String|installation version.|`nil`| | |
40 | +|`['chef_utils']['knife-supermarket']['version']`|String|installation version.|`nil`| | |
41 | +|`['chef_utils']['knife-zero']['version']`|String|installation version.|`nil`| | |
42 | +|`['chef_utils']['spiceweasel']['version']`|String|installation version.|`nil`| | |
21 | 43 | |`['chef_utils']['chef-server']['configuration']`|String|Chef server conf. file's content.|see attributes/default.rb| |
22 | 44 | |
23 | -Usage | |
24 | ------ | |
45 | +## Usage | |
25 | 46 | |
26 | -#### recipes | |
47 | +### recipes | |
27 | 48 | - `chef_utils::berkshelf` - Berkshelf gem installation. this is already included in the Chef DK. |
28 | 49 | - `chef_utils::bracecomp` - bracecomp gem installation. |
29 | 50 | - `chef_utils::chefspec` - chefspec gem installation. this is already included in the Chef DK. |
51 | +- `chef_utils::chef-gem-packages` - bulk gem installation. packages must be listed in the `['chef_utils']['chef_gem_packages']` attribute (ver. 0.7.0 or later) | |
30 | 52 | - `chef_utils::chef-server-configuration` - chef-server.rb configuration file deployment recipe. (ver. 0.6.0 or later) |
31 | 53 | - `chef_utils::chef-vault` - chef-vault gem installation. this is already included in the Chef DK. (ver. 0.5.0 or later) |
32 | 54 | - `chef_utils::default` - same as bracecomp. |
33 | 55 | - `chef_utils::knife-acl` - knife-acl plugin gem installation. (ver. 0.3.0 or later) |
34 | 56 | - `chef_utils::knife-ec2` - knife-ec2 plugin gem installation. |
35 | 57 | - `chef_utils::knife-eucalyptus` - knife-eucalyptus plugin gem installation. |
36 | -- `chef_utils::knife-push` - knife-push plugin gem installation. | |
58 | +- `chef_utils::knife-push` - knife-push plugin gem installation. this is already included in the Chef DK. | |
37 | 59 | - `chef_utils::knife-reporting` - knife-reporting plugin gem installation. |
38 | 60 | - `chef_utils::knife-solo` - knife-solo plugin gem installation. |
39 | 61 | - `chef_utils::knife-spec` - knife-spec plugin gem installation. |
62 | +- `chef_utils::knife-supermarket` - knife-supermarket plugin gem installation. Note: knife-supermarket feature has been moved into core Chef in versions greater than 12.11.18 and it is already included in the Chef DK. (ver. 0.7.0 or later) | |
40 | 63 | - `chef_utils::knife-zero` - knife-zero plugin gem installation. (ver. 0.5.0 or later) |
41 | 64 | - `chef_utils::librarian-chef` - librarian-chef gem installation. |
42 | 65 | - `chef_utils::spiceweasel` - spiceweasel gem installation. |
43 | 66 | |
44 | -License and Authors | |
45 | -------------------- | |
67 | +## License and Authors | |
68 | + | |
46 | 69 | - Author:: whitestar at osdn.jp |
47 | 70 | |
48 | 71 | ```text |
49 | -Copyright 2013-2015, whitestar | |
72 | +Copyright 2013-2016, whitestar | |
50 | 73 | |
51 | 74 | Licensed under the Apache License, Version 2.0 (the "License"); |
52 | 75 | you may not use this file except in compliance with the License. |
@@ -0,0 +1,23 @@ | ||
1 | +require 'rspec/core/rake_task' | |
2 | +require 'rubocop/rake_task' | |
3 | +require 'foodcritic' | |
4 | + | |
5 | +namespace :style do | |
6 | + desc 'Run Ruby style checks' | |
7 | + RuboCop::RakeTask.new(:ruby) | |
8 | + | |
9 | + desc 'Run Chef style checks' | |
10 | + FoodCritic::Rake::LintTask.new(:chef) do |t| | |
11 | + t.options = { | |
12 | + fail_tags: ['any'], | |
13 | + } | |
14 | + end | |
15 | +end | |
16 | + | |
17 | +desc 'Run all style checks' | |
18 | +task style: ['style:chef', 'style:ruby'] | |
19 | + | |
20 | +desc 'Run ChefSpec examples' | |
21 | +RSpec::Core::RakeTask.new(:spec) | |
22 | + | |
23 | +task default: ['style', 'spec'] |
@@ -20,7 +20,21 @@ | ||
20 | 20 | default['chef_utils']['chef_gem']['clear_sources'] = false |
21 | 21 | default['chef_utils']['chef_gem']['source'] = nil |
22 | 22 | default['chef_utils']['chef_gem']['options'] = nil |
23 | +default['chef_utils']['chef_gem_packages'] = [] | |
24 | +default['chef_utils']['bracecomp']['version'] = nil | |
23 | 25 | default['chef_utils']['chef-vault']['version'] = '~> 2.6' |
26 | +default['chef_utils']['chefspec']['version'] = nil | |
27 | +default['chef_utils']['knife-acl']['version'] = nil | |
28 | +default['chef_utils']['knife-ec2']['version'] = nil | |
29 | +default['chef_utils']['knife-eucalyptus']['version'] = nil | |
30 | +default['chef_utils']['knife-openstack']['version'] = nil | |
31 | +default['chef_utils']['knife-push']['version'] = nil | |
32 | +default['chef_utils']['knife-reporting']['version'] = nil | |
33 | +default['chef_utils']['knife-solo']['version'] = nil | |
34 | +default['chef_utils']['knife-spec']['version'] = nil | |
35 | +default['chef_utils']['knife-supermarket']['version'] = nil | |
36 | +default['chef_utils']['knife-zero']['version'] = nil | |
37 | +default['chef_utils']['spiceweasel']['version'] = nil | |
24 | 38 | |
25 | 39 | # /etc/opscode/chef-server.rb |
26 | 40 | default['chef_utils']['chef-server']['configuration'] = <<-EOS |
@@ -29,4 +43,3 @@ default['chef_utils']['chef-server']['configuration'] = <<-EOS | ||
29 | 43 | addons['install'] = false |
30 | 44 | |
31 | 45 | EOS |
32 | - |
@@ -0,0 +1,40 @@ | ||
1 | +# | |
2 | +# Cookbook Name:: ssl_cert | |
3 | +# Library:: Helper | |
4 | +# | |
5 | +# Copyright 2016, whitestar | |
6 | +# | |
7 | +# Licensed under the Apache License, Version 2.0 (the "License"); | |
8 | +# you may not use this file except in compliance with the License. | |
9 | +# You may obtain a copy of the License at | |
10 | +# | |
11 | +# http://www.apache.org/licenses/LICENSE-2.0 | |
12 | +# | |
13 | +# Unless required by applicable law or agreed to in writing, software | |
14 | +# distributed under the License is distributed on an "AS IS" BASIS, | |
15 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
16 | +# See the License for the specific language governing permissions and | |
17 | +# limitations under the License. | |
18 | +# | |
19 | + | |
20 | +module ChefUtils | |
21 | + # Helper methods. | |
22 | + module Helper | |
23 | + def chef_gem_package(pkg) | |
24 | + pkg_ver = if node['chef_utils'][pkg].nil? | |
25 | + nil | |
26 | + else | |
27 | + node['chef_utils'][pkg]['version'] | |
28 | + end | |
29 | + | |
30 | + resources(chef_gem: pkg) rescue chef_gem pkg do | |
31 | + compile_time true if respond_to?(:compile_time) | |
32 | + clear_sources node['chef_utils']['chef_gem']['clear_sources'] | |
33 | + source node['chef_utils']['chef_gem']['source'] | |
34 | + options node['chef_utils']['chef_gem']['options'] | |
35 | + version pkg_ver | |
36 | + action :install | |
37 | + end | |
38 | + end | |
39 | + end | |
40 | +end |
@@ -1,13 +1,15 @@ | ||
1 | +# $ knife cookbook site share chef_utils "Utilities" | |
1 | 2 | name 'chef_utils' |
2 | 3 | maintainer 'whitestar' |
3 | 4 | maintainer_email '' |
4 | 5 | license 'Apache 2.0' |
5 | 6 | description 'Installs/Configures chef_utils' |
6 | 7 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) |
7 | -version '0.6.1' | |
8 | +version '0.7.0' | |
9 | +source_url 'http://scm.osdn.jp/gitroot/metasearch/grid-chef-repo.git' | |
10 | +issues_url 'https://osdn.jp/projects/metasearch/ticket' | |
8 | 11 | |
9 | 12 | # local cookbooks |
10 | 13 | |
11 | 14 | # external cookbooks |
12 | 15 | depends 'build-essential' |
13 | - |
@@ -2,7 +2,7 @@ | ||
2 | 2 | # Cookbook Name:: chef_utils |
3 | 3 | # Recipe:: berkshelf |
4 | 4 | # |
5 | -# Copyright 2013-2015, whitestar | |
5 | +# Copyright 2013-2016, whitestar | |
6 | 6 | # |
7 | 7 | # Licensed under the Apache License, Version 2.0 (the "License"); |
8 | 8 | # you may not use this file except in compliance with the License. |
@@ -17,6 +17,8 @@ | ||
17 | 17 | # limitations under the License. |
18 | 18 | # |
19 | 19 | |
20 | +::Chef::Recipe.send(:include, ChefUtils::Helper) | |
21 | + | |
20 | 22 | # ref. http://community.opscode.com/cookbooks/build-essential |
21 | 23 | node.set['build-essential']['compile_time'] = true |
22 | 24 | include_recipe 'build-essential' |
@@ -25,11 +27,11 @@ include_recipe 'build-essential' | ||
25 | 27 | dependent_packages = value_for_platform_family( |
26 | 28 | 'rhel' => [ |
27 | 29 | 'libxslt-devel', |
28 | - 'libxml2-devel' | |
30 | + 'libxml2-devel', | |
29 | 31 | ], |
30 | 32 | 'debian' => [ |
31 | 33 | 'libxslt-dev', |
32 | - 'libxml2-dev' | |
34 | + 'libxml2-dev', | |
33 | 35 | ] |
34 | 36 | ) |
35 | 37 |
@@ -39,8 +41,4 @@ dependent_packages.each {|pkg| | ||
39 | 41 | end.run_action(:install) |
40 | 42 | } |
41 | 43 | |
42 | -chef_gem 'berkshelf' do | |
43 | - compile_time false if respond_to?(:compile_time) | |
44 | - action :install | |
45 | -end | |
46 | - | |
44 | +chef_gem_package('berkshelf') |
@@ -2,7 +2,7 @@ | ||
2 | 2 | # Cookbook Name:: chef_utils |
3 | 3 | # Recipe:: bracecomp |
4 | 4 | # |
5 | -# Copyright 2014,2015 whitestar | |
5 | +# Copyright 2014-2016 whitestar | |
6 | 6 | # |
7 | 7 | # Licensed under the Apache License, Version 2.0 (the "License"); |
8 | 8 | # you may not use this file except in compliance with the License. |
@@ -17,8 +17,6 @@ | ||
17 | 17 | # limitations under the License. |
18 | 18 | # |
19 | 19 | |
20 | -chef_gem 'bracecomp' do | |
21 | - compile_time false if respond_to?(:compile_time) | |
22 | - action :install | |
23 | -end | |
20 | +::Chef::Recipe.send(:include, ChefUtils::Helper) | |
24 | 21 | |
22 | +chef_gem_package('bracecomp') |
@@ -0,0 +1,24 @@ | ||
1 | +# | |
2 | +# Cookbook Name:: chef_utils | |
3 | +# Recipe:: chef-gem-packages | |
4 | +# | |
5 | +# Copyright 2016 whitestar | |
6 | +# | |
7 | +# Licensed under the Apache License, Version 2.0 (the "License"); | |
8 | +# you may not use this file except in compliance with the License. | |
9 | +# You may obtain a copy of the License at | |
10 | +# | |
11 | +# http://www.apache.org/licenses/LICENSE-2.0 | |
12 | +# | |
13 | +# Unless required by applicable law or agreed to in writing, software | |
14 | +# distributed under the License is distributed on an "AS IS" BASIS, | |
15 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
16 | +# See the License for the specific language governing permissions and | |
17 | +# limitations under the License. | |
18 | +# | |
19 | + | |
20 | +::Chef::Recipe.send(:include, ChefUtils::Helper) | |
21 | + | |
22 | +node['chef_utils']['chef_gem_packages'].each {|pkg| | |
23 | + chef_gem_package(pkg) | |
24 | +} |
@@ -23,4 +23,3 @@ file '/etc/opscode/chef-server.rb' do | ||
23 | 23 | group 'root' |
24 | 24 | mode 0644 |
25 | 25 | end |
26 | - |
@@ -17,13 +17,6 @@ | ||
17 | 17 | # limitations under the License. |
18 | 18 | # |
19 | 19 | |
20 | -pkg = 'chef-vault' | |
21 | -resources(:chef_gem => pkg) rescue chef_gem pkg do | |
22 | - compile_time true if respond_to?(:compile_time) | |
23 | - clear_sources node['chef_utils']['chef_gem']['clear_sources'] | |
24 | - source node['chef_utils']['chef_gem']['source'] | |
25 | - options node['chef_utils']['chef_gem']['options'] | |
26 | - version node['chef_utils']['chef-vault']['version'] | |
27 | - action :install | |
28 | -end | |
20 | +::Chef::Recipe.send(:include, ChefUtils::Helper) | |
29 | 21 | |
22 | +chef_gem_package('chef-vault') |
@@ -2,7 +2,7 @@ | ||
2 | 2 | # Cookbook Name:: chef_utils |
3 | 3 | # Recipe:: chefspec |
4 | 4 | # |
5 | -# Copyright 2015, whitestar | |
5 | +# Copyright 2015-2016, whitestar | |
6 | 6 | # |
7 | 7 | # Licensed under the Apache License, Version 2.0 (the "License"); |
8 | 8 | # you may not use this file except in compliance with the License. |
@@ -17,8 +17,6 @@ | ||
17 | 17 | # limitations under the License. |
18 | 18 | # |
19 | 19 | |
20 | -chef_gem 'chefspec' do | |
21 | - compile_time false if respond_to?(:compile_time) | |
22 | - action :install | |
23 | -end | |
20 | +::Chef::Recipe.send(:include, ChefUtils::Helper) | |
24 | 21 | |
22 | +chef_gem_package('chefspec') |
@@ -17,8 +17,6 @@ | ||
17 | 17 | # limitations under the License. |
18 | 18 | # |
19 | 19 | |
20 | -chef_gem 'bracecomp' do | |
21 | - compile_time false if respond_to?(:compile_time) | |
22 | - action :install | |
23 | -end | |
20 | +::Chef::Recipe.send(:include, ChefUtils::Helper) | |
24 | 21 | |
22 | +chef_gem_package('bracecomp') |
@@ -2,7 +2,7 @@ | ||
2 | 2 | # Cookbook Name:: chef_utils |
3 | 3 | # Recipe:: knife-acl |
4 | 4 | # |
5 | -# Copyright 2015, whitestar | |
5 | +# Copyright 2015-2016, whitestar | |
6 | 6 | # |
7 | 7 | # Licensed under the Apache License, Version 2.0 (the "License"); |
8 | 8 | # you may not use this file except in compliance with the License. |
@@ -17,8 +17,6 @@ | ||
17 | 17 | # limitations under the License. |
18 | 18 | # |
19 | 19 | |
20 | -chef_gem 'knife-acl' do | |
21 | - compile_time false if respond_to?(:compile_time) | |
22 | - action :install | |
23 | -end | |
20 | +::Chef::Recipe.send(:include, ChefUtils::Helper) | |
24 | 21 | |
22 | +chef_gem_package('knife-acl') |
@@ -2,7 +2,7 @@ | ||
2 | 2 | # Cookbook Name:: chef_utils |
3 | 3 | # Recipe:: knife-ec2 |
4 | 4 | # |
5 | -# Copyright 2013-2015, whitestar | |
5 | +# Copyright 2013-2016, whitestar | |
6 | 6 | # |
7 | 7 | # Licensed under the Apache License, Version 2.0 (the "License"); |
8 | 8 | # you may not use this file except in compliance with the License. |
@@ -17,8 +17,6 @@ | ||
17 | 17 | # limitations under the License. |
18 | 18 | # |
19 | 19 | |
20 | -chef_gem 'knife-ec2' do | |
21 | - compile_time false if respond_to?(:compile_time) | |
22 | - action :install | |
23 | -end | |
20 | +::Chef::Recipe.send(:include, ChefUtils::Helper) | |
24 | 21 | |
22 | +chef_gem_package('knife-ec2') |
@@ -2,7 +2,7 @@ | ||
2 | 2 | # Cookbook Name:: chef_utils |
3 | 3 | # Recipe:: knife-eucalyptus |
4 | 4 | # |
5 | -# Copyright 2013-2015, whitestar | |
5 | +# Copyright 2013-2016, whitestar | |
6 | 6 | # |
7 | 7 | # Licensed under the Apache License, Version 2.0 (the "License"); |
8 | 8 | # you may not use this file except in compliance with the License. |
@@ -17,8 +17,6 @@ | ||
17 | 17 | # limitations under the License. |
18 | 18 | # |
19 | 19 | |
20 | -chef_gem 'knife-eucalyptus' do | |
21 | - compile_time false if respond_to?(:compile_time) | |
22 | - action :install | |
23 | -end | |
20 | +::Chef::Recipe.send(:include, ChefUtils::Helper) | |
24 | 21 | |
22 | +chef_gem_package('knife-eucalyptus') |
@@ -2,7 +2,7 @@ | ||
2 | 2 | # Cookbook Name:: chef_utils |
3 | 3 | # Recipe:: knife-openstack |
4 | 4 | # |
5 | -# Copyright 2013-2015, whitestar | |
5 | +# Copyright 2013-2016, whitestar | |
6 | 6 | # |
7 | 7 | # Licensed under the Apache License, Version 2.0 (the "License"); |
8 | 8 | # you may not use this file except in compliance with the License. |
@@ -17,8 +17,6 @@ | ||
17 | 17 | # limitations under the License. |
18 | 18 | # |
19 | 19 | |
20 | -chef_gem 'knife-openstack' do | |
21 | - compile_time false if respond_to?(:compile_time) | |
22 | - action :install | |
23 | -end | |
20 | +::Chef::Recipe.send(:include, ChefUtils::Helper) | |
24 | 21 | |
22 | +chef_gem_package('knife-openstack') |
@@ -2,7 +2,7 @@ | ||
2 | 2 | # Cookbook Name:: chef_utils |
3 | 3 | # Recipe:: knife-push |
4 | 4 | # |
5 | -# Copyright 2015, whitestar | |
5 | +# Copyright 2015-2016, whitestar | |
6 | 6 | # |
7 | 7 | # Licensed under the Apache License, Version 2.0 (the "License"); |
8 | 8 | # you may not use this file except in compliance with the License. |
@@ -17,8 +17,6 @@ | ||
17 | 17 | # limitations under the License. |
18 | 18 | # |
19 | 19 | |
20 | -chef_gem 'knife-push' do | |
21 | - compile_time false if respond_to?(:compile_time) | |
22 | - action :install | |
23 | -end | |
20 | +::Chef::Recipe.send(:include, ChefUtils::Helper) | |
24 | 21 | |
22 | +chef_gem_package('knife-push') |
@@ -2,7 +2,7 @@ | ||
2 | 2 | # Cookbook Name:: chef_utils |
3 | 3 | # Recipe:: knife-reporting |
4 | 4 | # |
5 | -# Copyright 2015, whitestar | |
5 | +# Copyright 2015-2016, whitestar | |
6 | 6 | # |
7 | 7 | # Licensed under the Apache License, Version 2.0 (the "License"); |
8 | 8 | # you may not use this file except in compliance with the License. |
@@ -17,8 +17,6 @@ | ||
17 | 17 | # limitations under the License. |
18 | 18 | # |
19 | 19 | |
20 | -chef_gem 'knife-reporting' do | |
21 | - compile_time false if respond_to?(:compile_time) | |
22 | - action :install | |
23 | -end | |
20 | +::Chef::Recipe.send(:include, ChefUtils::Helper) | |
24 | 21 | |
22 | +chef_gem_package('knife-reporting') |
@@ -2,7 +2,7 @@ | ||
2 | 2 | # Cookbook Name:: chef_utils |
3 | 3 | # Recipe:: knife-solo |
4 | 4 | # |
5 | -# Copyright 2014-2015, whitestar | |
5 | +# Copyright 2014-2016, whitestar | |
6 | 6 | # |
7 | 7 | # Licensed under the Apache License, Version 2.0 (the "License"); |
8 | 8 | # you may not use this file except in compliance with the License. |
@@ -17,8 +17,6 @@ | ||
17 | 17 | # limitations under the License. |
18 | 18 | # |
19 | 19 | |
20 | -chef_gem 'knife-solo' do | |
21 | - compile_time false if respond_to?(:compile_time) | |
22 | - action :install | |
23 | -end | |
20 | +::Chef::Recipe.send(:include, ChefUtils::Helper) | |
24 | 21 | |
22 | +chef_gem_package('knife-solo') |
@@ -2,7 +2,7 @@ | ||
2 | 2 | # Cookbook Name:: chef_utils |
3 | 3 | # Recipe:: knife-spec |
4 | 4 | # |
5 | -# Copyright 2015, whitestar | |
5 | +# Copyright 2015-2016, whitestar | |
6 | 6 | # |
7 | 7 | # Licensed under the Apache License, Version 2.0 (the "License"); |
8 | 8 | # you may not use this file except in compliance with the License. |
@@ -17,8 +17,6 @@ | ||
17 | 17 | # limitations under the License. |
18 | 18 | # |
19 | 19 | |
20 | -chef_gem 'knife-spec' do | |
21 | - compile_time false if respond_to?(:compile_time) | |
22 | - action :install | |
23 | -end | |
20 | +::Chef::Recipe.send(:include, ChefUtils::Helper) | |
24 | 21 | |
22 | +chef_gem_package('knife-spec') |
@@ -0,0 +1,22 @@ | ||
1 | +# | |
2 | +# Cookbook Name:: chef_utils | |
3 | +# Recipe:: supermarket | |
4 | +# | |
5 | +# Copyright 2016 whitestar | |
6 | +# | |
7 | +# Licensed under the Apache License, Version 2.0 (the "License"); | |
8 | +# you may not use this file except in compliance with the License. | |
9 | +# You may obtain a copy of the License at | |
10 | +# | |
11 | +# http://www.apache.org/licenses/LICENSE-2.0 | |
12 | +# | |
13 | +# Unless required by applicable law or agreed to in writing, software | |
14 | +# distributed under the License is distributed on an "AS IS" BASIS, | |
15 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
16 | +# See the License for the specific language governing permissions and | |
17 | +# limitations under the License. | |
18 | +# | |
19 | + | |
20 | +::Chef::Recipe.send(:include, ChefUtils::Helper) | |
21 | + | |
22 | +chef_gem_package('knife-supermarket') |
@@ -2,7 +2,7 @@ | ||
2 | 2 | # Cookbook Name:: chef_utils |
3 | 3 | # Recipe:: knife-zero |
4 | 4 | # |
5 | -# Copyright 2015, whitestar | |
5 | +# Copyright 2015-2016, whitestar | |
6 | 6 | # |
7 | 7 | # Licensed under the Apache License, Version 2.0 (the "License"); |
8 | 8 | # you may not use this file except in compliance with the License. |
@@ -17,8 +17,6 @@ | ||
17 | 17 | # limitations under the License. |
18 | 18 | # |
19 | 19 | |
20 | -chef_gem 'knife-zero' do | |
21 | - compile_time false if respond_to?(:compile_time) | |
22 | - action :install | |
23 | -end | |
20 | +::Chef::Recipe.send(:include, ChefUtils::Helper) | |
24 | 21 | |
22 | +chef_gem_package('knife-zero') |
@@ -2,7 +2,7 @@ | ||
2 | 2 | # Cookbook Name:: chef_utils |
3 | 3 | # Recipe:: librarian-chef |
4 | 4 | # |
5 | -# Copyright 2013-2015 whitestar | |
5 | +# Copyright 2013-2016 whitestar | |
6 | 6 | # |
7 | 7 | # Licensed under the Apache License, Version 2.0 (the "License"); |
8 | 8 | # you may not use this file except in compliance with the License. |
@@ -17,8 +17,6 @@ | ||
17 | 17 | # limitations under the License. |
18 | 18 | # |
19 | 19 | |
20 | -chef_gem 'librarian-chef' do | |
21 | - compile_time false if respond_to?(:compile_time) | |
22 | - action :install | |
23 | -end | |
20 | +::Chef::Recipe.send(:include, ChefUtils::Helper) | |
24 | 21 | |
22 | +chef_gem_package('librarian-chef') |
@@ -2,7 +2,7 @@ | ||
2 | 2 | # Cookbook Name:: chef_utils |
3 | 3 | # Recipe:: spiceweasel |
4 | 4 | # |
5 | -# Copyright 2013-2015, whitestar | |
5 | +# Copyright 2013-2016, whitestar | |
6 | 6 | # |
7 | 7 | # Licensed under the Apache License, Version 2.0 (the "License"); |
8 | 8 | # you may not use this file except in compliance with the License. |
@@ -17,8 +17,6 @@ | ||
17 | 17 | # limitations under the License. |
18 | 18 | # |
19 | 19 | |
20 | -chef_gem 'spiceweasel' do | |
21 | - compile_time false if respond_to?(:compile_time) | |
22 | - action :install | |
23 | -end | |
20 | +::Chef::Recipe.send(:include, ChefUtils::Helper) | |
24 | 21 | |
22 | +chef_gem_package('spiceweasel') |