Grid環境構築用のChefリポジトリです。
Revision | 38d6c2cfc6bafd83c9739003708a39c0f2dd50a6 (tree) |
---|---|
Zeit | 2016-12-11 11:01:38 |
Autor | whitestar <whitestar@gaea...> |
Commiter | whitestar |
adds the platform_utils cookbook dependency
@@ -1,6 +1,10 @@ | ||
1 | 1 | commons CHANGELOG |
2 | 2 | ================= |
3 | 3 | |
4 | +0.4.1 | |
5 | +----- | |
6 | +- adds `platform_utils` cookbook dependency. | |
7 | + | |
4 | 8 | 0.4.0 |
5 | 9 | ----- |
6 | 10 | - add tcp_wrappers recipe. |
@@ -4,13 +4,14 @@ maintainer_email '' | ||
4 | 4 | license 'Apache 2.0' |
5 | 5 | description 'Installs/Configures commons' |
6 | 6 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) |
7 | -version '0.4.0' | |
7 | +version '0.4.1' | |
8 | 8 | |
9 | 9 | %w{ debian ubuntu centos redhat fedora }.each do |os| |
10 | 10 | supports os |
11 | 11 | end |
12 | 12 | |
13 | 13 | # local cookbooks |
14 | +depends 'platform_utils' | |
14 | 15 | |
15 | 16 | # external cookbooks |
16 | 17 | depends 'apt' |
@@ -2,7 +2,7 @@ | ||
2 | 2 | # Cookbook Name:: commons |
3 | 3 | # Recipe:: platform_update |
4 | 4 | # |
5 | -# Copyright 2015, whitestar | |
5 | +# Copyright 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,18 +17,4 @@ | ||
17 | 17 | # limitations under the License. |
18 | 18 | # |
19 | 19 | |
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' |