]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/geodns/recipes/default.rb
Use MaxMind PPA for geoipupdate and configure account credentials
[chef.git] / cookbooks / geodns / recipes / default.rb
index 16ba44ed5f6b820587b7ab7ae853fdb5c5947e16..813ac250cfed8404c00584543ea2d3eb48df1a52 100644 (file)
@@ -1,8 +1,8 @@
 #
-# Cookbook Name:: geodns
+# Cookbook:: geodns
 # Recipe:: default
 #
-# Copyright 2011, OpenStreetMap Foundation
+# Copyright:: 2011, OpenStreetMap Foundation
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
 # limitations under the License.
 #
 
+include_recipe "geoipupdate"
+
 package %w[
-  geoipupdate
   gdnsd
 ]
 
-execute "geoipdate" do
-  command "geoipupdate"
-  user "root"
-  group "root"
-  not_if { ::File.exist?("/var/lib/GeoIP/GeoLite2-Country.mmdb") }
-end
-
 directory "/etc/gdnsd/config.d" do
   owner "nobody"
   group "nogroup"