public
Rubygem
Description: Sprinkle is a software provisioning tool you can use to build remote servers with. eg. to install a Rails or Merb stack on a brand new slice directly after its been created
Homepage: http://sprinkle.rubyforge.org/
Clone URL: git://github.com/crafterm/sprinkle.git
added examples for version control in the 'scm' folder
added git to the Rails script as scm provider
updated README with git example
adzap (author)
Tue Jul 22 23:16:03 -0700 2008
commit  664e9daeb5847e8025664451b5bdce15b274b8b2
tree    61520edc0d2dd426b21b3cdd9968cb8f6d688c10
parent  d53a79e4e2fa9d42bab93050a6be8643600f23fe
...
66
67
68
69
 
 
70
71
72
73
74
75
 
 
 
76
77
78
...
154
155
156
 
 
 
 
 
 
 
 
 
 
 
 
157
158
159
...
167
168
169
 
170
171
172
...
66
67
68
 
69
70
71
72
73
 
 
 
74
75
76
77
78
79
...
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
...
180
181
182
183
184
185
186
0
@@ -66,13 +66,14 @@ remote hosts. Currently Sprinkle supports the use of Capistrano or Vlad to issue
0
 but could also be extended to use any other command transport mechanism or be used to simply issue installation
0
 commands on the local system.
0
 
0
-An full example Sprinkle deployment script for deploying Rails (via gems), MySQL (via APT), and Apache (via source):
0
+An full example Sprinkle deployment script for deploying Rails (via gems), MySQL (via APT), Apache (via source)
0
+and Git (via source with dependencies from APT):
0
 
0
     # Sprinkle Rails deployment script
0
     #
0
- # This is an example Sprinkle script, configured to install Rails from gems, Apache and Ruby from source,
0
- # and mysql from apt on an Ubuntu system. Installation is configured to run via Capistrano (and
0
- # an accompanying deploy.rb recipe script). Source based packages are downloaded and built into
0
+ # This is an example Sprinkle script, configured to install Rails from gems, Apache, Ruby and Git from source,
0
+ # and mysql and Git dependencies from apt on an Ubuntu system. Installation is configured to run via
0
+ # Capistrano (and an accompanying deploy.rb recipe script). Source based packages are downloaded and built into
0
     # /usr/local on the remote system.
0
     #
0
     # A sprinkle script is separated into 3 different sections. Packages, policies and deployment.
0
@@ -154,6 +155,18 @@ An full example Sprinkle deployment script for deploying Rails (via gems), MySQL
0
       version '1.0.5'
0
       requires :mongrel
0
     end
0
+
0
+ package :git, :provides => :scm do
0
+ description 'Git Distributed Version Control'
0
+ version '1.5.6.3'
0
+ source "http://kernel.org/pub/software/scm/git/git-#{version}.tar.gz"
0
+ requires :git_dependencies
0
+ end
0
+
0
+ package :git_dependencies do
0
+ description 'Git Build Dependencies'
0
+ apt 'git', :dependencies_only => true
0
+ end
0
 
0
     # Policies
0
 
0
@@ -167,6 +180,7 @@ An full example Sprinkle deployment script for deploying Rails (via gems), MySQL
0
       requires :appserver
0
       requires :database
0
       requires :webserver
0
+ requires :scm
0
     end
0
 
0
     # Deployment
...
2
3
4
5
6
 
 
7
8
9
...
22
23
24
 
25
26
27
...
39
40
41
 
42
43
44
...
2
3
4
 
 
5
6
7
8
9
...
22
23
24
25
26
27
28
...
40
41
42
43
44
45
46
0
@@ -2,8 +2,8 @@
0
 
0
 # Annotated Example Sprinkle Rails deployment script
0
 #
0
-# This is an example Sprinkle script configured to install Rails from gems, Apache, Ruby and
0
-# Sphinx from source, and mysql from apt on an Ubuntu system.
0
+# This is an example Sprinkle script configured to install Rails from gems, Apache, Ruby,
0
+# Sphinx and Git from source, and mysql and Git dependencies from apt on an Ubuntu system.
0
 #
0
 # Installation is configured to run via capistrano (and an accompanying deploy.rb recipe script).
0
 # Source based packages are downloaded and built into /usr/local on the remote system.
0
@@ -22,6 +22,7 @@ require 'packages/rails'
0
 require 'packages/database'
0
 require 'packages/server'
0
 require 'packages/search'
0
+require 'packages/scm'
0
 
0
 
0
 # Policies
0
@@ -39,6 +40,7 @@ policy :rails, :roles => :app do
0
   requires :database
0
   requires :webserver
0
   requires :search
0
+ requires :scm
0
 end
0
 
0
 

Comments

    No one has commented yet.