rubber 2.0.4 → 2.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +43 -5
- data/Rakefile +67 -35
- data/lib/rubber/recipes/rubber/setup.rb +4 -4
- data/lib/rubber/recipes/rubber/volumes.rb +2 -1
- data/lib/rubber/version.rb +1 -1
- data/rubber.gemspec +2 -0
- data/templates/apache/config/rubber/role/web_tools/tools-apache-vhost.conf +1 -1
- data/templates/apache/config/rubber/role/web_tools/tools-index.html +1 -1
- data/templates/cassandra/config/rubber/deploy-cassandra.rb +1 -1
- data/templates/collectd/config/rubber/deploy-collectd.rb +1 -1
- data/templates/complete_passenger_nginx/config/rubber/rubber-complete.yml +1 -0
- data/templates/elasticsearch/config/rubber/deploy-elasticsearch.rb +1 -1
- data/templates/graphite/config/rubber/deploy-graphite.rb +2 -2
- data/templates/graylog/config/rubber/deploy-graylog.rb +2 -2
- data/templates/jenkins/config/rubber/deploy-jenkins.rb +1 -1
- data/templates/mongodb/config/rubber/deploy-mongodb.rb +1 -1
- data/templates/mysql_cluster/config/rubber/deploy-mysql_cluster.rb +3 -3
- data/templates/passenger_nginx/config/rubber/role/passenger_nginx/nginx.conf +1 -1
- data/templates/redis/config/rubber/deploy-redis.rb +1 -1
- data/templates/torquebox/config/rubber/deploy-torquebox.rb +104 -0
- data/templates/torquebox/config/rubber/role/app/mod_manager.load +5 -0
- data/templates/torquebox/config/rubber/role/app/mod_proxy_cluster.conf +7 -0
- data/templates/torquebox/config/rubber/role/app/mod_proxy_cluster.load +5 -0
- data/templates/torquebox/config/rubber/role/app/mod_slotmem.load +5 -0
- data/templates/torquebox/config/rubber/role/app/torquebox-apache-vhost.conf +102 -0
- data/templates/torquebox/config/rubber/role/torquebox/monit-torquebox.conf +8 -0
- data/templates/torquebox/config/rubber/role/torquebox/standalone-ha.xml +616 -0
- data/templates/torquebox/config/rubber/role/torquebox/standalone.conf +83 -0
- data/templates/torquebox/config/rubber/role/torquebox/torquebox-upstart.conf +23 -0
- data/templates/torquebox/config/rubber/rubber-torquebox.yml +16 -0
- data/templates/torquebox/templates.yml +3 -0
- data/templates/zookeeper/config/rubber/deploy-zookeeper.rb +1 -1
- metadata +32 -4
@@ -0,0 +1,83 @@
|
|
1
|
+
<%
|
2
|
+
@path = "#{rubber_env.torquebox_dir}/jboss/bin/standalone.conf"
|
3
|
+
@post = "service torquebox restart || true"
|
4
|
+
%>
|
5
|
+
## -*- shell-script -*- ######################################################
|
6
|
+
## ##
|
7
|
+
## JBoss Bootstrap Script Configuration ##
|
8
|
+
## ##
|
9
|
+
##############################################################################
|
10
|
+
|
11
|
+
#
|
12
|
+
# This file is optional; it may be removed if not needed.
|
13
|
+
#
|
14
|
+
|
15
|
+
#
|
16
|
+
# Specify the maximum file descriptor limit, use "max" or "maximum" to use
|
17
|
+
# the default, as queried by the system.
|
18
|
+
#
|
19
|
+
# Defaults to "maximum"
|
20
|
+
#
|
21
|
+
#MAX_FD="maximum"
|
22
|
+
|
23
|
+
#
|
24
|
+
# Specify the profiler configuration file to load.
|
25
|
+
#
|
26
|
+
# Default is to not load profiler configuration file.
|
27
|
+
#
|
28
|
+
#PROFILER=""
|
29
|
+
|
30
|
+
#
|
31
|
+
# Specify the location of the Java home directory. If set then $JAVA will
|
32
|
+
# be defined to $JAVA_HOME/bin/java, else $JAVA will be "java".
|
33
|
+
#
|
34
|
+
#JAVA_HOME="/opt/java/jdk"
|
35
|
+
|
36
|
+
#
|
37
|
+
# Specify the exact Java VM executable to use.
|
38
|
+
#
|
39
|
+
#JAVA=""
|
40
|
+
|
41
|
+
if [ "x$JBOSS_MODULES_SYSTEM_PKGS" = "x" ]; then
|
42
|
+
JBOSS_MODULES_SYSTEM_PKGS="org.jboss.byteman"
|
43
|
+
fi
|
44
|
+
|
45
|
+
# Uncomment the following line to prevent manipulation of JVM options
|
46
|
+
# by shell scripts.
|
47
|
+
#
|
48
|
+
#PRESERVE_JAVA_OPTS=true
|
49
|
+
|
50
|
+
#
|
51
|
+
# Specify options to pass to the Java VM.
|
52
|
+
#
|
53
|
+
if [ "x$JAVA_OPTS" = "x" ]; then
|
54
|
+
JAVA_OPTS="-Xms64m -Xmx768m -Xss2048k -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -server"
|
55
|
+
JAVA_OPTS="$JAVA_OPTS -Djboss.modules.system.pkgs=$JBOSS_MODULES_SYSTEM_PKGS -Djava.awt.headless=true"
|
56
|
+
JAVA_OPTS="$JAVA_OPTS -Djboss.bind.address=<%= rubber_env.full_host %>"
|
57
|
+
JAVA_OPTS="$JAVA_OPTS -Djboss.mod_cluster.proxyList=<%= rubber_instances.for_role('web').collect { |host| "#{host.full_name}:80" }.join(',') %>"
|
58
|
+
JAVA_OPTS="$JAVA_OPTS -Djboss.server.default.config=standalone-ha.xml"
|
59
|
+
else
|
60
|
+
echo "JAVA_OPTS already set in environment; overriding default settings with values: $JAVA_OPTS"
|
61
|
+
fi
|
62
|
+
|
63
|
+
# Sample JPDA settings for remote socket debugging
|
64
|
+
#JAVA_OPTS="$JAVA_OPTS -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"
|
65
|
+
|
66
|
+
# Sample JPDA settings for shared memory debugging
|
67
|
+
#JAVA_OPTS="$JAVA_OPTS -Xrunjdwp:transport=dt_shmem,server=y,suspend=n,address=jboss"
|
68
|
+
|
69
|
+
# Uncomment to not use JBoss Modules lockless mode
|
70
|
+
#JAVA_OPTS="$JAVA_OPTS -Djboss.modules.lockless=false"
|
71
|
+
|
72
|
+
# Uncomment to gather JBoss Modules metrics
|
73
|
+
#JAVA_OPTS="$JAVA_OPTS -Djboss.modules.metrics=true"
|
74
|
+
|
75
|
+
|
76
|
+
JAVA_OPTS="$JAVA_OPTS $APPEND_JAVA_OPTS"
|
77
|
+
|
78
|
+
# Prevent RVM from messing with TorqueBox loading.
|
79
|
+
unset GEM_PATH
|
80
|
+
|
81
|
+
# Make sure we capture the PID.
|
82
|
+
LAUNCH_JBOSS_IN_BACKGROUND=true
|
83
|
+
JBOSS_PIDFILE=<%= rubber_env.torquebox_pid_file %>
|
@@ -0,0 +1,23 @@
|
|
1
|
+
<%
|
2
|
+
@path = "/etc/init/torquebox.conf"
|
3
|
+
@backup = false
|
4
|
+
%>
|
5
|
+
description "This is an upstart job file for TorqueBox"
|
6
|
+
|
7
|
+
pre-start script
|
8
|
+
bash << "EOF"
|
9
|
+
mkdir -p /var/log/torquebox
|
10
|
+
chown -R <%= rubber_env.app_user %> /var/log/torquebox
|
11
|
+
EOF
|
12
|
+
end script
|
13
|
+
|
14
|
+
start on started network-services
|
15
|
+
stop on stopped network-services
|
16
|
+
respawn
|
17
|
+
|
18
|
+
script
|
19
|
+
bash << "EOF"
|
20
|
+
su - <%= rubber_env.app_user %>
|
21
|
+
<%= rubber_env.torquebox_dir %>/jboss/bin/standalone.sh >> /var/log/torquebox/torquebox.log 2>&1
|
22
|
+
EOF
|
23
|
+
end script
|
@@ -0,0 +1,16 @@
|
|
1
|
+
torquebox_version: 2.0.3
|
2
|
+
torquebox_prefix: /opt
|
3
|
+
torquebox_dir: "#{torquebox_prefix}/torquebox"
|
4
|
+
torquebox_pid_file: "#{torquebox_dir}/jboss/standalone/torquebox.pid"
|
5
|
+
torquebox_http_port: 9090
|
6
|
+
torquebox_https_port: 9443
|
7
|
+
torquebox_ajp_port: 8009
|
8
|
+
|
9
|
+
backstage_user: rubber
|
10
|
+
backstage_password: rubber
|
11
|
+
|
12
|
+
mod_cluster_version: 1.2.0
|
13
|
+
|
14
|
+
roles:
|
15
|
+
torquebox:
|
16
|
+
packages: [openjdk-7-jdk libaio1]
|
@@ -25,7 +25,7 @@ namespace :rubber do
|
|
25
25
|
exists = capture("echo $(ls #{rubber_env.zookeeper_data_dir} 2> /dev/null)")
|
26
26
|
if exists.strip.size == 0
|
27
27
|
rubber.update_code_for_bootstrap
|
28
|
-
rubber.run_config(:file => "role/zookeeper", :force => true, :deploy_path => release_path)
|
28
|
+
rubber.run_config(:file => "role/zookeeper/", :force => true, :deploy_path => release_path)
|
29
29
|
|
30
30
|
restart
|
31
31
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubber
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-
|
13
|
+
date: 2012-06-12 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: capistrano
|
@@ -28,6 +28,22 @@ dependencies:
|
|
28
28
|
- - ~>
|
29
29
|
- !ruby/object:Gem::Version
|
30
30
|
version: '2.12'
|
31
|
+
- !ruby/object:Gem::Dependency
|
32
|
+
name: net-ssh
|
33
|
+
requirement: !ruby/object:Gem::Requirement
|
34
|
+
none: false
|
35
|
+
requirements:
|
36
|
+
- - ~>
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: 2.4.0
|
39
|
+
type: :runtime
|
40
|
+
prerelease: false
|
41
|
+
version_requirements: !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
43
|
+
requirements:
|
44
|
+
- - ~>
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 2.4.0
|
31
47
|
- !ruby/object:Gem::Dependency
|
32
48
|
name: thor
|
33
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -543,6 +559,18 @@ files:
|
|
543
559
|
- templates/sphinx/config/rubber/role/sphinx/crontab
|
544
560
|
- templates/sphinx/config/rubber/rubber-sphinx.yml
|
545
561
|
- templates/sphinx/templates.yml
|
562
|
+
- templates/torquebox/config/rubber/deploy-torquebox.rb
|
563
|
+
- templates/torquebox/config/rubber/role/app/mod_manager.load
|
564
|
+
- templates/torquebox/config/rubber/role/app/mod_proxy_cluster.conf
|
565
|
+
- templates/torquebox/config/rubber/role/app/mod_proxy_cluster.load
|
566
|
+
- templates/torquebox/config/rubber/role/app/mod_slotmem.load
|
567
|
+
- templates/torquebox/config/rubber/role/app/torquebox-apache-vhost.conf
|
568
|
+
- templates/torquebox/config/rubber/role/torquebox/monit-torquebox.conf
|
569
|
+
- templates/torquebox/config/rubber/role/torquebox/standalone-ha.xml
|
570
|
+
- templates/torquebox/config/rubber/role/torquebox/standalone.conf
|
571
|
+
- templates/torquebox/config/rubber/role/torquebox/torquebox-upstart.conf
|
572
|
+
- templates/torquebox/config/rubber/rubber-torquebox.yml
|
573
|
+
- templates/torquebox/templates.yml
|
546
574
|
- templates/unicorn/config/rubber/deploy-unicorn.rb
|
547
575
|
- templates/unicorn/config/rubber/role/nginx/unicorn_nginx.conf
|
548
576
|
- templates/unicorn/config/rubber/role/unicorn/unicorn.rb
|
@@ -610,7 +638,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
610
638
|
version: '0'
|
611
639
|
segments:
|
612
640
|
- 0
|
613
|
-
hash:
|
641
|
+
hash: 3015092347562391362
|
614
642
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
615
643
|
none: false
|
616
644
|
requirements:
|
@@ -619,7 +647,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
619
647
|
version: '0'
|
620
648
|
segments:
|
621
649
|
- 0
|
622
|
-
hash:
|
650
|
+
hash: 3015092347562391362
|
623
651
|
requirements: []
|
624
652
|
rubyforge_project: rubber
|
625
653
|
rubygems_version: 1.8.21
|