+++ /dev/null
-~FC001
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-# cplanet cookbook
-
-This cookbook installs a current planet file and keeps a local copy up-to-date.
-It is the basis for other services that need a current planet file.
-
+++ /dev/null
-default[:cplanet][:jobs] = {}
+++ /dev/null
-name "cplanet"
-maintainer "OpenStreetMap Administrators"
-maintainer_email "admins@openstreetmap.org"
-license "Apache-2.0"
-description "Installs and keeps current planet file"
-long_description IO.read(File.join(File.dirname(__FILE__), "README.md"))
-version "1.0.0"
-supports "ubuntu"
default[:planet][:dump][:xml_history_directory] = "/store/planet/planet/full-history"
default[:planet][:dump][:pbf_directory] = "/store/planet/pbf"
default[:planet][:dump][:pbf_history_directory] = "/store/planet/pbf/full-history"
+
+default[:planet][:current][:jobs] = {}
#
-# Cookbook Name:: cplanet
-# Recipe:: default
+# Cookbook Name:: planet
+# Recipe:: current
#
# Copyright 2018, OpenStreetMap Foundation
#
runuser -u planet -- /usr/local/bin/planet-update-file
echo "Running jobs..."
-<% node[:cplanet][:jobs].each do |job| -%>
+<% node[:planet][:current][:jobs].each do |job| -%>
echo "Running '<%= job[:command] %>' as user '<%= job[:user] %>'..."
+++ /dev/null
-name "cplanet"
-description "Role applied to servers providing a current planet file"
-
-default_attributes(
- :accounts => {
- :users => {
- :jochen => {
- :status => :administrator
- },
- :cplanet => {
- :status => :role,
- :members => [:jochen, :tomh]
- }
- }
- }
-)
-
-run_list(
- "recipe[cplanet]"
-)