ncolomer / osmosis-chef-cookbook

An Opscode Chef cookbook that automatically install OpenStreetMap's Osmosis tool on a Chef-managed node

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

osmosis-chef-cookbook

An Opscode Chef cookbook that automatically install OpenStreetMap's Osmosis tool on a Chef-managed node


Description

This cookbook installs and configure Osmosis on a Chef-managed node.

The cookbook downloads the Osmosis build from build page and unzips it to the installation directory (default: /opt/osmosis/).

It adds the $OSMOSIS_HOME/bin/osmosis executable to the $PATH for all users. Thus, you can play with it as soon as your node is up and running!

Please note that as a Java application, Osmosis requires a working JRE on the target node.

Requirements

This cookboock requires the ark provider to run as expected.

Attributes

See attributes/default.rb for default values.

  • node["osmosis"]["version"] - The version of Osmosis build to install. See the dedicated build page to find the latest version.
  • node["osmosis"]["checksum"] - The sha256 checksum of the build file to download. You should compute it using something like shasum -a 256.
  • node["osmosis"]["path"] - The Osmosis installation path.
  • node["osmosis"]["java_opts"] - The Osmosis Java options. See the dedicated tuning page.
  • node["osmosis"]["plugins"] - An array of JSON object containing jar_url, jar_checksum and plugin_loader keys.

Usage

Simply include the osmosis recipe wherever you would like Osmosis installed.

To install Osmosis plugins, override the node["osmosis"]["plugins"] attribute within role:

name "osmosis"
description "Install Osmosis"
run_list(
  "recipe[osmosis]"
)
override_attributes(
  :osmosis => {
    :plugins => [
      {
        :jar_url => "https://github.com/downloads/ncolomer/elasticsearch-osmosis-plugin/elasticsearch-osmosis-plugin-1.2.0.jar",
        :jar_checksum => "59bf1d755846a10bc5bcf4230ace5d589e410da28fb142d0566e232ad7d18e25"
        :plugin_loader => "org.openstreetmap.osmosis.plugin.elasticsearch.ElasticSearchWriterPluginLoader"
      }
    ]
  }
)

About

An Opscode Chef cookbook that automatically install OpenStreetMap's Osmosis tool on a Chef-managed node


Languages

Language:Ruby 100.0%