]> git.openstreetmap.org Git - chef.git/commitdiff
apt: add support for elasticsearch repo
authorGrant Slater <git@firefishy.com>
Fri, 7 Mar 2014 08:25:12 +0000 (08:25 +0000)
committerGrant Slater <git@firefishy.com>
Fri, 7 Mar 2014 08:46:59 +0000 (08:46 +0000)
cookbooks/apt/recipes/default.rb
cookbooks/apt/templates/default/elasticsearch.list.erb [new file with mode: 0644]

index a8e41cc0f9a7ca156ce90ebe645b0176c09ab6de..d9a4a63f5bf65dd1d95cdddf25eab319089a3940 100644 (file)
@@ -115,3 +115,9 @@ apt_source "nginx" do
   url "http://nginx.org/packages/ubuntu"
   key "7BD9BF62"
 end
+
+apt_source "elasticsearch" do
+  template "elasticsearch.list.erb"
+  url "http://packages.elasticsearch.org/elasticsearch/1.0/debian"
+  key "D88E42B4"
+end
diff --git a/cookbooks/apt/templates/default/elasticsearch.list.erb b/cookbooks/apt/templates/default/elasticsearch.list.erb
new file mode 100644 (file)
index 0000000..d78b447
--- /dev/null
@@ -0,0 +1,3 @@
+# DO NOT EDIT - This file is being maintained by Chef
+
+deb <%= @url %> stable main