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][:tilelog][:source_directory] = "/opt/tilelog"
-default[:planet][:tilelog][:input_directory] = "/store/logs/tile.openstreetmap.org"
-default[:planet][:tilelog][:output_directory] = "/store/planet/tile_logs"
--- /dev/null
+tilelog CHANGELOG
+=================
+
+This file is used to list changes made in each version of the tilelog cookbook.
+
+0.1.0
+-----
+- [your_name] - Initial release of tilelog
+
+- - -
+Check the [Markdown Syntax Guide](http://daringfireball.net/projects/markdown/syntax) for help with Markdown.
+
+The [Github Flavored Markdown page](http://github.github.com/github-flavored-markdown/) describes the differences between markdown on github and standard markdown.
--- /dev/null
+tilelog Cookbook
+================
+This cookbook contains the tile log processing / analysis tools. This includes creating the tile log summaries of the number of tiles downloaded from the tile caches.
+
+Requirements
+------------
+
+#### cookbooks
+- `tools` - tilelog needs the OSM tools cookbook.
+- `git` - tilelog needs the OSM git cookbook to download the tile log analysis source.
+
+#### packages
+- `gcc` - for building the analysis tool.
+- `make` - for building the analysis tool.
+- `autoconf` - for building the analysis tool.
+- `automake` - for building the analysis tool.
+- `libboost-filesystem-dev` - a dependency of the analysis tool.
+- `libboost-system-dev` - a dependency of the analysis tool.
+- `libboost-program-options-dev` - a dependency of the analysis tool.
+
+
+Attributes
+----------
+
+#### tilelog::default
+<table>
+ <tr>
+ <th>Key</th>
+ <th>Type</th>
+ <th>Description</th>
+ <th>Default</th>
+ </tr>
+ <tr>
+ <td><tt>[:tilelog][:source_directory]</tt></td>
+ <td>String</td>
+ <td>Directory in which the source is checked out and built.</td>
+ <td><tt>/opt/tilelog</tt></td>
+ </tr>
+ <tr>
+ <td><tt>[:tilelog][:input_directory]</tt></td>
+ <td>String</td>
+ <td>Directory in which the input log files can be found.</td>
+ <td><tt>/store/logs/tile.openstreetmap.org</tt></td>
+ </tr>
+ <tr>
+ <td><tt>[:tilelog][:source_directory]</tt></td>
+ <td>String</td>
+ <td>Directory in which the output analysis files are to be placed.</td>
+ <td><tt>/store/planet/tile_logs</tt></td>
+ </tr>
+</table>
+
+Usage
+-----
+#### tilelog::default
+TODO: Write usage instructions for each cookbook.
+
+e.g.
+Just include `tilelog` in your node's `run_list`:
+
+```json
+{
+ "name":"my_node",
+ "run_list": [
+ "recipe[tilelog]"
+ ]
+}
+```
+
+License and Authors
+-------------------
+Released under the [Apache 2.0 license](http://www.apache.org/licenses/LICENSE-2.0).
+
+Authors: Matt Amos
--- /dev/null
+
+default[:tilelog][:source_directory] = "/opt/tilelog"
+default[:tilelog][:input_directory] = "/store/logs/tile.openstreetmap.org"
+default[:tilelog][:output_directory] = "/store/planet/tile_logs"
--- /dev/null
+name 'tilelog'
+maintainer 'OpenStreetMap Administrators'
+maintainer_email 'admins@openstreetmap.org'
+license 'Apache 2.0'
+description 'Installs and configures tile log analysis'
+long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
+version '1.0.0'
+depends 'git'
+depends 'tools'
#
-# Cookbook Name:: planet
-# Recipe:: tilelog
+# Cookbook Name:: tilelog
+# Recipe:: default
#
# Copyright 2014, OpenStreetMap Foundation
#
package "libboost-system-dev"
package "libboost-program-options-dev"
-tilelog_source_directory = node[:planet][:tilelog][:source_directory]
-tilelog_input_directory = node[:planet][:tilelog][:input_directory]
-tilelog_output_directory = node[:planet][:tilelog][:output_directory]
+tilelog_source_directory = node[:tilelog][:source_directory]
+tilelog_input_directory = node[:tilelog][:input_directory]
+tilelog_output_directory = node[:tilelog][:output_directory]
# resources for building the tile analysis binary
git tilelog_source_directory do
"recipe[rsyncd]",
"recipe[openvpn]",
"recipe[git::server]",
- "recipe[planet::tilelog]"
+ "recipe[tilelog]"
)