capitate 0.2.7 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
- data/Capfile +0 -4
- data/History.txt +9 -2
- data/Manifest.txt +4 -32
- data/README.txt +8 -1
- data/lib/capitate/cap_ext/variables.rb +28 -5
- data/lib/capitate/plugins/build.rb +1 -1
- data/lib/capitate/version.rb +1 -1
- data/lib/deployment/{install-centos-rubyweb.rb → centos-5.1-64-web/install.rb} +62 -34
- data/lib/deployment/deploy.rb +1 -3
- data/lib/recipes/centos/monit.rb +3 -3
- data/lib/recipes/centos/mysql.rb +1 -1
- data/lib/recipes/centos/ruby.rb +1 -1
- data/lib/recipes/mysql.rb +2 -2
- data/lib/recipes/sphinx.rb +5 -5
- data/lib/recipes/sshd.rb +25 -0
- data/lib/templates/monit/monitrc.erb +0 -10
- data/lib/templates/nginx/nginx.conf.erb +1 -0
- data/lib/templates/sshd/sshd.monitrc.erb +5 -0
- data/website/index.html +9 -8
- data/website/index.txt +5 -4
- data/website/template.rhtml +2 -2
- metadata +6 -64
- data/docs/recipes/centos.txt +0 -33
- data/docs/recipes/deploy-pending.txt +0 -25
- data/docs/recipes/deploy-web.txt +0 -33
- data/docs/recipes/deploy.txt +0 -167
- data/docs/recipes/docs.txt +0 -26
- data/docs/recipes/imagemagick-centos.txt +0 -26
- data/docs/recipes/imagemagick.txt +0 -8
- data/docs/recipes/index.txt +0 -31
- data/docs/recipes/memcached-centos.txt +0 -39
- data/docs/recipes/memcached-monit.txt +0 -30
- data/docs/recipes/memcached.txt +0 -9
- data/docs/recipes/mongrel-cluster-centos.txt +0 -37
- data/docs/recipes/mongrel-cluster-monit.txt +0 -37
- data/docs/recipes/mongrel-cluster.txt +0 -9
- data/docs/recipes/mongrel.txt +0 -9
- data/docs/recipes/monit-centos.txt +0 -49
- data/docs/recipes/monit.txt +0 -45
- data/docs/recipes/mysql-centos.txt +0 -22
- data/docs/recipes/mysql-monit.txt +0 -28
- data/docs/recipes/mysql.txt +0 -42
- data/docs/recipes/nginx-centos.txt +0 -52
- data/docs/recipes/nginx-mongrel.txt +0 -33
- data/docs/recipes/nginx-monit.txt +0 -26
- data/docs/recipes/nginx.txt +0 -10
- data/docs/recipes/rails.txt +0 -64
- data/docs/recipes/ruby-centos.txt +0 -31
- data/docs/recipes/ruby.txt +0 -8
- data/docs/recipes/sphinx-centos.txt +0 -56
- data/docs/recipes/sphinx-monit.txt +0 -22
- data/docs/recipes/sphinx.txt +0 -81
- data/lib/capitate/cap_ext/extension_proxy.rb +0 -15
@@ -1,49 +0,0 @@
|
|
1
|
-
h1. monit:centos
|
2
|
-
|
3
|
-
"home":../index.html > "recipes":index.html > "monit":monit.html > centos
|
4
|
-
|
5
|
-
|
6
|
-
h2. Tasks
|
7
|
-
|
8
|
-
* "monit:centos:install":#monit:centos:install
|
9
|
-
* "monit:centos:iptables":#monit:centos:iptables
|
10
|
-
|
11
|
-
|
12
|
-
h2. Task documentation
|
13
|
-
|
14
|
-
h3(#monit:centos:install). monit:centos:install
|
15
|
-
|
16
|
-
Install monit.
|
17
|
-
|
18
|
-
*monit_build_options*: Monit build options.
|
19
|
-
|
20
|
-
@set :monit_build_options, { :url => "http://www.tildeslash.com/monit/dist/monit-4.10.1.tar.gz" }@
|
21
|
-
|
22
|
-
*monit_port*: Monit port. _Defaults to 2812_
|
23
|
-
|
24
|
-
@set :monit_port, 2812@
|
25
|
-
|
26
|
-
*monit_password*: Monit password. _Defaults to password prompt_
|
27
|
-
|
28
|
-
@set :monit_password, prompt.password('Monit admin password (to set): ')@
|
29
|
-
|
30
|
-
*monit_conf_dir*: Directory for monitrc files.
|
31
|
-
|
32
|
-
@set :monit_conf_dir, "/etc/monit"@
|
33
|
-
|
34
|
-
*monit_pid_path*: Path to monit pid.
|
35
|
-
|
36
|
-
@set :monit_pid_path, "/var/run/monit.pid"@
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
h3(#monit:centos:iptables). monit:centos:iptables
|
41
|
-
|
42
|
-
Install monit firewall rule.
|
43
|
-
|
44
|
-
*monit_port*: Monit port. _Defaults to 2812_
|
45
|
-
|
46
|
-
@set :monit_port, 2812@
|
47
|
-
|
48
|
-
|
49
|
-
|
data/docs/recipes/monit.txt
DELETED
@@ -1,45 +0,0 @@
|
|
1
|
-
h1. monit
|
2
|
-
|
3
|
-
"home":../index.html > "recipes":index.html > monit
|
4
|
-
|
5
|
-
|
6
|
-
h2. Namespaces
|
7
|
-
|
8
|
-
* "monit:centos":monit-centos.html (2)
|
9
|
-
|
10
|
-
|
11
|
-
h2. Tasks
|
12
|
-
|
13
|
-
* "monit:monitor_all":#monit:monitor_all
|
14
|
-
* "monit:restart":#monit:restart
|
15
|
-
* "monit:unmonitor_all":#monit:unmonitor_all
|
16
|
-
|
17
|
-
|
18
|
-
h2. Task documentation
|
19
|
-
|
20
|
-
h3(#monit:monitor_all). monit:monitor_all
|
21
|
-
|
22
|
-
Monitor all.
|
23
|
-
|
24
|
-
*monit_bin_path*: Path to monit bin. _Defaults to <tt>monit</tt>_
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
h3(#monit:restart). monit:restart
|
29
|
-
|
30
|
-
Restart (HUP) monit process.
|
31
|
-
|
32
|
-
HUP's the process from the pid file, if it exists.
|
33
|
-
|
34
|
-
*monit_pid_path*: Path to monit pid file. _Defaults to <tt>/var/run/monit.pid</tt>_
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
h3(#monit:unmonitor_all). monit:unmonitor_all
|
39
|
-
|
40
|
-
Unmonitor all.
|
41
|
-
|
42
|
-
*monit_bin_path*: Path to monit bin. _Defaults to <tt>monit</tt>_
|
43
|
-
|
44
|
-
|
45
|
-
|
@@ -1,22 +0,0 @@
|
|
1
|
-
h1. mysql:centos
|
2
|
-
|
3
|
-
"home":../index.html > "recipes":index.html > "mysql":mysql.html > centos
|
4
|
-
|
5
|
-
|
6
|
-
h2. Tasks
|
7
|
-
|
8
|
-
* "mysql:centos:install":#mysql:centos:install
|
9
|
-
|
10
|
-
|
11
|
-
h2. Task documentation
|
12
|
-
|
13
|
-
h3(#mysql:centos:install). mysql:centos:install
|
14
|
-
|
15
|
-
Install mysql.
|
16
|
-
|
17
|
-
*mysql_admin_password_set*: Mysql admin password (to set). _Defaults to password prompt._
|
18
|
-
|
19
|
-
<pre>set :mysql_admin_password_set, prompt.password('Mysql admin password (to set): ')</pre>
|
20
|
-
|
21
|
-
|
22
|
-
|
@@ -1,28 +0,0 @@
|
|
1
|
-
h1. mysql:monit
|
2
|
-
|
3
|
-
"home":../index.html > "recipes":index.html > "mysql":mysql.html > monit
|
4
|
-
|
5
|
-
|
6
|
-
h2. Tasks
|
7
|
-
|
8
|
-
* "mysql:monit:install":#mysql:monit:install
|
9
|
-
|
10
|
-
|
11
|
-
h2. Task documentation
|
12
|
-
|
13
|
-
h3(#mysql:monit:install). mysql:monit:install
|
14
|
-
|
15
|
-
Install mysql monit hooks.
|
16
|
-
|
17
|
-
*db_port*: Mysql port. _Defaults to 3306_
|
18
|
-
|
19
|
-
*mysql_pid_path*: Path to mysql pid file. _Defaults to /var/run/mysqld/mysqld.pid_
|
20
|
-
|
21
|
-
@set :mysql_pid_path, "/var/run/mysqld/mysqld.pid"@
|
22
|
-
|
23
|
-
*monit_conf_dir*: Destination for monitrc. _Defaults to "/etc/monit"_
|
24
|
-
|
25
|
-
@set :monit_conf_dir, "/etc/monit"@
|
26
|
-
|
27
|
-
|
28
|
-
|
data/docs/recipes/mysql.txt
DELETED
@@ -1,42 +0,0 @@
|
|
1
|
-
h1. mysql
|
2
|
-
|
3
|
-
"home":../index.html > "recipes":index.html > mysql
|
4
|
-
|
5
|
-
|
6
|
-
h2. Namespaces
|
7
|
-
|
8
|
-
* "mysql:centos":mysql-centos.html (1)
|
9
|
-
* "mysql:monit":mysql-monit.html (1)
|
10
|
-
|
11
|
-
|
12
|
-
h2. Tasks
|
13
|
-
|
14
|
-
* "mysql:setup":#mysql:setup
|
15
|
-
|
16
|
-
|
17
|
-
h2. Task documentation
|
18
|
-
|
19
|
-
h3(#mysql:setup). mysql:setup
|
20
|
-
|
21
|
-
Create database, database user, and set grant permissions.
|
22
|
-
|
23
|
-
*db_name*: Database name (application).
|
24
|
-
|
25
|
-
*db_user*: Database user (application).
|
26
|
-
|
27
|
-
*db_pass*: Database password (application).
|
28
|
-
|
29
|
-
*mysql_grant_locations*: Grant locations. _Defaults to localhost_
|
30
|
-
|
31
|
-
@set :mysql_grant_locations, [ "localhost", "192.168.1.111" ]@
|
32
|
-
|
33
|
-
*mysql_grant_priv_type*: Grant privilege types. _Defaults to ALL_
|
34
|
-
|
35
|
-
@set :mysql_grant_priv_type, "ALL"@
|
36
|
-
|
37
|
-
*mysql_admin_password*: Mysql admin password (to use to connect). Defaults to password prompt.
|
38
|
-
|
39
|
-
@set :mysql_admin_password, prompt.password('Mysql admin password: '))@
|
40
|
-
|
41
|
-
|
42
|
-
|
@@ -1,52 +0,0 @@
|
|
1
|
-
h1. nginx:centos
|
2
|
-
|
3
|
-
"home":../index.html > "recipes":index.html > "nginx":nginx.html > centos
|
4
|
-
|
5
|
-
|
6
|
-
h2. Tasks
|
7
|
-
|
8
|
-
* "nginx:centos:install":#nginx:centos:install
|
9
|
-
* "nginx:centos:restart":#nginx:centos:restart
|
10
|
-
|
11
|
-
|
12
|
-
h2. Task documentation
|
13
|
-
|
14
|
-
h3(#nginx:centos:install). nginx:centos:install
|
15
|
-
|
16
|
-
Install nginx, conf, initscript, nginx user and service.
|
17
|
-
|
18
|
-
*nginx_build_options*: Nginx build options.
|
19
|
-
|
20
|
-
<pre>
|
21
|
-
set :nginx_build_options, {
|
22
|
-
:url => "http://sysoev.ru/nginx/nginx-0.5.35.tar.gz",
|
23
|
-
:configure_options => "--sbin-path=#{nginx_bin_path} --conf-path=#{nginx_conf_path}
|
24
|
-
--pid-path=#{nginx_pid_path} --error-log-path=/var/log/nginx_master_error.log --lock-path=/var/lock/nginx
|
25
|
-
--prefix=#{nginx_prefix_path} --with-md5=auto/lib/md5 --with-sha1=auto/lib/sha1 --with-http_ssl_module"
|
26
|
-
}
|
27
|
-
</pre>
|
28
|
-
|
29
|
-
*nginx_bin_path*: Nginx sbin path. _Defaults to /sbin/nginx_
|
30
|
-
|
31
|
-
@set :nginx_bin_path, "/sbin/nginx"@
|
32
|
-
|
33
|
-
*nginx_conf_path*: Path to nginx conf. _Defaults to /etc/nginx/nginx.conf_
|
34
|
-
|
35
|
-
@set :nginx_conf_path, "/etc/nginx/nginx.conf"@
|
36
|
-
|
37
|
-
*nginx_pid_path*: Path to nginx pid file. _Defaults to /var/run/nginx.pid_
|
38
|
-
|
39
|
-
@set :nginx_pid_path, "/var/run/nginx.pid"@
|
40
|
-
|
41
|
-
*nginx_prefix_path*: Nginx install prefix. _Defaults to /var/nginx_
|
42
|
-
|
43
|
-
@set :nginx_prefix_path, "/var/nginx"@
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
h3(#nginx:centos:restart). nginx:centos:restart
|
48
|
-
|
49
|
-
Restart nginx (service)
|
50
|
-
|
51
|
-
|
52
|
-
|
@@ -1,33 +0,0 @@
|
|
1
|
-
h1. nginx:mongrel
|
2
|
-
|
3
|
-
"home":../index.html > "recipes":index.html > "nginx":nginx.html > mongrel
|
4
|
-
|
5
|
-
|
6
|
-
h2. Tasks
|
7
|
-
|
8
|
-
* "nginx:mongrel:setup":#nginx:mongrel:setup
|
9
|
-
|
10
|
-
|
11
|
-
h2. Task documentation
|
12
|
-
|
13
|
-
h3(#nginx:mongrel:setup). nginx:mongrel:setup
|
14
|
-
|
15
|
-
Generate the nginx vhost include (for a mongrel setup).
|
16
|
-
|
17
|
-
*mongrel_application*: Mongrel application. _Defaults to <tt>:application</tt>_
|
18
|
-
*mongrel_size*: Number of mongrels.
|
19
|
-
|
20
|
-
@set :mongrel_size, 3@
|
21
|
-
|
22
|
-
*mongrel_port*: Starting port for mongrels.
|
23
|
-
|
24
|
-
If there are 3 mongrels with port 9000, then instances will be at 9000, 9001, and 9002
|
25
|
-
|
26
|
-
@set :mongrel_port, 9000@
|
27
|
-
|
28
|
-
*domain_name*: Domain name for nginx virtual host, (without www prefix).
|
29
|
-
|
30
|
-
@set :domain_name, "foo.com"@
|
31
|
-
|
32
|
-
|
33
|
-
|
@@ -1,26 +0,0 @@
|
|
1
|
-
h1. nginx:monit
|
2
|
-
|
3
|
-
"home":../index.html > "recipes":index.html > "nginx":nginx.html > monit
|
4
|
-
|
5
|
-
|
6
|
-
h2. Tasks
|
7
|
-
|
8
|
-
* "nginx:monit:install":#nginx:monit:install
|
9
|
-
|
10
|
-
|
11
|
-
h2. Task documentation
|
12
|
-
|
13
|
-
h3(#nginx:monit:install). nginx:monit:install
|
14
|
-
|
15
|
-
Install nginx monit hooks.
|
16
|
-
|
17
|
-
*nginx_pid_path*: Path to nginx pid file. _Defaults to /var/run/nginx.pid_
|
18
|
-
|
19
|
-
@set :nginx_pid_path, "/var/run/nginx.pid"@
|
20
|
-
|
21
|
-
*monit_conf_dir*: Destination for monitrc. _Defaults to "/etc/monit"_
|
22
|
-
|
23
|
-
@set :monit_conf_dir, "/etc/monit"@
|
24
|
-
|
25
|
-
|
26
|
-
|
data/docs/recipes/nginx.txt
DELETED
data/docs/recipes/rails.txt
DELETED
@@ -1,64 +0,0 @@
|
|
1
|
-
h1. rails
|
2
|
-
|
3
|
-
"home":../index.html > "recipes":index.html > rails
|
4
|
-
|
5
|
-
|
6
|
-
h2. Tasks
|
7
|
-
|
8
|
-
* "rails:console":#rails:console
|
9
|
-
* "rails:mate_logs":#rails:mate_logs
|
10
|
-
* "rails:setup":#rails:setup
|
11
|
-
* "rails:tail_logs":#rails:tail_logs
|
12
|
-
* "rails:update_code":#rails:update_code
|
13
|
-
|
14
|
-
|
15
|
-
h2. Task documentation
|
16
|
-
|
17
|
-
h3(#rails:console). rails:console
|
18
|
-
|
19
|
-
Remotely console. (http://errtheblog.com/posts/19-streaming-capistrano)
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
h3(#rails:mate_logs). rails:mate_logs
|
24
|
-
|
25
|
-
Check production log files in TextMate. (http://errtheblog.com/posts/19-streaming-capistrano)
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
h3(#rails:setup). rails:setup
|
30
|
-
|
31
|
-
Create database yaml in shared path.
|
32
|
-
|
33
|
-
*db_name*: Database name (rails).
|
34
|
-
|
35
|
-
@set :db_name, "app_db_name"@
|
36
|
-
|
37
|
-
*db_user*: Database user (rails).
|
38
|
-
|
39
|
-
@set :db_user, "app_db_user"@
|
40
|
-
|
41
|
-
*db_pass*: Database password (rails).
|
42
|
-
|
43
|
-
@set :db_pass, "the_password"@
|
44
|
-
|
45
|
-
*db_host*: Database host (can be nil, if you are using socket). _Defaults to nil_
|
46
|
-
|
47
|
-
*db_socket*: Database socket (can be nil, if you are using host). _Defaults to nil_
|
48
|
-
|
49
|
-
@set :db_socket, "/var/lib/mysql/mysql.sock"@
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
h3(#rails:tail_logs). rails:tail_logs
|
54
|
-
|
55
|
-
Tail production log files. (http://errtheblog.com/posts/19-streaming-capistrano)
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
h3(#rails:update_code). rails:update_code
|
60
|
-
|
61
|
-
Make symlink for database yaml
|
62
|
-
|
63
|
-
|
64
|
-
|
@@ -1,31 +0,0 @@
|
|
1
|
-
h1. ruby:centos
|
2
|
-
|
3
|
-
"home":../index.html > "recipes":index.html > "ruby":ruby.html > centos
|
4
|
-
|
5
|
-
|
6
|
-
h2. Tasks
|
7
|
-
|
8
|
-
* "ruby:centos:install":#ruby:centos:install
|
9
|
-
|
10
|
-
|
11
|
-
h2. Task documentation
|
12
|
-
|
13
|
-
h3(#ruby:centos:install). ruby:centos:install
|
14
|
-
|
15
|
-
Install ruby and rubygems.
|
16
|
-
|
17
|
-
*ruby_build_options*: Ruby build options.
|
18
|
-
|
19
|
-
*rubygems_build_options*: Rubygems build options.
|
20
|
-
|
21
|
-
<pre>
|
22
|
-
set :ruby_build_options, {
|
23
|
-
:url => "http://capitate.s3.amazonaws.com/ruby-1.8.6-p110.tar.gz",
|
24
|
-
:build_dest => "/usr/src",
|
25
|
-
:configure_options => "--prefix=/usr",
|
26
|
-
:clean => false
|
27
|
-
}
|
28
|
-
</pre>
|
29
|
-
|
30
|
-
|
31
|
-
|
data/docs/recipes/ruby.txt
DELETED
@@ -1,56 +0,0 @@
|
|
1
|
-
h1. sphinx:centos
|
2
|
-
|
3
|
-
"home":../index.html > "recipes":index.html > "sphinx":sphinx.html > centos
|
4
|
-
|
5
|
-
|
6
|
-
h2. Tasks
|
7
|
-
|
8
|
-
* "sphinx:centos:install":#sphinx:centos:install
|
9
|
-
* "sphinx:centos:iptables":#sphinx:centos:iptables
|
10
|
-
* "sphinx:centos:setup":#sphinx:centos:setup
|
11
|
-
|
12
|
-
|
13
|
-
h2. Task documentation
|
14
|
-
|
15
|
-
h3(#sphinx:centos:install). sphinx:centos:install
|
16
|
-
|
17
|
-
Install sphinx.
|
18
|
-
|
19
|
-
*sphinx_build_options*: Sphinx build options.
|
20
|
-
|
21
|
-
<pre>
|
22
|
-
set :sphinx_build_options, {
|
23
|
-
:url => "http://www.sphinxsearch.com/downloads/sphinx-0.9.7.tar.gz",
|
24
|
-
:configure_options => "--with-mysql-includes=/usr/include/mysql --with-mysql-libs=/usr/lib/mysql
|
25
|
-
--prefix=#{sphinx_prefix}"
|
26
|
-
}
|
27
|
-
</pre>
|
28
|
-
|
29
|
-
*sphinx_prefix*: Sphinx install prefix. _Defaults to "/usr/local/sphinx"_
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
h3(#sphinx:centos:iptables). sphinx:centos:iptables
|
34
|
-
|
35
|
-
Install sphinx firewall rule.
|
36
|
-
|
37
|
-
*sphinx_port*: Sphinx port. _Defaults to 3312_
|
38
|
-
|
39
|
-
@set :sphinx_port, 3312@
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
h3(#sphinx:centos:setup). sphinx:centos:setup
|
44
|
-
|
45
|
-
Setup sphinx for application.
|
46
|
-
|
47
|
-
*sphinx_prefix*: Sphinx install prefix. _Defaults to "/usr/local/sphinx"_
|
48
|
-
|
49
|
-
*sphinx_pid_path*: Directory to sphinx pid. _Defaults to "[shared_path]/pids/searchd.pid"_
|
50
|
-
|
51
|
-
*sphinx_conf_path*: Path to sphinx.conf. _Defaults to "[shared_path]/config/sphinx.conf"_
|
52
|
-
|
53
|
-
*sphinx_index_path*: Path to sphinx indexes. _Defaults to "[shared_path]/var/index"_
|
54
|
-
|
55
|
-
|
56
|
-
|
@@ -1,22 +0,0 @@
|
|
1
|
-
h1. sphinx:monit
|
2
|
-
|
3
|
-
"home":../index.html > "recipes":index.html > "sphinx":sphinx.html > monit
|
4
|
-
|
5
|
-
|
6
|
-
h2. Tasks
|
7
|
-
|
8
|
-
* "sphinx:monit:setup":#sphinx:monit:setup
|
9
|
-
|
10
|
-
|
11
|
-
h2. Task documentation
|
12
|
-
|
13
|
-
h3(#sphinx:monit:setup). sphinx:monit:setup
|
14
|
-
|
15
|
-
Create monit configuration for sphinx.
|
16
|
-
|
17
|
-
*monit_conf_dir*: Destination for monitrc. _Defaults to "/etc/monit"_
|
18
|
-
|
19
|
-
*sphinx_pid_path*: Location for sphinx pid. _Defaults to "[shared_path]/pids/searchd.pid"_
|
20
|
-
|
21
|
-
|
22
|
-
|
data/docs/recipes/sphinx.txt
DELETED
@@ -1,81 +0,0 @@
|
|
1
|
-
h1. sphinx
|
2
|
-
|
3
|
-
"home":../index.html > "recipes":index.html > sphinx
|
4
|
-
|
5
|
-
|
6
|
-
h2. Namespaces
|
7
|
-
|
8
|
-
* "sphinx:centos":sphinx-centos.html (3)
|
9
|
-
* "sphinx:monit":sphinx-monit.html (1)
|
10
|
-
|
11
|
-
|
12
|
-
h2. Tasks
|
13
|
-
|
14
|
-
* "sphinx:index_all":#sphinx:index_all
|
15
|
-
* "sphinx:restart":#sphinx:restart
|
16
|
-
* "sphinx:rotate_all":#sphinx:rotate_all
|
17
|
-
* "sphinx:update_conf":#sphinx:update_conf
|
18
|
-
|
19
|
-
|
20
|
-
h2. Task documentation
|
21
|
-
|
22
|
-
h3(#sphinx:index_all). sphinx:index_all
|
23
|
-
|
24
|
-
Build sphinx indexes for application.
|
25
|
-
|
26
|
-
*sphinx_prefix*: Location to sphinx install. _Defaults to nil_
|
27
|
-
|
28
|
-
*sphinx_conf*: Location to sphinx conf. _Defaults to "[shared_path]/config/sphinx.conf"_
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
h3(#sphinx:restart). sphinx:restart
|
33
|
-
|
34
|
-
Restart sphinx
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
h3(#sphinx:rotate_all). sphinx:rotate_all
|
39
|
-
|
40
|
-
Rotate sphinx index for application.
|
41
|
-
|
42
|
-
*sphinx_prefix*: Location to sphinx install. _Defaults to nil_
|
43
|
-
|
44
|
-
*sphinx_conf*: Location to sphinx conf. _Defaults to "[shared_path]/config/sphinx.conf"_
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
h3(#sphinx:update_conf). sphinx:update_conf
|
49
|
-
|
50
|
-
Update sphinx for application.
|
51
|
-
|
52
|
-
*sphinx_conf_template*: Path to sphinx.conf.erb. _Defaults to "config/templates/sphinx.conf.erb"_
|
53
|
-
|
54
|
-
*sphinx_conf_path*: Path to sphinx.conf. _Defaults to "[shared_path]/config/sphinx.conf"_
|
55
|
-
|
56
|
-
*sphinx_port*: Sphinx port. _Defaults to 3312_
|
57
|
-
|
58
|
-
*sphinx_conf_root*: Directory for sphinx configuration, like stopwords.txt. _Defaults to [current_path]/config_
|
59
|
-
|
60
|
-
*sphinx_index_root*: Directory for sphinx indexes. _Defaults to "[shared_path]/var/index"_
|
61
|
-
|
62
|
-
*sphinx_log_root*: Directory for sphinx logs. _Defaults to "[shared_path]/log"_
|
63
|
-
|
64
|
-
*sphinx_pid_root*: Directory for sphinx pids. _Defaults to "[shared_path]/pids"_
|
65
|
-
|
66
|
-
|
67
|
-
*sphinx_db_user*: Sphinx DB user. _Defaults to db_user_
|
68
|
-
|
69
|
-
*sphinx_db_pass*: Sphinx DB password. _Defaults to db_pass_
|
70
|
-
|
71
|
-
*sphinx_db_name*: Sphinx DB name. _Defaults to db_name_
|
72
|
-
|
73
|
-
*sphinx_db_port*: Sphinx DB port. _Defaults to db_port_
|
74
|
-
|
75
|
-
|
76
|
-
*sphinx_db_host*: Sphinx DB host. _Defaults to db_host_
|
77
|
-
|
78
|
-
*sphinx_conf_host*: Sphinx DB host to listen on. _Defaults to 127.0.0.1_
|
79
|
-
|
80
|
-
|
81
|
-
|
@@ -1,15 +0,0 @@
|
|
1
|
-
class Capistrano::ExtensionProxy
|
2
|
-
|
3
|
-
# Allow ability to include modules in plugins.
|
4
|
-
#
|
5
|
-
# ==== Options
|
6
|
-
# +mod+:: Module
|
7
|
-
#
|
8
|
-
# ==== Examples
|
9
|
-
# include Capitate::Plugins::Yum
|
10
|
-
#
|
11
|
-
def include(mod)
|
12
|
-
self.class.send(:include, mod)
|
13
|
-
end
|
14
|
-
|
15
|
-
end
|