Installs tilestache running under gunicorn, provides a vagrant environment for iterative testing
include_recipe 'tilestache'
It's recommended that you use a wrapper cookbook with tilestache. The setup
is very simple: a single recipe that does an include_recipe tilestache
,
and provides a template to be placed in default[:tilestache][:cfg_path]
.
Tested on Ubuntu12.04LTS. You can probably get away with distributions similar to those, but as yet they have not been tested.
- Chef >= 11.4
- Vagrant 2
Installs and configures the gunicorn server
- default: true
Ulimit setting for open files permitted to the user configured to run tilestache (default: 20480)
How we should install tilestache: git, pip or pip_requirements
- default: pip
Base location that will house conf/tilecache.cfg
- default: /opt/tilestache
User to run tilestache as
- default: tilestache
Numeric ID for tilestache user
- default: nil
Numeric ID for tilestache group
- default: nil
Shell for your tilestache user
- default: /bin/false
Whether to generate ssh keys for your tilestache user
- default: false
Group to run tilestache as
- default: tilestache
Version of gunicorn to install
- default: 17.5
Number of pending requests to allow to queue
- default: 100
Keepalive request timeout
- default: 60
Max number of requests a worker will serve before restarting
- default: 100
Location of the gunicorn pid file
- default: /var/run/tilestache/gunicorn.pid
Location of the gunicorn log directory
- default: /var/log/tilestache
Name of the gunicorn log file
- default: gunicorn.log
Port to listen on
- default: 8000
Request timeout interval
- default: 300
Gunicorn worker class
- default: tornado
- NOTE: not tested with any other classes
Preload application code before forking new processes
- default: false
Number of workers to spawn
- default: node.cpu.total
- gunicorn, python, ulimit, user
vagrant plugin install vagrant-berkshelf
bundle install
berks install
vagrant up
vagrant ssh
- installed berkshelf, installed our cookbook dependencies, and booted a virtualbox machine
- access the running tilestache instance: via http://localhost:8000
- well then sir, provision an Ubuntu12.04 LTS system with the provider of your choice, and then bootstrap with chef-solo:
knife solo bootstrap root@${host} -r 'recipe[tilestache]'
- and re-cook with the following:
knife solo cook root@${host} -r 'recipe[tilestache]'
- alternatively, you can add the tilestache cookbook to your chef server and wrap it as you see fit
- only been tested on my laptop!!! (just kidding... mostly)
- for realz, only been tested on Ubuntu12.04LTS
Fork, create a feature branch, send a pull! Weeee...
- License: GPL
- Authors: grant@mapzen.com