capistrano-cluster 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/files/etc/mongod.conf +75 -0
- data/lib/capistrano/cluster/version.rb +1 -1
- data/tasks/roles/mongodb.rake +49 -0
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8094a7fa94972b7d1f68fcaf8b3677e8e35ead3e
|
4
|
+
data.tar.gz: c1f277aeb7e84fa60e5ca6e2d537bb5237a1ee2a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd25d516dc391631288aee8a07a5bec8ce97a2deed2b8eecd59f58cf0406fa63340a1ac44910096fafae8f910f292fbe082c3494f23dbf22bce7b136b59e01bf
|
7
|
+
data.tar.gz: 1ec1aa9c28c5e1f645687d0aacf6bed46db304306103677aa59385482bf463addfa607fd273ba2b2b1815b52b12159692fc200e94b40720281c7008fc572fc25
|
@@ -0,0 +1,75 @@
|
|
1
|
+
# mongod.conf
|
2
|
+
|
3
|
+
# Where to store the data.
|
4
|
+
|
5
|
+
# Note: if you run mongodb as a non-root user (recommended) you may
|
6
|
+
# need to create and set permissions for this directory manually,
|
7
|
+
# e.g., if the parent directory isn't mutable by the mongodb user.
|
8
|
+
dbpath=/var/lib/mongodb
|
9
|
+
|
10
|
+
#where to log
|
11
|
+
logpath=/var/log/mongodb/mongod.log
|
12
|
+
|
13
|
+
logappend=true
|
14
|
+
|
15
|
+
#port = 27017
|
16
|
+
|
17
|
+
# Listen to local interface only. Comment out to listen on all interfaces.
|
18
|
+
bind_ip = 0.0.0.0
|
19
|
+
|
20
|
+
# Disables write-ahead journaling
|
21
|
+
# nojournal = true
|
22
|
+
|
23
|
+
# Enables periodic logging of CPU utilization and I/O wait
|
24
|
+
#cpu = true
|
25
|
+
|
26
|
+
# Turn on/off security. Off is currently the default
|
27
|
+
#noauth = true
|
28
|
+
#auth = true
|
29
|
+
|
30
|
+
# Verbose logging output.
|
31
|
+
#verbose = true
|
32
|
+
|
33
|
+
# Inspect all client data for validity on receipt (useful for
|
34
|
+
# developing drivers)
|
35
|
+
#objcheck = true
|
36
|
+
|
37
|
+
# Enable db quota management
|
38
|
+
#quota = true
|
39
|
+
|
40
|
+
# Set oplogging level where n is
|
41
|
+
# 0=off (default)
|
42
|
+
# 1=W
|
43
|
+
# 2=R
|
44
|
+
# 3=both
|
45
|
+
# 7=W+some reads
|
46
|
+
diaglog = 1
|
47
|
+
|
48
|
+
# Ignore query hints
|
49
|
+
#nohints = true
|
50
|
+
|
51
|
+
# Enable the HTTP interface (Defaults to port 28017).
|
52
|
+
#httpinterface = true
|
53
|
+
|
54
|
+
# Turns off server-side scripting. This will result in greatly limited
|
55
|
+
# functionality
|
56
|
+
#noscripting = true
|
57
|
+
|
58
|
+
# Turns off table scans. Any query that would do a table scan fails.
|
59
|
+
#notablescan = true
|
60
|
+
|
61
|
+
# Disable data file preallocation.
|
62
|
+
#noprealloc = true
|
63
|
+
|
64
|
+
# Specify .ns file size for new databases.
|
65
|
+
# nssize = <size>
|
66
|
+
|
67
|
+
# Replication Options
|
68
|
+
|
69
|
+
# in replicated mongo databases, specify the replica set name here
|
70
|
+
#replSet=setname
|
71
|
+
# maximum size in megabytes for replication operation log
|
72
|
+
#oplogSize=1024
|
73
|
+
# path to a key file storing authentication info for connections
|
74
|
+
# between replica set members
|
75
|
+
#keyFile=/path/to/keyfile
|
@@ -0,0 +1,49 @@
|
|
1
|
+
namespace :setup do
|
2
|
+
namespace :mongodb do
|
3
|
+
|
4
|
+
task :sources do
|
5
|
+
|
6
|
+
on roles(:mongodb) do
|
7
|
+
unless test "[ -f /etc/apt/sources.list.d/mongodb-org-3.0.list ]"
|
8
|
+
sudo %q[apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10]
|
9
|
+
execute %q[echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list]
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
16
|
+
|
17
|
+
task :mongodb do
|
18
|
+
|
19
|
+
on roles(:mongodb) do
|
20
|
+
install "mongodb-org"
|
21
|
+
upload_as :root, file("etc/mongod.conf"), "/etc/mongod.conf"
|
22
|
+
sudo "restart mongod || start mongod"
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
28
|
+
|
29
|
+
namespace :deploy do
|
30
|
+
task :rabbitmq do
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
namespace :firewall do
|
35
|
+
task :mongodb do
|
36
|
+
on roles(:mongodb) do |server|
|
37
|
+
sudo :ufw, :allow, :in, 27017
|
38
|
+
sudo :ufw, :allow, :in, 27018
|
39
|
+
sudo :ufw, :allow, :in, 27019
|
40
|
+
sudo :ufw, :allow, :in, 28017
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
|
46
|
+
before "deploy:publishing", "deploy:mongodb"
|
47
|
+
after "setup:firewall", "firewall:mongodb"
|
48
|
+
after "setup:system", "setup:mongodb"
|
49
|
+
before "setup:packages", "setup:mongodb:sources"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-cluster
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vlad Verestiuc
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -112,6 +112,7 @@ files:
|
|
112
112
|
- files/apt.conf.d/50unattended-upgrades
|
113
113
|
- files/database.yml.erb
|
114
114
|
- files/etc/hosts.erb
|
115
|
+
- files/etc/mongod.conf
|
115
116
|
- files/firewall.erb
|
116
117
|
- files/issue.net
|
117
118
|
- files/lb-sysctl.conf
|
@@ -186,6 +187,7 @@ files:
|
|
186
187
|
- tasks/roles/cache.rake
|
187
188
|
- tasks/roles/db.rake
|
188
189
|
- tasks/roles/indexer.rake
|
190
|
+
- tasks/roles/mongodb.rake
|
189
191
|
- tasks/roles/proxy.rake
|
190
192
|
- tasks/roles/rabbit.rake
|
191
193
|
- tasks/roles/resque.rake
|
@@ -218,3 +220,4 @@ signing_key:
|
|
218
220
|
specification_version: 4
|
219
221
|
summary: Environment setup automation.
|
220
222
|
test_files: []
|
223
|
+
has_rdoc:
|