• R/O
  • HTTP
  • SSH
  • HTTPS

grid-chef-repo: Commit

Grid環境構築用のChefリポジトリです。


Commit MetaInfo

Revision601e8a7d6e05e19921705787b6eaeb64e9592aaf (tree)
Time2015-11-18 21:42:18
Authorwhitestar <whitestar@gaea...>
Commiterwhitestar

Log Message

add knife-acl recipe to the chef_utils cookbook.

Change Summary

Incremental Difference

--- a/cookbooks/chef_utils/README.md
+++ b/cookbooks/chef_utils/README.md
@@ -23,6 +23,7 @@ Usage
2323 - `chef_utils::chefspec` - chefspec gem installation. this is already included in the Ch
2424 ef DK.
2525 - `chef_utils::default` - same as bracecomp.
26+- `chef_utils::knife-acl` - knife-acl plugin gem installation.
2627 - `chef_utils::knife-ec2` - knife-ec2 plugin gem installation.
2728 - `chef_utils::knife-eucalyptus` - knife-eucalyptus plugin gem installation.
2829 - `chef_utils::knife-push` - knife-push plugin gem installation.
--- a/cookbooks/chef_utils/metadata.rb
+++ b/cookbooks/chef_utils/metadata.rb
@@ -4,7 +4,7 @@ maintainer_email ''
44 license 'Apache 2.0'
55 description 'Installs/Configures chef_utils'
66 long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
7-version '0.2.0'
7+version '0.3.0'
88
99 # local cookbooks
1010
--- /dev/null
+++ b/cookbooks/chef_utils/recipes/knife-acl.rb
@@ -0,0 +1,24 @@
1+#
2+# Cookbook Name:: chef_utils
3+# Recipe:: knife-acl
4+#
5+# Copyright 2015, 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_gem 'knife-acl' do
21+ compile_time false if respond_to?(:compile_time)
22+ action :install
23+end
24+
--- a/roles/chef_utils.rb
+++ b/roles/chef_utils.rb
@@ -1,5 +1,5 @@
11 #
2-# Copyright 2013, whitestar
2+# Copyright 2013-2015, whitestar
33 #
44 # Licensed under the Apache License, Version 2.0 (the "License");
55 # you may not use this file except in compliance with the License.
@@ -19,15 +19,19 @@ description 'Chef utility libraries'
1919
2020 run_list(
2121 'recipe[chef_utils::default]',
22- #'role[berkshelf]',
22+ 'role[berkshelf]',
2323 #'role[librarian-chef]',
2424 #'role[spiceweasel]',
2525 #'role[knife-cloud-plugins]',
26+ 'role[knife-solo]',
27+ 'recipe[chef_utils::chefspec]',
28+ 'recipe[chef_utils::knife-acl]',
2629 'recipe[chef_utils::knife-push]',
2730 'recipe[chef_utils::knife-reporting]',
28- 'role[knife-solo]',
31+ 'recipe[chef_utils::knife-spec]',
2932 )
3033
3134 #env_run_lists()
3235 #default_attributes()
3336 #override_attributes()
37+
Show on old repository browser