Kouhei Sutou
null+****@clear*****
Fri Feb 22 17:18:27 JST 2013
Kouhei Sutou 2013-02-22 17:18:27 +0900 (Fri, 22 Feb 2013) New Revision: ea0888ef6c5e505f0d5c9a71ed8f4684615ceac0 https://github.com/groonga/chef-cookbooks/commit/ea0888ef6c5e505f0d5c9a71ed8f4684615ceac0 Log: Split groonga repository recipe Copied files: groonga/recipes/repository.rb (from groonga/recipes/default.rb) Modified files: groonga/recipes/default.rb Modified: groonga/recipes/default.rb (+1 -31) =================================================================== --- groonga/recipes/default.rb 2013-02-22 17:16:15 +0900 (94200a2) +++ groonga/recipes/default.rb 2013-02-22 17:18:27 +0900 (49a3235) @@ -15,37 +15,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -if platform_family?("debian") - package "lsb-release" do - action [:install] - end - - template "/etc/apt/sources.list.d/groonga.list" do - extend Chef::Mixin::ShellOut - source "groonga.list.erb" - platform = node.platform - apt_policy = shell_out!("apt-cache", "policy").stdout - if /(?:[an]=)(?:unstable|sid),/ =~ apt_policy - code_name = "unstable" - else - code_name = shell_out!("lsb_release", "--short", "--codename").stdout.strip - end - case platform - when "debian" - component = "main" - when "ubuntu" - component = "universe" - end - variables(:platform => platform, - :code_name => code_name, - :component => component) - end - - package "groonga-keyring" do - options("--allow-unauthenticated") - action [:install] - end -end +include_recipe "groonga::repository" package "groonga" do action [:install] Copied: groonga/recipes/repository.rb (+0 -4) 96% =================================================================== --- groonga/recipes/default.rb 2013-02-22 17:16:15 +0900 (94200a2) +++ groonga/recipes/repository.rb 2013-02-22 17:18:27 +0900 (fcb6acf) @@ -46,7 +46,3 @@ if platform_family?("debian") action [:install] end end - -package "groonga" do - action [:install] -end -------------- next part -------------- HTML����������������������������...다운로드