-
Notifications
You must be signed in to change notification settings - Fork 2
sprinkle
Jakukyo Friel edited this page May 3, 2015
·
2 revisions
- Ruby DSL
- simple
- Deploy via local, ssh, vlad, etc.
- Locally managed. Only need ssh on target machine. (It uses ruby to organize and send shell commands to remote machine.)
package :postgres, :provides => :database do
source 'http://example.com/postgres.tgz'
requires :build_essential
verify { has_executable 'psql' }
end
policy :blog, :roles => :app do
requires :webserver
requires :database
requires :rails
end
deployment do
delivery :vlad do
script 'deploy'
end
# Specify installation options for certain installers.
source do
prefix '/usr/local'
archives '/usr/local/sources'
builds '/usr/local/build'
end
end
Structure:
- deploy.rb
- install.rb
- packages/
- assets/
https://github.com/maxim/sprinkle-cheatsheet/blob/gh-pages/index.md