[Groonga-commit] groonga/chef-cookbooks [master] Use apt cookbook

Back to archive index

Yoji SHIDARA null+****@clear*****
Fri Mar 1 13:41:44 JST 2013


Yoji SHIDARA	2013-03-01 13:41:44 +0900 (Fri, 01 Mar 2013)

  New Revision: e2279eff8677ef0e5e6d060e380141f57150f40d
  https://github.com/groonga/chef-cookbooks/commit/e2279eff8677ef0e5e6d060e380141f57150f40d

  Log:
    Use apt cookbook

  Modified files:
    groonga/README.md
    groonga/metadata.rb
    groonga/recipes/repository.rb

  Modified: groonga/README.md (+4 -0)
===================================================================
--- groonga/README.md    2013-02-22 18:48:26 +0900 (4572e4a)
+++ groonga/README.md    2013-03-01 13:41:44 +0900 (cba7d6e)
@@ -26,6 +26,10 @@ Requirements
 - `yum` - for RPM based package system
 - `homebrew` - for Mac OS X
 
+#### Cookbooks
+
+- [apt](https://github.com/opscode-cookbooks/apt)
+
 Attributes
 ----------
 

  Modified: groonga/metadata.rb (+2 -0)
===================================================================
--- groonga/metadata.rb    2013-02-22 18:48:26 +0900 (91a813b)
+++ groonga/metadata.rb    2013-03-01 13:41:44 +0900 (09c7800)
@@ -40,3 +40,5 @@ supports "fedora"
 supports "freebsd"
 supports "windows"
 supports "mac_os_x"
+
+depends "apt"

  Modified: groonga/recipes/repository.rb (+4 -0)
===================================================================
--- groonga/recipes/repository.rb    2013-02-22 18:48:26 +0900 (3370ca0)
+++ groonga/recipes/repository.rb    2013-03-01 13:41:44 +0900 (d8f782d)
@@ -16,6 +16,8 @@
 # limitations under the License.
 
 if platform_family?("debian")
+  include_recipe "apt"
+
   package "lsb-release" do
   end
 
@@ -38,10 +40,12 @@ if platform_family?("debian")
     variables(:platform  => platform,
               :code_name => code_name,
               :component => component)
+    notifies :run, resources(:execute => "apt-get update"), :immediately
   end
 
   package "groonga-keyring" do
     options("--allow-unauthenticated")
+    notifies :run, resources(:execute => "apt-get update"), :immediately
   end
 elsif platform_family?("rhel", "fedora")
   if platform_family?("rhel")
-------------- next part --------------
HTML����������������������������...
다운로드 



More information about the Groonga-commit mailing list
Back to archive index