Fix package dependencies in planet cookbook
authorTom Hughes <tom@compton.nu>
Sat, 15 Feb 2020 12:05:56 +0000 (12:05 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 15 Feb 2020 12:05:56 +0000 (12:05 +0000)
cookbooks/planet/recipes/default.rb
cookbooks/planet/recipes/dump.rb
cookbooks/planet/recipes/notes.rb

index 5dd5953f85aaef5164b3349edcb882f046651a39..ba5bf0023011b29c8f114f69143079fb52828f44 100644 (file)
 
 include_recipe "apache"
 
 
 include_recipe "apache"
 
-package "perl"
-package "pbzip2"
-package "osmosis"
-
-package "php-cli"
+package %w[
+  perl
+  php-cli
+]
 
 file "/etc/cron.d/planet" do
   action :delete
 
 file "/etc/cron.d/planet" do
   action :delete
index 0b46a2c7bcdc65fc21eaea011bbde438d88c2e5a..a5e9a5fff009256c639cb680ae719ce1a7ab54a9 100644 (file)
@@ -27,24 +27,25 @@ node.default[:incron][:planetdump] = {
 include_recipe "git"
 include_recipe "incron"
 
 include_recipe "git"
 include_recipe "incron"
 
-package "gcc"
-package "make"
-package "autoconf"
-package "automake"
-package "libxml2-dev"
-package "libboost-dev"
-package "libboost-program-options-dev"
-package "libboost-date-time-dev"
-package "libboost-filesystem-dev"
-package "libboost-thread-dev"
-package "libboost-iostreams-dev"
-package "libosmpbf-dev"
-package "libprotobuf-dev"
-package "osmpbf-bin"
-
-# Add planet-mirror-redirect-update dependencies
-package "php-cli"
-package "php-curl"
+package %w[
+  gcc
+  make
+  autoconf
+  automake
+  libxml2-dev
+  libboost-dev
+  libboost-program-options-dev
+  libboost-date-time-dev
+  libboost-filesystem-dev
+  libboost-thread-dev
+  libboost-iostreams-dev
+  libosmpbf-dev
+  libprotobuf-dev
+  osmpbf-bin
+  pbzip2
+  php-cli
+  php-curl
+]
 
 directory "/opt/planet-dump-ng" do
   owner "root"
 
 directory "/opt/planet-dump-ng" do
   owner "root"
index 41303fe43e30dc6d2eea64abebcee685e2f0997f..c255c0962a2c127bed81cd530b503316c5134992 100644 (file)
@@ -21,8 +21,11 @@ include_recipe "git"
 
 db_passwords = data_bag_item("db", "passwords")
 
 
 db_passwords = data_bag_item("db", "passwords")
 
-package "python-psycopg2"
-package "python-lxml"
+package %w[
+  pbzip2
+  python-psycopg2
+  python-lxml
+]
 
 directory "/opt/planet-notes-dump" do
   owner "root"
 
 directory "/opt/planet-notes-dump" do
   owner "root"