capitate 0.2.7 → 0.2.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. data/Capfile +0 -4
  2. data/History.txt +9 -2
  3. data/Manifest.txt +4 -32
  4. data/README.txt +8 -1
  5. data/lib/capitate/cap_ext/variables.rb +28 -5
  6. data/lib/capitate/plugins/build.rb +1 -1
  7. data/lib/capitate/version.rb +1 -1
  8. data/lib/deployment/{install-centos-rubyweb.rb → centos-5.1-64-web/install.rb} +62 -34
  9. data/lib/deployment/deploy.rb +1 -3
  10. data/lib/recipes/centos/monit.rb +3 -3
  11. data/lib/recipes/centos/mysql.rb +1 -1
  12. data/lib/recipes/centos/ruby.rb +1 -1
  13. data/lib/recipes/mysql.rb +2 -2
  14. data/lib/recipes/sphinx.rb +5 -5
  15. data/lib/recipes/sshd.rb +25 -0
  16. data/lib/templates/monit/monitrc.erb +0 -10
  17. data/lib/templates/nginx/nginx.conf.erb +1 -0
  18. data/lib/templates/sshd/sshd.monitrc.erb +5 -0
  19. data/website/index.html +9 -8
  20. data/website/index.txt +5 -4
  21. data/website/template.rhtml +2 -2
  22. metadata +6 -64
  23. data/docs/recipes/centos.txt +0 -33
  24. data/docs/recipes/deploy-pending.txt +0 -25
  25. data/docs/recipes/deploy-web.txt +0 -33
  26. data/docs/recipes/deploy.txt +0 -167
  27. data/docs/recipes/docs.txt +0 -26
  28. data/docs/recipes/imagemagick-centos.txt +0 -26
  29. data/docs/recipes/imagemagick.txt +0 -8
  30. data/docs/recipes/index.txt +0 -31
  31. data/docs/recipes/memcached-centos.txt +0 -39
  32. data/docs/recipes/memcached-monit.txt +0 -30
  33. data/docs/recipes/memcached.txt +0 -9
  34. data/docs/recipes/mongrel-cluster-centos.txt +0 -37
  35. data/docs/recipes/mongrel-cluster-monit.txt +0 -37
  36. data/docs/recipes/mongrel-cluster.txt +0 -9
  37. data/docs/recipes/mongrel.txt +0 -9
  38. data/docs/recipes/monit-centos.txt +0 -49
  39. data/docs/recipes/monit.txt +0 -45
  40. data/docs/recipes/mysql-centos.txt +0 -22
  41. data/docs/recipes/mysql-monit.txt +0 -28
  42. data/docs/recipes/mysql.txt +0 -42
  43. data/docs/recipes/nginx-centos.txt +0 -52
  44. data/docs/recipes/nginx-mongrel.txt +0 -33
  45. data/docs/recipes/nginx-monit.txt +0 -26
  46. data/docs/recipes/nginx.txt +0 -10
  47. data/docs/recipes/rails.txt +0 -64
  48. data/docs/recipes/ruby-centos.txt +0 -31
  49. data/docs/recipes/ruby.txt +0 -8
  50. data/docs/recipes/sphinx-centos.txt +0 -56
  51. data/docs/recipes/sphinx-monit.txt +0 -22
  52. data/docs/recipes/sphinx.txt +0 -81
  53. data/lib/capitate/cap_ext/extension_proxy.rb +0 -15
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capitate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ""
6
6
  authors:
7
7
  - Gabriel Handford
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-03-10 00:00:00 -04:00
12
+ date: 2008-03-13 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -33,36 +33,6 @@ extra_rdoc_files:
33
33
  - License.txt
34
34
  - Manifest.txt
35
35
  - README.txt
36
- - docs/recipes/centos.txt
37
- - docs/recipes/deploy-pending.txt
38
- - docs/recipes/deploy-web.txt
39
- - docs/recipes/deploy.txt
40
- - docs/recipes/docs.txt
41
- - docs/recipes/imagemagick-centos.txt
42
- - docs/recipes/imagemagick.txt
43
- - docs/recipes/index.txt
44
- - docs/recipes/memcached-centos.txt
45
- - docs/recipes/memcached-monit.txt
46
- - docs/recipes/memcached.txt
47
- - docs/recipes/mongrel-cluster-centos.txt
48
- - docs/recipes/mongrel-cluster-monit.txt
49
- - docs/recipes/mongrel-cluster.txt
50
- - docs/recipes/mongrel.txt
51
- - docs/recipes/monit-centos.txt
52
- - docs/recipes/monit.txt
53
- - docs/recipes/mysql-centos.txt
54
- - docs/recipes/mysql-monit.txt
55
- - docs/recipes/mysql.txt
56
- - docs/recipes/nginx-centos.txt
57
- - docs/recipes/nginx-mongrel.txt
58
- - docs/recipes/nginx-monit.txt
59
- - docs/recipes/nginx.txt
60
- - docs/recipes/rails.txt
61
- - docs/recipes/ruby-centos.txt
62
- - docs/recipes/ruby.txt
63
- - docs/recipes/sphinx-centos.txt
64
- - docs/recipes/sphinx-monit.txt
65
- - docs/recipes/sphinx.txt
66
36
  - website/index.txt
67
37
  files:
68
38
  - Capfile
@@ -75,39 +45,8 @@ files:
75
45
  - config/hoe.rb
76
46
  - config/requirements.rb
77
47
  - docs/nginx.README
78
- - docs/recipes/centos.txt
79
- - docs/recipes/deploy-pending.txt
80
- - docs/recipes/deploy-web.txt
81
- - docs/recipes/deploy.txt
82
- - docs/recipes/docs.txt
83
- - docs/recipes/imagemagick-centos.txt
84
- - docs/recipes/imagemagick.txt
85
- - docs/recipes/index.txt
86
- - docs/recipes/memcached-centos.txt
87
- - docs/recipes/memcached-monit.txt
88
- - docs/recipes/memcached.txt
89
- - docs/recipes/mongrel-cluster-centos.txt
90
- - docs/recipes/mongrel-cluster-monit.txt
91
- - docs/recipes/mongrel-cluster.txt
92
- - docs/recipes/mongrel.txt
93
- - docs/recipes/monit-centos.txt
94
- - docs/recipes/monit.txt
95
- - docs/recipes/mysql-centos.txt
96
- - docs/recipes/mysql-monit.txt
97
- - docs/recipes/mysql.txt
98
- - docs/recipes/nginx-centos.txt
99
- - docs/recipes/nginx-mongrel.txt
100
- - docs/recipes/nginx-monit.txt
101
- - docs/recipes/nginx.txt
102
- - docs/recipes/rails.txt
103
- - docs/recipes/ruby-centos.txt
104
- - docs/recipes/ruby.txt
105
- - docs/recipes/sphinx-centos.txt
106
- - docs/recipes/sphinx-monit.txt
107
- - docs/recipes/sphinx.txt
108
48
  - lib/capitate.rb
109
49
  - lib/capitate/cap_ext/connections.rb
110
- - lib/capitate/cap_ext/extension_proxy.rb
111
50
  - lib/capitate/cap_ext/roles.rb
112
51
  - lib/capitate/cap_ext/run_via.rb
113
52
  - lib/capitate/cap_ext/variables.rb
@@ -123,8 +62,8 @@ files:
123
62
  - lib/capitate/recipes.rb
124
63
  - lib/capitate/task_node.rb
125
64
  - lib/capitate/version.rb
65
+ - lib/deployment/centos-5.1-64-web/install.rb
126
66
  - lib/deployment/deploy.rb
127
- - lib/deployment/install-centos-rubyweb.rb
128
67
  - lib/recipes/centos/centos.rb
129
68
  - lib/recipes/centos/imagemagick.rb
130
69
  - lib/recipes/centos/memcached.rb
@@ -142,6 +81,7 @@ files:
142
81
  - lib/recipes/nginx.rb
143
82
  - lib/recipes/rails.rb
144
83
  - lib/recipes/sphinx.rb
84
+ - lib/recipes/sshd.rb
145
85
  - lib/templates/capistrano/Capfile
146
86
  - lib/templates/memcached/memcached.initd.centos.erb
147
87
  - lib/templates/memcached/memcached.monitrc.erb
@@ -164,6 +104,7 @@ files:
164
104
  - lib/templates/sphinx/sphinx.conf.erb
165
105
  - lib/templates/sphinx/sphinx.monitrc.erb
166
106
  - lib/templates/sphinx/sphinx_app.initd.centos.erb
107
+ - lib/templates/sshd/sshd.monitrc.erb
167
108
  - script/destroy
168
109
  - script/generate
169
110
  - script/txt2html
@@ -174,6 +115,7 @@ files:
174
115
  - test/test_helper.rb
175
116
  - test/test_plugin_upload.rb
176
117
  - test/test_recipes.rb
118
+ - test/test_roles.rb
177
119
  - test/test_templates.rb
178
120
  - website/index.html
179
121
  - website/index.txt
@@ -1,33 +0,0 @@
1
- h1. centos
2
-
3
- "home":../index.html > "recipes":index.html > centos
4
-
5
-
6
- h2. Tasks
7
-
8
- * "centos:add_user":#centos:add_user
9
-
10
-
11
- h2. Task documentation
12
-
13
- h3(#centos:add_user). centos:add_user
14
-
15
- Add user and set user password for application. Adds user to specified groups.
16
-
17
- *user_add*: User to add.
18
-
19
- @set :user_add, "app_user"@
20
- *groups*: Groups for user to be in. _Defaults to none_
21
-
22
- @set :groups, "admin,foo"@
23
-
24
- *home*: Home directory for user. _Defaults to <tt>:deploy_to</tt> setting_
25
-
26
- @set :home, "/var/www/apps/app_name"@
27
-
28
- *home_readable*: Whether home permissions are readable by all. Needed if using deploy dir as home. _Defaults to true_
29
-
30
- @set :home_readable, true@
31
-
32
-
33
-
@@ -1,25 +0,0 @@
1
- h1. deploy:pending
2
-
3
- "home":../index.html > "recipes":index.html > "deploy":deploy.html > pending
4
-
5
-
6
- h2. Tasks
7
-
8
- * "deploy:pending":#deploy:pending
9
- * "deploy:pending:diff":#deploy:pending:diff
10
-
11
-
12
- h2. Task documentation
13
-
14
- h3(#deploy:pending). deploy:pending
15
-
16
- Displays the commits since your last deploy. This is good for a summary of the changes that have occurred since the last deploy. Note that this might not be supported on all SCM's.
17
-
18
-
19
-
20
- h3(#deploy:pending:diff). deploy:pending:diff
21
-
22
- Displays the `diff' since your last deploy. This is useful if you want to examine what changes are about to be deployed. Note that this might not be supported on all SCM's.
23
-
24
-
25
-
@@ -1,33 +0,0 @@
1
- h1. deploy:web
2
-
3
- "home":../index.html > "recipes":index.html > "deploy":deploy.html > web
4
-
5
-
6
- h2. Tasks
7
-
8
- * "deploy:web:disable":#deploy:web:disable
9
- * "deploy:web:enable":#deploy:web:enable
10
-
11
-
12
- h2. Task documentation
13
-
14
- h3(#deploy:web:disable). deploy:web:disable
15
-
16
- Present a maintenance page to visitors. Disables your application's web interface by writing a "maintenance.html" file to each web server. The servers must be configured to detect the presence of this file, and if it is present, always display it instead of performing the request.
17
-
18
- By default, the maintenance page will just say the site is down for "maintenance", and will be back "shortly", but you can customize the page by specifying the REASON and UNTIL environment variables:
19
-
20
- $ cap deploy:web:disable \
21
- REASON="hardware upgrade" \
22
- UNTIL="12pm Central Time"
23
-
24
- Further customization will require that you write your own task.
25
-
26
-
27
-
28
- h3(#deploy:web:enable). deploy:web:enable
29
-
30
- Makes the application web-accessible again. Removes the "maintenance.html" page generated by deploy:web:disable, which (if your web servers are configured correctly) will make your application web-accessible again.
31
-
32
-
33
-
@@ -1,167 +0,0 @@
1
- h1. deploy
2
-
3
- "home":../index.html > "recipes":index.html > deploy
4
-
5
-
6
- h2. Namespaces
7
-
8
- * "deploy:pending":deploy-pending.html (2)
9
- * "deploy:web":deploy-web.html (2)
10
-
11
-
12
- h2. Tasks
13
-
14
- * "deploy":#deploy
15
- * "deploy:check":#deploy:check
16
- * "deploy:cleanup":#deploy:cleanup
17
- * "deploy:cold":#deploy:cold
18
- * "deploy:finalize_update":#deploy:finalize_update
19
- * "deploy:migrate":#deploy:migrate
20
- * "deploy:migrations":#deploy:migrations
21
- * "deploy:restart":#deploy:restart
22
- * "deploy:rollback":#deploy:rollback
23
- * "deploy:rollback_code":#deploy:rollback_code
24
- * "deploy:setup":#deploy:setup
25
- * "deploy:start":#deploy:start
26
- * "deploy:stop":#deploy:stop
27
- * "deploy:symlink":#deploy:symlink
28
- * "deploy:update":#deploy:update
29
- * "deploy:update_code":#deploy:update_code
30
- * "deploy:upload":#deploy:upload
31
-
32
-
33
- h2. Task documentation
34
-
35
- h3(#deploy). deploy
36
-
37
- Deploys your project. This calls both `update' and `restart'. Note that this will generally only work for applications that have already been deployed once. For a "cold" deploy, you'll want to take a look at the `deploy:cold' task, which handles the cold start specifically.
38
-
39
-
40
-
41
- h3(#deploy:check). deploy:check
42
-
43
- Test deployment dependencies. Checks things like directory permissions, necessary utilities, and so forth, reporting on the things that appear to be incorrect or missing. This is good for making sure a deploy has a chance of working before you actually run `cap deploy'.
44
-
45
- You can define your own dependencies, as well, using the `depend' method:
46
-
47
- depend :remote, :gem, "tzinfo", ">=0.3.3"
48
- depend :local, :command, "svn"
49
- depend :remote, :directory, "/u/depot/files"
50
-
51
-
52
-
53
- h3(#deploy:cleanup). deploy:cleanup
54
-
55
- Clean up old releases. By default, the last 5 releases are kept on each server (though you can change this with the keep_releases variable). All other deployed revisions are removed from the servers. By default, this will use sudo to clean up the old releases, but if sudo is not available for your environment, set the :use_sudo variable to false instead.
56
-
57
-
58
-
59
- h3(#deploy:cold). deploy:cold
60
-
61
- Deploys and starts a `cold' application. This is useful if you have not deployed your application before, or if your application is (for some other reason) not currently running. It will deploy the code, run any pending migrations, and then instead of invoking `deploy:restart', it will invoke `deploy:start' to fire up the application servers.
62
-
63
-
64
-
65
- h3(#deploy:finalize_update). deploy:finalize_update
66
-
67
- [internal] Touches up the released code. This is called by update_code after the basic deploy finishes. It assumes a Rails project was deployed, so if you are deploying something else, you may want to override this task with your own environment's requirements.
68
-
69
- This task will make the release group-writable (if the :group_writable variable is set to true, which is the default). It will then set up symlinks to the shared directory for the log, system, and tmp/pids directories, and will lastly touch all assets in public/images, public/stylesheets, and public/javascripts so that the times are consistent (so that asset timestamping works).
70
-
71
-
72
-
73
- h3(#deploy:migrate). deploy:migrate
74
-
75
- Run the migrate rake task. By default, it runs this in most recently deployed version of the app. However, you can specify a different release via the migrate_target variable, which must be one of :latest (for the default behavior), or :current (for the release indicated by the `current' symlink). Strings will work for those values instead of symbols, too. You can also specify additional environment variables to pass to rake via the migrate_env variable. Finally, you can specify the full path to the rake executable by setting the rake variable. The defaults are:
76
-
77
- set :rake, "rake"
78
- set :rails_env, "production"
79
- set :migrate_env, ""
80
- set :migrate_target, :latest
81
-
82
-
83
-
84
- h3(#deploy:migrations). deploy:migrations
85
-
86
- Deploy and run pending migrations. This will work similarly to the `deploy' task, but will also run any pending migrations (via the `deploy:migrate' task) prior to updating the symlink. Note that the update in this case it is not atomic, and transactions are not used, because migrations are not guaranteed to be reversible.
87
-
88
-
89
-
90
- h3(#deploy:restart). deploy:restart
91
-
92
- Restarts your application. This works by calling the script/process/reaper script under the current path.
93
-
94
- By default, this will be invoked via sudo as the `app' user. If you wish to run it as a different user, set the :runner variable to that user. If you are in an environment where you can't use sudo, set the :use_sudo variable to false:
95
-
96
- set :use_sudo, false
97
-
98
-
99
-
100
- h3(#deploy:rollback). deploy:rollback
101
-
102
- Rolls back to a previous version and restarts. This is handy if you ever discover that you've deployed a lemon; `cap rollback' and you're right back where you were, on the previously deployed version.
103
-
104
-
105
-
106
- h3(#deploy:rollback_code). deploy:rollback_code
107
-
108
- Rolls back to the previously deployed version. The `current' symlink will be updated to point at the previously deployed version, and then the current release will be removed from the servers. You'll generally want to call `rollback' instead, as it performs a `restart' as well.
109
-
110
-
111
-
112
- h3(#deploy:setup). deploy:setup
113
-
114
- Prepares one or more servers for deployment. Before you can use any of the Capistrano deployment tasks with your project, you will need to make sure all of your servers have been prepared with `cap deploy:setup'. When you add a new server to your cluster, you can easily run the setup task on just that server by specifying the HOSTS environment variable:
115
-
116
- $ cap HOSTS=new.server.com deploy:setup
117
-
118
- It is safe to run this task on servers that have already been set up; it will not destroy any deployed revisions or data.
119
-
120
-
121
-
122
- h3(#deploy:start). deploy:start
123
-
124
- Start the application servers. This will attempt to invoke a script in your application called `script/spin', which must know how to start your application listeners. For Rails applications, you might just have that script invoke `script/process/spawner' with the appropriate arguments.
125
-
126
- By default, the script will be executed via sudo as the `app' user. If you wish to run it as a different user, set the :runner variable to that user. If you are in an environment where you can't use sudo, set the :use_sudo variable to false.
127
-
128
-
129
-
130
- h3(#deploy:stop). deploy:stop
131
-
132
- Stop the application servers. This will call script/process/reaper for both the spawner process, and all of the application processes it has spawned. As such, it is fairly Rails specific and may need to be overridden for other systems.
133
-
134
- By default, the script will be executed via sudo as the `app' user. If you wish to run it as a different user, set the :runner variable to that user. If you are in an environment where you can't use sudo, set the :use_sudo variable to false.
135
-
136
-
137
-
138
- h3(#deploy:symlink). deploy:symlink
139
-
140
- Updates the symlink to the most recently deployed version. Capistrano works by putting each new release of your application in its own directory. When you deploy a new version, this task's job is to update the `current' symlink to point at the new version. You will rarely need to call this task directly; instead, use the `deploy' task (which performs a complete deploy, including `restart') or the 'update' task (which does everything except `restart').
141
-
142
-
143
-
144
- h3(#deploy:update). deploy:update
145
-
146
- Copies your project and updates the symlink. It does this in a transaction, so that if either `update_code' or `symlink' fail, all changes made to the remote servers will be rolled back, leaving your system in the same state it was in before `update' was invoked. Usually, you will want to call `deploy' instead of `update', but `update' can be handy if you want to deploy, but not immediately restart your application.
147
-
148
-
149
-
150
- h3(#deploy:update_code). deploy:update_code
151
-
152
- Copies your project to the remote servers. This is the first stage of any deployment; moving your updated code and assets to the deployment servers. You will rarely call this task directly, however; instead, you should call the `deploy' task (to do a complete deploy) or the `update' task (if you want to perform the `restart' task separately).
153
-
154
- You will need to make sure you set the :scm variable to the source control software you are using (it defaults to :subversion), and the :deploy_via variable to the strategy you want to use to deploy (it defaults to :checkout).
155
-
156
-
157
-
158
- h3(#deploy:upload). deploy:upload
159
-
160
- Copy files to the currently deployed version. This is useful for updating files piecemeal, such as when you need to quickly deploy only a single file. Some files, such as updated templates, images, or stylesheets, might not require a full deploy, and especially in emergency situations it can be handy to just push the updates to production, quickly.
161
-
162
- To use this task, specify the files and directories you want to copy as a comma-delimited list in the FILES environment variable. All directories will be processed recursively, with all files being pushed to the deployment servers. Any file or directory starting with a '.' character will be ignored.
163
-
164
- $ cap deploy:upload FILES=templates,controller.rb
165
-
166
-
167
-
@@ -1,26 +0,0 @@
1
- h1. docs
2
-
3
- "home":../index.html > "recipes":index.html > docs
4
-
5
-
6
- h2. Tasks
7
-
8
- * "docs:recipes":#docs:recipes
9
-
10
-
11
- h2. Task documentation
12
-
13
- h3(#docs:recipes). docs:recipes
14
-
15
- Generate documentation for all currently loaded recipes. Assumes textile formatting.
16
-
17
- *docs_recipes_dir*: Destination directory. _Defaults to "docs/recipes"_
18
-
19
- @set :docs_recipes_dir, "docs/recipes"@
20
-
21
- *docs_recipes_clear*: Whether to clear destination before generating.
22
-
23
- @set :docs_recipes_clear, true@
24
-
25
-
26
-
@@ -1,26 +0,0 @@
1
- h1. imagemagick:centos
2
-
3
- "home":../index.html > "recipes":index.html > "imagemagick":imagemagick.html > centos
4
-
5
-
6
- h2. Tasks
7
-
8
- * "imagemagick:centos:install":#imagemagick:centos:install
9
-
10
-
11
- h2. Task documentation
12
-
13
- h3(#imagemagick:centos:install). imagemagick:centos:install
14
-
15
- Install imagemagick.
16
-
17
- *imagemagick_build_options*: Imagemagick build options.
18
- <pre>
19
- set :imagemagick_build_options, {
20
- :url => "ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz",
21
- :unpack_dir => "ImageMagick-*"
22
- }
23
- </pre>
24
-
25
-
26
-
@@ -1,8 +0,0 @@
1
- h1. imagemagick
2
-
3
- "home":../index.html > "recipes":index.html > imagemagick
4
-
5
-
6
- h2. Namespaces
7
-
8
- * "imagemagick:centos":imagemagick-centos.html (1)
@@ -1,31 +0,0 @@
1
- h1. Recipes
2
-
3
- "home":../index.html > "recipes":index.html >
4
-
5
-
6
- h2. Namespaces
7
-
8
- * "centos":centos.html (1)
9
- * "deploy":deploy.html (17)
10
- * "deploy:pending":deploy-pending.html (2)
11
- * "deploy:web":deploy-web.html (2)
12
- * "docs":docs.html (1)
13
- * "imagemagick:centos":imagemagick-centos.html (1)
14
- * "install":install.html (2)
15
- * "memcached:centos":memcached-centos.html (1)
16
- * "memcached:monit":memcached-monit.html (1)
17
- * "mongrel-cluster:centos":mongrel-cluster-centos.html (1)
18
- * "mongrel-cluster:monit":mongrel-cluster-monit.html (1)
19
- * "monit":monit.html (3)
20
- * "monit:centos":monit-centos.html (2)
21
- * "mysql":mysql.html (1)
22
- * "mysql:centos":mysql-centos.html (1)
23
- * "mysql:monit":mysql-monit.html (1)
24
- * "nginx:centos":nginx-centos.html (2)
25
- * "nginx:mongrel":nginx-mongrel.html (1)
26
- * "nginx:monit":nginx-monit.html (1)
27
- * "rails":rails.html (5)
28
- * "ruby:centos":ruby-centos.html (1)
29
- * "sphinx":sphinx.html (4)
30
- * "sphinx:centos":sphinx-centos.html (3)
31
- * "sphinx:monit":sphinx-monit.html (1)
@@ -1,39 +0,0 @@
1
- h1. memcached:centos
2
-
3
- "home":../index.html > "recipes":index.html > "memcached":memcached.html > centos
4
-
5
-
6
- h2. Tasks
7
-
8
- * "memcached:centos:install":#memcached:centos:install
9
-
10
-
11
- h2. Task documentation
12
-
13
- h3(#memcached:centos:install). memcached:centos:install
14
-
15
- Install memcached.
16
-
17
- *memcached_build_options*: Memcached build options.
18
-
19
- <pre>
20
- set :memcached_build_options, {
21
- :url => "http://www.danga.com/memcached/dist/memcached-1.2.4.tar.gz",
22
- :configure_options => "--prefix=/usr/local"
23
- }
24
- </pre>
25
-
26
- *memcached_memory*: Memcached memory (in MB).
27
-
28
- @set :memcached_memory, 64@
29
-
30
- *memcached_pid_path*: Path to memcached pid file. Defaults to /var/run/memcached.pid
31
-
32
- @set :memcached_pid_path, "/var/run/memcached.pid"@
33
-
34
- *memcached_port*: Memcached port. Defaults to 11211.
35
-
36
- @set :memcached_port, 11211@
37
-
38
-
39
-
@@ -1,30 +0,0 @@
1
- h1. memcached:monit
2
-
3
- "home":../index.html > "recipes":index.html > "memcached":memcached.html > monit
4
-
5
-
6
- h2. Tasks
7
-
8
- * "memcached:monit:install":#memcached:monit:install
9
-
10
-
11
- h2. Task documentation
12
-
13
- h3(#memcached:monit:install). memcached:monit:install
14
-
15
- Generate and install memcached monitrc.
16
-
17
- *memcached_pid_path*: Path to memcached pid file. _Defaults to /var/run/memcached.pid_
18
-
19
- @set :memcached_pid_path, "/var/run/memcached.pid"@
20
-
21
- *memcached_port*: Memcached port. _Defaults to 11211_
22
-
23
- @set :memcached_port, 11211@
24
-
25
- *monit_conf_dir*: Destination for monitrc. _Defaults to "/etc/monit"_
26
-
27
- @set :monit_conf_dir, "/etc/monit"@
28
-
29
-
30
-
@@ -1,9 +0,0 @@
1
- h1. memcached
2
-
3
- "home":../index.html > "recipes":index.html > memcached
4
-
5
-
6
- h2. Namespaces
7
-
8
- * "memcached:centos":memcached-centos.html (1)
9
- * "memcached:monit":memcached-monit.html (1)
@@ -1,37 +0,0 @@
1
- h1. mongrel-cluster:centos
2
-
3
- "home":../index.html > "recipes":index.html > "mongrel-cluster":mongrel-cluster.html > centos
4
-
5
-
6
- h2. Tasks
7
-
8
- * "mongrel:cluster:centos:setup":#mongrel:cluster:centos:setup
9
-
10
-
11
- h2. Task documentation
12
-
13
- h3(#mongrel:cluster:centos:setup). mongrel:cluster:centos:setup
14
-
15
- Create mongrel cluster.
16
-
17
- *mongrel_size*: Number of mongrels.
18
-
19
- @set :mongrel_size, 3@
20
-
21
- *mongrel_port*: Starting port for mongrels. If there are 3 mongrels with port 9000,
22
- then instances will be at 9000, 9001, and 9002
23
-
24
- @set :mongrel_port, 9000@
25
-
26
- *mongrel_config_dir*: Directory for mongrel config. _Defaults to "[shared_path]/config/mongrel"_
27
- *mongrel_pid_dir*: Directory for mongrel pids. _Defaults to "[shared_path]/pids"
28
- *mongrel_config_script*: Config script to load with mongrel. _Defaults to nil_
29
-
30
- @set :mongrel_config_script, "config/mongrel_handler.rb"@
31
-
32
- *mongrel_cluster_command*: Mongrel cluster command. _Defaults to mongrel_cluster_ctl_
33
- *mongrel_initscript_name*: Mongrel initscript name. _Defaults to mongrel_cluster_#{application}_
34
- *mongrel_config_options*: Config options appended to cluster yml. _Defaults to <tt>{}</tt>_
35
-
36
-
37
-
@@ -1,37 +0,0 @@
1
- h1. mongrel-cluster:monit
2
-
3
- "home":../index.html > "recipes":index.html > "mongrel-cluster":mongrel-cluster.html > monit
4
-
5
-
6
- h2. Tasks
7
-
8
- * "mongrel:cluster:monit:setup":#mongrel:cluster:monit:setup
9
-
10
-
11
- h2. Task documentation
12
-
13
- h3(#mongrel:cluster:monit:setup). mongrel:cluster:monit:setup
14
-
15
- Create monit configuration for mongrel cluster.
16
-
17
- *mongrel_application*: Name of application (monit group). _Defaults to <tt>"mongrel_cluster_#{fetch(:application)}"</tt>_
18
- *mongrel_bin_path*: Path to mongrel command. _Defaults to <tt>/usr/bin/mongrel_rails</tt>_
19
- *mongrel_size*: Number of mongrels.
20
-
21
- @set :mongrel_size, 3@
22
-
23
- *mongrel_port*: Starting port for mongrels. If there are 3 mongrels with port 9000, then instances
24
- will be at 9000, 9001, and 9002
25
-
26
- @set :mongrel_port, 9000@
27
-
28
- *mongrel_config_script*: Config script to load with mongrel. _Defaults to nil_
29
-
30
- @set :mongrel_config_script, "config/mongrel_handler.rb"@
31
-
32
- *monit_conf_dir*: Destination for monitrc. _Defaults to "/etc/monit"_
33
-
34
- @set :monit_conf_dir, "/etc/monit"@
35
-
36
-
37
-
@@ -1,9 +0,0 @@
1
- h1. mongrel:cluster
2
-
3
- "home":../index.html > "recipes":index.html > "mongrel":mongrel.html > cluster
4
-
5
-
6
- h2. Namespaces
7
-
8
- * "mongrel-cluster:centos":mongrel-cluster-centos.html (1)
9
- * "mongrel-cluster:monit":mongrel-cluster-monit.html (1)
@@ -1,9 +0,0 @@
1
- h1. mongrel
2
-
3
- "home":../index.html > "recipes":index.html > mongrel
4
-
5
-
6
- h2. Namespaces
7
-
8
- * "mongrel-cluster:centos":mongrel-cluster-centos.html (1)
9
- * "mongrel-cluster:monit":mongrel-cluster-monit.html (1)