• R/O
  • HTTP
  • SSH
  • HTTPS

grid-chef-repo: Commit

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


Commit MetaInfo

Revision38d6c2cfc6bafd83c9739003708a39c0f2dd50a6 (tree)
Zeit2016-12-11 11:01:38
Autorwhitestar <whitestar@gaea...>
Commiterwhitestar

Log Message

adds the platform_utils cookbook dependency

Ändern Zusammenfassung

Diff

--- a/cookbooks/commons/CHANGELOG.md
+++ b/cookbooks/commons/CHANGELOG.md
@@ -1,6 +1,10 @@
11 commons CHANGELOG
22 =================
33
4+0.4.1
5+-----
6+- adds `platform_utils` cookbook dependency.
7+
48 0.4.0
59 -----
610 - add tcp_wrappers recipe.
--- a/cookbooks/commons/metadata.rb
+++ b/cookbooks/commons/metadata.rb
@@ -4,13 +4,14 @@ maintainer_email ''
44 license 'Apache 2.0'
55 description 'Installs/Configures commons'
66 long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
7-version '0.4.0'
7+version '0.4.1'
88
99 %w{ debian ubuntu centos redhat fedora }.each do |os|
1010 supports os
1111 end
1212
1313 # local cookbooks
14+depends 'platform_utils'
1415
1516 # external cookbooks
1617 depends 'apt'
--- a/cookbooks/commons/recipes/platform_update.rb
+++ b/cookbooks/commons/recipes/platform_update.rb
@@ -2,7 +2,7 @@
22 # Cookbook Name:: commons
33 # Recipe:: platform_update
44 #
5-# Copyright 2015, whitestar
5+# Copyright 2016, whitestar
66 #
77 # Licensed under the Apache License, Version 2.0 (the "License");
88 # you may not use this file except in compliance with the License.
@@ -17,18 +17,4 @@
1717 # limitations under the License.
1818 #
1919
20-case node[:platform_family]
21-when 'debian'then
22- execute 'apt-get_upgrade' do
23- user 'root'
24- command 'apt-get update;apt-get upgrade -y'
25- action :run
26- end
27-when 'rhel' then
28- execute 'yum_update' do
29- user 'root'
30- command 'yum update -y'
31- action :run
32- end
33-end
34-
20+include_recipe 'platform_utils::platform_update'
Show on old repository browser