capitate 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/Capfile +3 -11
- data/History.txt +8 -1
- data/Manifest.txt +4 -17
- data/bin/capitate +51 -19
- data/config/hoe.rb +3 -1
- data/lib/capitate/plugins/base.rb +81 -35
- data/lib/capitate/recipes.rb +1 -2
- data/lib/capitate/task_node.rb +157 -0
- data/lib/capitate/version.rb +1 -1
- data/lib/capitate.rb +2 -0
- data/lib/profiles/centos-sick.rb +18 -16
- data/lib/recipes/centos/imagemagick.rb +3 -2
- data/lib/recipes/centos/memcached.rb +18 -3
- data/lib/recipes/centos/mongrel_cluster.rb +15 -5
- data/lib/recipes/centos/monit.rb +14 -3
- data/lib/recipes/centos/mysql.rb +10 -3
- data/lib/recipes/centos/nginx.rb +29 -3
- data/lib/recipes/centos/ruby.rb +2 -2
- data/lib/recipes/centos/sphinx.rb +19 -6
- data/lib/recipes/docs.rb +17 -0
- data/lib/recipes/gems.rb +10 -1
- data/lib/recipes/memcached.rb +11 -1
- data/lib/recipes/mongrel_cluster.rb +13 -1
- data/lib/recipes/mysql.rb +41 -2
- data/lib/recipes/nginx.rb +25 -11
- data/lib/recipes/packages.rb +16 -1
- data/lib/recipes/rails.rb +16 -1
- data/lib/recipes/recipes.rb +30 -0
- data/tasks/website.rake +9 -0
- data/website/index.html +46 -44
- data/website/index.txt +24 -31
- data/website/stylesheets/screen.css +31 -12
- data/website/template.rhtml +19 -5
- data/website/template_recipe.rhtml +25 -0
- metadata +19 -24
- data/lib/capitate/config.rb +0 -106
- data/lib/doc/centos/memcached.yml +0 -18
- data/lib/doc/centos/mongrel_cluster.yml +0 -11
- data/lib/doc/centos/monit.yml +0 -12
- data/lib/doc/centos/mysql.yml +0 -6
- data/lib/doc/centos/nginx.yml +0 -25
- data/lib/doc/centos/sphinx.yml +0 -14
- data/lib/doc/gems.yml +0 -7
- data/lib/doc/install.yml +0 -11
- data/lib/doc/memcached.yml +0 -13
- data/lib/doc/mongrel_cluster.yml +0 -12
- data/lib/doc/mysql.yml +0 -46
- data/lib/doc/nginx.yml +0 -23
- data/lib/doc/packages.yml +0 -17
- data/lib/doc/rails.yml +0 -15
- data/lib/recipes/install.rb +0 -18
- data/tasks/capitate.rake +0 -10
data/website/index.txt
CHANGED
@@ -1,25 +1,23 @@
|
|
1
|
-
h1. Capistrano plugins, recipes and templates
|
2
|
-
|
3
1
|
h1. → 'capitate'
|
4
2
|
|
5
|
-
|
6
3
|
h2. What
|
7
4
|
|
8
5
|
Capistrano plugins, recipes and templates.
|
9
6
|
|
10
7
|
h2. Installing
|
11
8
|
|
12
|
-
<pre
|
13
|
-
|
14
|
-
Create a Capfile (in your project):
|
9
|
+
<pre>sudo gem install capitate</pre>
|
15
10
|
|
16
|
-
<pre syntax="ruby">capitate</pre>
|
17
11
|
|
18
|
-
|
12
|
+
h2. Running
|
19
13
|
|
20
|
-
|
14
|
+
Add capitate to your Capfile. Copy this somewhere near the top:
|
21
15
|
|
22
|
-
<
|
16
|
+
<pre syntax="ruby">
|
17
|
+
set :project_root, File.dirname(__FILE__)
|
18
|
+
require 'capitate'
|
19
|
+
require 'capitate/recipes'
|
20
|
+
</pre>
|
23
21
|
|
24
22
|
|
25
23
|
h2. The basics
|
@@ -32,39 +30,34 @@ Capitate has recipes for:
|
|
32
30
|
* And more...
|
33
31
|
|
34
32
|
|
35
|
-
h3.
|
36
|
-
|
37
|
-
Profiles are capfiles which store lists of recipes to run for cap install and deploy and settings for those recipes.
|
38
|
-
|
39
|
-
For an example profile, see "centos-sick.rb":http://svn.ducktyper.com/capitate/trunk/lib/profiles/centos-sick.rb
|
33
|
+
h3. Beefing up your deploy
|
40
34
|
|
41
|
-
|
35
|
+
For an example deploy, see "centos-sick.rb":http://svn.ducktyper.com/capitate/trunk/lib/profiles/centos-sick.rb
|
42
36
|
|
37
|
+
You could copy this profile into config/deployment/ and add it to your Capfile:
|
43
38
|
|
44
|
-
|
39
|
+
load "config/deployment/centos-sick.rb"
|
45
40
|
|
46
|
-
To install a group of applications based on a profile (see Profiles section below):
|
47
41
|
|
48
|
-
cap install
|
49
42
|
|
50
|
-
|
43
|
+
h3. Use recipes
|
51
44
|
|
52
|
-
|
53
|
-
h3. Deploying (application)
|
45
|
+
"View recipes documentation":recipes/index.html
|
54
46
|
|
55
|
-
|
47
|
+
For example, to script the install of a group of applications as root, use "recipes:run":recipes/recipes.html:
|
56
48
|
|
57
|
-
|
49
|
+
Configure your Capfile to run it:
|
58
50
|
|
59
|
-
|
60
|
-
|
61
|
-
|
51
|
+
<pre syntax="ruby">
|
52
|
+
set :recipes_run, [ "ruby:centos:install", "memcached:centos:install" ]
|
53
|
+
set :recipes_user, "root"
|
54
|
+
</pre>
|
62
55
|
|
63
|
-
|
64
|
-
|
65
|
-
cap deploy:migrate (only does migration on existing deployment)
|
56
|
+
Then run:
|
66
57
|
|
58
|
+
cap recipes:run
|
67
59
|
|
60
|
+
This is just a basic example.
|
68
61
|
|
69
62
|
h2. Forum
|
70
63
|
|
@@ -74,7 +67,7 @@ h2. How to submit patches
|
|
74
67
|
|
75
68
|
Read the "8 steps for fixing other people's code":http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/ and for section "8b: Submit patch to Google Groups":http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/#8b-google-groups, use the Google Group above.
|
76
69
|
|
77
|
-
The trunk repository is <code>http://svn.ducktyper.com/
|
70
|
+
The trunk repository is <code>http://svn.ducktyper.com/capitate/trunk</code> for anonymous access.
|
78
71
|
|
79
72
|
h2. License
|
80
73
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
body {
|
2
|
-
background-color: #
|
2
|
+
background-color: #EFECCA;
|
3
3
|
font-family: "Georgia", sans-serif;
|
4
4
|
font-size: 16px;
|
5
5
|
line-height: 1.6em;
|
@@ -23,8 +23,8 @@ li {
|
|
23
23
|
list-style-type: square;
|
24
24
|
}
|
25
25
|
a {
|
26
|
-
color: #
|
27
|
-
background-color: #
|
26
|
+
color: #046380;
|
27
|
+
background-color: #E6E2AF;
|
28
28
|
font-weight: normal;
|
29
29
|
text-decoration: underline;
|
30
30
|
}
|
@@ -84,6 +84,7 @@ pre, code {
|
|
84
84
|
color: #ff8;
|
85
85
|
background-color: #111;
|
86
86
|
padding: 2px 10px 2px 10px;
|
87
|
+
overflow: auto;
|
87
88
|
}
|
88
89
|
.comment { color: #aaa; font-style: italic; }
|
89
90
|
.keyword { color: #eff; font-weight: bold; }
|
@@ -96,19 +97,33 @@ pre, code {
|
|
96
97
|
.number { color: #F99; }
|
97
98
|
.expr { color: #227; }
|
98
99
|
|
99
|
-
|
100
|
-
|
101
|
-
text-align: right;
|
100
|
+
|
101
|
+
.box {
|
102
102
|
font-family: sans-serif;
|
103
103
|
font-weight: normal;
|
104
|
-
background-color: #
|
105
|
-
color: #
|
104
|
+
background-color: #A7A37E;
|
105
|
+
color: #000;
|
106
106
|
padding: 15px 20px 10px 20px;
|
107
107
|
margin: 0 auto;
|
108
108
|
margin-top: 15px;
|
109
109
|
border: 3px solid #141331;
|
110
110
|
}
|
111
111
|
|
112
|
+
.landing h1 {
|
113
|
+
float: left;
|
114
|
+
}
|
115
|
+
|
116
|
+
#recipes {
|
117
|
+
float: right;
|
118
|
+
margin-right: 10px;
|
119
|
+
}
|
120
|
+
|
121
|
+
#version {
|
122
|
+
float: right;
|
123
|
+
text-align: right;
|
124
|
+
clear:right;
|
125
|
+
}
|
126
|
+
|
112
127
|
#version .numbers {
|
113
128
|
display: block;
|
114
129
|
font-size: 4em;
|
@@ -119,16 +134,20 @@ pre, code {
|
|
119
134
|
|
120
135
|
#version p {
|
121
136
|
text-decoration: none;
|
122
|
-
color: #
|
123
|
-
background-color: #
|
137
|
+
color: #000;
|
138
|
+
background-color: #A7A37E;
|
124
139
|
margin: 0;
|
125
140
|
padding: 0;
|
126
141
|
}
|
127
142
|
|
143
|
+
#version a,
|
144
|
+
#recipes a {
|
145
|
+
color: #000;
|
146
|
+
background-color: #A7A37E;
|
147
|
+
}
|
148
|
+
|
128
149
|
#version a {
|
129
150
|
text-decoration: none;
|
130
|
-
color: #141331;
|
131
|
-
background-color: #B3ABFF;
|
132
151
|
}
|
133
152
|
|
134
153
|
.clickable {
|
data/website/template.rhtml
CHANGED
@@ -21,21 +21,35 @@
|
|
21
21
|
antiAlias: true,
|
22
22
|
autoPad: true,
|
23
23
|
validTags: ["div"]
|
24
|
-
}
|
25
|
-
|
26
|
-
|
24
|
+
};
|
25
|
+
|
26
|
+
curvy_ids = [ "version", "recipes" ];
|
27
|
+
for(id in curvy_ids) {
|
28
|
+
var box = new curvyCorners(settings, document.getElementById(curvy_ids[id]));
|
29
|
+
box.applyCornersToAll();
|
30
|
+
}
|
27
31
|
}
|
28
32
|
</script>
|
29
33
|
</head>
|
30
34
|
<body>
|
31
|
-
<div id="main">
|
35
|
+
<div id="main" class="landing">
|
32
36
|
|
33
37
|
<h1><%= title %></h1>
|
34
|
-
|
38
|
+
|
39
|
+
<div id="version" class="clickable box" onclick='document.location = "<%= download %>"; return false'>
|
35
40
|
<p>Get Version</p>
|
36
41
|
<a href="<%= download %>" class="numbers"><%= version %></a>
|
37
42
|
</div>
|
43
|
+
|
44
|
+
<div id="recipes" class="box">
|
45
|
+
<a href="recipes/index.html">Recipes</a> →
|
46
|
+
<a href="http://svn.ducktyper.com/capitate/trunk/lib/capitate/plugins/">Plugins</a> →
|
47
|
+
<a href="http://svn.ducktyper.com/capitate/trunk/lib/templates/">Templates</a>
|
48
|
+
</div>
|
49
|
+
|
50
|
+
<div style="clear:both">
|
38
51
|
<%= body %>
|
52
|
+
</div>
|
39
53
|
<p class="coda">
|
40
54
|
<a href="FIXME email">Gabriel Handford</a>, <%= modified.pretty %><br>
|
41
55
|
Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<link rel="stylesheet" href="../stylesheets/screen.css" type="text/css" media="screen" />
|
6
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
7
|
+
<title>
|
8
|
+
<%= title %>
|
9
|
+
</title>
|
10
|
+
</head>
|
11
|
+
<body>
|
12
|
+
<div id="main" class="recipes">
|
13
|
+
|
14
|
+
<h1><%= title %></h1>
|
15
|
+
<%= body %>
|
16
|
+
<p class="coda">
|
17
|
+
<a href="FIXME email">Gabriel Handford</a>, <%= modified.pretty %><br>
|
18
|
+
Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
|
19
|
+
</p>
|
20
|
+
</div>
|
21
|
+
|
22
|
+
<!-- insert site tracking codes here, like Google Urchin -->
|
23
|
+
|
24
|
+
</body>
|
25
|
+
</html>
|
metadata
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capitate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
5
|
-
platform:
|
4
|
+
version: 0.1.8
|
5
|
+
platform: ""
|
6
6
|
authors:
|
7
7
|
- Gabriel Handford
|
8
8
|
autorequire:
|
@@ -11,9 +11,17 @@ cert_chain: []
|
|
11
11
|
|
12
12
|
date: 2008-02-21 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
|
-
dependencies:
|
15
|
-
|
16
|
-
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: capistrano
|
17
|
+
version_requirement:
|
18
|
+
version_requirements: !ruby/object:Gem::Requirement
|
19
|
+
requirements:
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 2.1.0
|
23
|
+
version:
|
24
|
+
description: Capistrano recipes, plugins and templates.
|
17
25
|
email:
|
18
26
|
- gabrielh@gmail.com
|
19
27
|
executables:
|
@@ -40,7 +48,6 @@ files:
|
|
40
48
|
- lib/capitate/cap_ext/connections.rb
|
41
49
|
- lib/capitate/cap_ext/extension_proxy.rb
|
42
50
|
- lib/capitate/cap_ext/variables.rb
|
43
|
-
- lib/capitate/config.rb
|
44
51
|
- lib/capitate/plugins/base.rb
|
45
52
|
- lib/capitate/plugins/gem.rb
|
46
53
|
- lib/capitate/plugins/package.rb
|
@@ -50,21 +57,8 @@ files:
|
|
50
57
|
- lib/capitate/plugins/wget.rb
|
51
58
|
- lib/capitate/plugins/yum.rb
|
52
59
|
- lib/capitate/recipes.rb
|
60
|
+
- lib/capitate/task_node.rb
|
53
61
|
- lib/capitate/version.rb
|
54
|
-
- lib/doc/centos/memcached.yml
|
55
|
-
- lib/doc/centos/mongrel_cluster.yml
|
56
|
-
- lib/doc/centos/monit.yml
|
57
|
-
- lib/doc/centos/mysql.yml
|
58
|
-
- lib/doc/centos/nginx.yml
|
59
|
-
- lib/doc/centos/sphinx.yml
|
60
|
-
- lib/doc/gems.yml
|
61
|
-
- lib/doc/install.yml
|
62
|
-
- lib/doc/memcached.yml
|
63
|
-
- lib/doc/mongrel_cluster.yml
|
64
|
-
- lib/doc/mysql.yml
|
65
|
-
- lib/doc/nginx.yml
|
66
|
-
- lib/doc/packages.yml
|
67
|
-
- lib/doc/rails.yml
|
68
62
|
- lib/profiles/centos-sick.rb
|
69
63
|
- lib/recipes/README
|
70
64
|
- lib/recipes/centos/README
|
@@ -78,14 +72,15 @@ files:
|
|
78
72
|
- lib/recipes/centos/ruby.rb
|
79
73
|
- lib/recipes/centos/sphinx.rb
|
80
74
|
- lib/recipes/deploy.rb
|
75
|
+
- lib/recipes/docs.rb
|
81
76
|
- lib/recipes/gems.rb
|
82
|
-
- lib/recipes/install.rb
|
83
77
|
- lib/recipes/memcached.rb
|
84
78
|
- lib/recipes/mongrel_cluster.rb
|
85
79
|
- lib/recipes/mysql.rb
|
86
80
|
- lib/recipes/nginx.rb
|
87
81
|
- lib/recipes/packages.rb
|
88
82
|
- lib/recipes/rails.rb
|
83
|
+
- lib/recipes/recipes.rb
|
89
84
|
- lib/recipes/sphinx.rb
|
90
85
|
- lib/templates/capistrano/Capfile
|
91
86
|
- lib/templates/centos/setup_for_web.sh
|
@@ -115,7 +110,6 @@ files:
|
|
115
110
|
- script/generate
|
116
111
|
- script/txt2html
|
117
112
|
- setup.rb
|
118
|
-
- tasks/capitate.rake
|
119
113
|
- tasks/deployment.rake
|
120
114
|
- tasks/environment.rake
|
121
115
|
- tasks/website.rake
|
@@ -127,6 +121,7 @@ files:
|
|
127
121
|
- website/javascripts/rounded_corners_lite.inc.js
|
128
122
|
- website/stylesheets/screen.css
|
129
123
|
- website/template.rhtml
|
124
|
+
- website/template_recipe.rhtml
|
130
125
|
has_rdoc: true
|
131
126
|
homepage: http://capitate.rubyforge.org
|
132
127
|
post_install_message:
|
@@ -150,10 +145,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
150
145
|
requirements: []
|
151
146
|
|
152
147
|
rubyforge_project: capitate
|
153
|
-
rubygems_version:
|
148
|
+
rubygems_version: 0.9.5
|
154
149
|
signing_key:
|
155
150
|
specification_version: 2
|
156
|
-
summary: Capistrano
|
151
|
+
summary: Capistrano recipes, plugins and templates.
|
157
152
|
test_files:
|
158
153
|
- test/test_helper.rb
|
159
154
|
- test/test_recipes.rb
|
data/lib/capitate/config.rb
DELETED
@@ -1,106 +0,0 @@
|
|
1
|
-
require 'yaml'
|
2
|
-
require 'highline'
|
3
|
-
|
4
|
-
# DEPRECATED, not in use.
|
5
|
-
#
|
6
|
-
# Application configuration for helping generate Capfile and deploy.rb.
|
7
|
-
#
|
8
|
-
class Capitate::Config
|
9
|
-
|
10
|
-
attr_accessor :application, :user, :deploy_to, :web_host
|
11
|
-
attr_accessor :db_host, :db_user, :db_pass, :db_name, :db_port
|
12
|
-
attr_accessor :sphinx_port, :sphinx_host
|
13
|
-
attr_accessor :repository, :recipes
|
14
|
-
attr_accessor :mongrel_port, :mongrel_size
|
15
|
-
attr_accessor :domain_name
|
16
|
-
|
17
|
-
def initialize
|
18
|
-
end
|
19
|
-
|
20
|
-
# Expose the binding.
|
21
|
-
def get_binding
|
22
|
-
binding
|
23
|
-
end
|
24
|
-
|
25
|
-
# Ask for property.
|
26
|
-
#
|
27
|
-
# ==== Options
|
28
|
-
# +message+:: Prompt
|
29
|
-
# +property+:: Property
|
30
|
-
# +options+:: Options
|
31
|
-
# - :default, Default value, defaults to nil
|
32
|
-
# - :answer_type, Highline answer type, defaults to String
|
33
|
-
# - :auto_apply, If true and property is set don't ask for it
|
34
|
-
#
|
35
|
-
# ==== Examples
|
36
|
-
# ask("Database port: ", "db_port", { :default => 3306, :answer_type => Integer })
|
37
|
-
#
|
38
|
-
def ask(message, property, options = {}, &block)
|
39
|
-
# Options
|
40
|
-
default = options[:default] || nil
|
41
|
-
answer_type = options[:answer_type] || String
|
42
|
-
auto_apply = options[:auto_apply]
|
43
|
-
|
44
|
-
# Default to existing or default if set
|
45
|
-
existing = send(property.to_sym)
|
46
|
-
default = existing || default
|
47
|
-
|
48
|
-
unless auto_apply and !existing.blank?
|
49
|
-
result = HighLine.new.ask(message, answer_type) { |q|
|
50
|
-
q.default = default unless default.blank?
|
51
|
-
yield q if block_given?
|
52
|
-
}
|
53
|
-
|
54
|
-
send("#{property}=", result)
|
55
|
-
end
|
56
|
-
end
|
57
|
-
|
58
|
-
# For property, set to value if blank.
|
59
|
-
def set_default(property, value)
|
60
|
-
v = send(property.to_sym)
|
61
|
-
send("#{property}=", value) if v.blank?
|
62
|
-
end
|
63
|
-
|
64
|
-
# Save to yaml.
|
65
|
-
def save(path)
|
66
|
-
File.open(path, "w") { |f| f.puts self.to_yaml }
|
67
|
-
end
|
68
|
-
|
69
|
-
# Build config from asking.
|
70
|
-
#
|
71
|
-
# ==== Options
|
72
|
-
# +auto_apply+:: For values, if set, then don't ask for it
|
73
|
-
#
|
74
|
-
def ask_all(auto_apply = false)
|
75
|
-
|
76
|
-
options = { :auto_apply => auto_apply }
|
77
|
-
|
78
|
-
ask("Application name: ", "application", options)
|
79
|
-
ask("User (to run application as): ", "user", options.merge({ :default => application }))
|
80
|
-
|
81
|
-
ask("Deploy to: ", "deploy_to", options.merge({ :default => "/var/www/apps/#{application}" }))
|
82
|
-
ask("Web host: ", "web_host", options)
|
83
|
-
|
84
|
-
ask("Database host: ", "db_host", options.merge({ :default => web_host }))
|
85
|
-
ask("Database user: ", "db_user", options.merge({ :default => user }))
|
86
|
-
ask("Database password: ", "db_pass", options)
|
87
|
-
ask("Database name: ", "db_name", options.merge({ :default => application }))
|
88
|
-
|
89
|
-
ask("Database port: ", "db_port", options.merge({ :default => 3306, :answer_type => Integer }))
|
90
|
-
|
91
|
-
ask("Sphinx host: ", "sphinx_host", options.merge({ :default => "127.0.0.1" }))
|
92
|
-
ask("Sphinx port: ", "sphinx_port", options.merge({ :default => 3312, :answer_type => Integer }))
|
93
|
-
|
94
|
-
default_repos = YAML.load(`svn info`)["URL"] rescue nil
|
95
|
-
ask("Repository uri: ", "repository", options.merge({ :default => default_repos }))
|
96
|
-
|
97
|
-
ask("Mongrel starting port: ", "mongrel_port", options.merge({ :answer_type => Integer }))
|
98
|
-
ask("Number of mongrels: ", "mongrel_size", options.merge({ :answer_type => Integer }))
|
99
|
-
|
100
|
-
ask("Domain name (for nginx vhost; no www prefix): ", "domain_name", options)
|
101
|
-
|
102
|
-
# Load default recipes if not set
|
103
|
-
set_default("recipes", YAML.load_file(File.dirname(__FILE__) + "/recipes.yml"))
|
104
|
-
end
|
105
|
-
|
106
|
-
end
|
@@ -1,18 +0,0 @@
|
|
1
|
-
install:
|
2
|
-
memcached_memory: |
|
3
|
-
Memcached memory (in MB).
|
4
|
-
|
5
|
-
set :memcached_memory, 64
|
6
|
-
|
7
|
-
memcached_pid_path: |
|
8
|
-
Path to memcached pid file.
|
9
|
-
Defaults to /var/run/memcached.pid
|
10
|
-
|
11
|
-
set :memcached_pid_path, "/var/run/memcached.pid"
|
12
|
-
|
13
|
-
memcached_port: |
|
14
|
-
Memcached port.
|
15
|
-
Defaults to 11211.
|
16
|
-
|
17
|
-
set :memcached_port, 11211
|
18
|
-
|
data/lib/doc/centos/monit.yml
DELETED
data/lib/doc/centos/mysql.yml
DELETED
data/lib/doc/centos/nginx.yml
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
install:
|
2
|
-
nginx_bin_path: |
|
3
|
-
Nginx sbin path.
|
4
|
-
Defaults to /sbin/nginx
|
5
|
-
|
6
|
-
set :nginx_bin_path, "/sbin/nginx"
|
7
|
-
|
8
|
-
nginx_conf_path: |
|
9
|
-
Path to nginx conf.
|
10
|
-
Defaults to /etc/nginx/nginx.conf
|
11
|
-
|
12
|
-
set :nginx_conf_path, "/etc/nginx/nginx.conf"
|
13
|
-
|
14
|
-
nginx_pid_path: |
|
15
|
-
Path to nginx pid file.
|
16
|
-
Defaults to /var/run/nginx.pid
|
17
|
-
|
18
|
-
set :nginx_pid_path, "/var/run/nginx.pid"
|
19
|
-
|
20
|
-
nginx_prefix_path: |
|
21
|
-
Nginx install prefix.
|
22
|
-
Defaults to /var/nginx
|
23
|
-
|
24
|
-
set :nginx_prefix_path, "/var/nginx"
|
25
|
-
|
data/lib/doc/centos/sphinx.yml
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
install:
|
2
|
-
sphinx_prefix: |
|
3
|
-
Sphinx install prefix.
|
4
|
-
Defaults to "/usr/local/sphinx"
|
5
|
-
|
6
|
-
set :sphinx_prefix, "/usr/local/sphinx"
|
7
|
-
|
8
|
-
setup:
|
9
|
-
sphinx_prefix: |
|
10
|
-
Sphinx install prefix.
|
11
|
-
Defaults to "/usr/local/sphinx"
|
12
|
-
|
13
|
-
set :sphinx_prefix, "/usr/local/sphinx"
|
14
|
-
|
data/lib/doc/gems.yml
DELETED
data/lib/doc/install.yml
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
default:
|
2
|
-
recipes: |
|
3
|
-
Recipes to run as part of install.
|
4
|
-
|
5
|
-
set :recipes, [ "centos:setup_for_web", "packages:install", "centos:ruby:install" ]
|
6
|
-
|
7
|
-
install_user: |
|
8
|
-
The user to run as for install recipes.
|
9
|
-
Defaults to root.
|
10
|
-
|
11
|
-
set :install_user, "root"
|
data/lib/doc/memcached.yml
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
install_monit:
|
2
|
-
memcached_pid_path: |
|
3
|
-
Path to memcached pid file.
|
4
|
-
Defaults to /var/run/memcached.pid
|
5
|
-
|
6
|
-
set :memcached_pid_path, "/var/run/memcached.pid"
|
7
|
-
|
8
|
-
memcached_port: |
|
9
|
-
Memcached port.
|
10
|
-
Defaults to 11211.
|
11
|
-
|
12
|
-
set :memcached_port, 11211
|
13
|
-
|
data/lib/doc/mongrel_cluster.yml
DELETED
data/lib/doc/mysql.yml
DELETED
@@ -1,46 +0,0 @@
|
|
1
|
-
setup:
|
2
|
-
db_name: |
|
3
|
-
Database name (application).
|
4
|
-
|
5
|
-
set :db_name, "app_db_name"
|
6
|
-
|
7
|
-
db_user: |
|
8
|
-
Database user (application).
|
9
|
-
|
10
|
-
set :db_user, "app_db_user"
|
11
|
-
|
12
|
-
db_pass: |
|
13
|
-
Database password (application).
|
14
|
-
|
15
|
-
set :db_pass, "the_password"
|
16
|
-
|
17
|
-
web_host: |
|
18
|
-
Web host to provide access privileges to (if recipe used in context of web app).
|
19
|
-
Defaults to nil
|
20
|
-
TODO: Support multiple web hosts
|
21
|
-
|
22
|
-
set :web_host, 10.0.6.100
|
23
|
-
|
24
|
-
db_host: |
|
25
|
-
Database host (to provide itself with access).
|
26
|
-
|
27
|
-
set :db_host, 10.0.6.101
|
28
|
-
|
29
|
-
mysql_admin_password: |
|
30
|
-
Mysql admin password (to use to connect).
|
31
|
-
Defaults to password prompt.
|
32
|
-
|
33
|
-
set :mysql_admin_password, Proc.new { Capistrano::CLI.ui.ask('Mysql admin password: ') })
|
34
|
-
|
35
|
-
setup_monit:
|
36
|
-
db_port: |
|
37
|
-
Mysql port.
|
38
|
-
Defaults to 3306.
|
39
|
-
|
40
|
-
set :db_port, 3306
|
41
|
-
|
42
|
-
mysql_pid_path: |
|
43
|
-
Path to mysql pid file.
|
44
|
-
Defaults to /var/run/mysqld/mysqld.pid
|
45
|
-
|
46
|
-
set :mysql_pid_path, "/var/run/mysqld/mysqld.pid"
|
data/lib/doc/nginx.yml
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
install_monit:
|
2
|
-
nginx_pid_path: |
|
3
|
-
Path to nginx pid file.
|
4
|
-
Defaults to /var/run/nginx.pid
|
5
|
-
|
6
|
-
set :nginx_pid_path, "/var/run/nginx.pid"
|
7
|
-
|
8
|
-
setup_mongrel:
|
9
|
-
mongrel_size: |
|
10
|
-
Number of mongrels.
|
11
|
-
|
12
|
-
set :mongrel_size, 3
|
13
|
-
|
14
|
-
mongrel_port: |
|
15
|
-
Starting port for mongrels.
|
16
|
-
If there are 3 mongrels with port 9000, then instances will be at 9000, 9001, and 9002
|
17
|
-
|
18
|
-
set :mongrel_port, 9000
|
19
|
-
|
20
|
-
domain_name: |
|
21
|
-
Domain name for nginx virtual host, (without www prefix).
|
22
|
-
|
23
|
-
set :domain_name, "foo.com"
|