railslove_deploy 0.4.2 → 0.4.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,7 +16,7 @@ namespace :db do
16
16
 
17
17
  desc "run the rake db:seed task to load seed data"
18
18
  task :seed, :roles => :db do
19
- rake("db:seed")
19
+ run_rake("db:seed")
20
20
  end
21
21
 
22
22
  desc "Export MySQL database"
@@ -27,7 +27,7 @@ namespace :db do
27
27
 
28
28
  desc "run the rake db:create task for the specific environment"
29
29
  task :create, :roles => :db, :only => { :primary => true } do
30
- rake("db:create")
30
+ run_rake("db:create")
31
31
  end
32
32
 
33
33
  desc "Upload the database yml from the /config/database.yml"
@@ -1,5 +1,5 @@
1
1
  # run a rake task
2
- def rake(task, args={})
2
+ def run_rake(task, args={})
3
3
  rails_env = args[:rails_env] || fetch(:rails_env, "production")
4
4
  rake_env = args[:rake_env] || fetch(:rake_env, "")
5
5
  rake = fetch(:rake, "rake")
@@ -1,6 +1,6 @@
1
1
  package :essentials do
2
2
  description 'Essential Tools'
3
- apt %w{sudo wget make unzip libpcre3 libpcre3-dev libpcrecpp0 libssl-dev libxml2-dev libxml2 libxslt-dev zlib1g-dev libgcrypt11-dev openssl libssl-dev gcc g++ gettext libreadline-dev logrotate ssl-cert flex} do
3
+ apt %w{sudo wget make unzip libcurl4-openssl-dev libpcre3 libpcre3-dev libpcrecpp0 libssl-dev libxml2-dev libxml2 libxslt-dev zlib1g-dev libgcrypt11-dev openssl patch libssl-dev gcc g++ gettext libreadline-dev logrotate ssl-cert flex} do
4
4
  pre :install, 'apt-get update'
5
5
  end
6
6
 
@@ -1,15 +1,7 @@
1
1
  package :git, :provides => :scm do
2
2
  description 'Git Distributed Version Control'
3
- version '1.6.3.1'
4
- source "http://kernel.org/pub/software/scm/git/git-#{version}.tar.gz"
5
- requires :git_dependencies
6
-
3
+ apt 'git-core'
7
4
  verify do
8
- has_file '/usr/local/bin/git'
5
+ has_file '/usr/bin/git'
9
6
  end
10
7
  end
11
-
12
- package :git_dependencies do
13
- description 'Git Build Dependencies'
14
- apt 'git', :dependencies_only => true
15
- end
@@ -0,0 +1,15 @@
1
+ package :mongodb, :provides => :database do
2
+ description 'Mongodb debian package.'
3
+ apt 'mongodb-stable' do
4
+ pre :install, "echo '#mongodb' | tee -a /etc/apt/sources.list"
5
+ pre :install, "echo 'deb http://downloads.mongodb.org/distros/debian 5.0 10gen' | tee -a /etc/apt/sources.list"
6
+ pre :install, "apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10"
7
+ pre :install, "apt-get update"
8
+ end
9
+
10
+ verify do
11
+ has_process 'mongod'
12
+ end
13
+
14
+ requires :essentials
15
+ end
@@ -1,10 +1,10 @@
1
- package :passenger_gem do
1
+ package :passenger_gem do
2
2
  description 'Phusion Passenger (aka mod_rails)'
3
- version '2.2.11'
3
+ version '3.0.7'
4
4
  gem 'passenger'
5
5
  requires :ruby_enterprise
6
-
7
- verify do
6
+
7
+ verify do
8
8
  has_gem 'passenger'
9
9
  end
10
10
  end
@@ -13,45 +13,45 @@ package :passenger_apache, :provides => :appserver do
13
13
  description "Installs and configures Passenger for use with apache webserver"
14
14
  # require the apache passenger module load/conf files before installation because of a sprinkle limitation.
15
15
  requires :apache, :passenger_gem, :passenger_module_load, :passenger_module_conf
16
-
17
- passenger_version = '2.2.11'
18
-
19
- noop do
16
+
17
+ passenger_version = '3.0.7'
18
+
19
+ noop do
20
20
  pre :install, 'passenger-install-apache2-module --auto'
21
21
  post :install, "sudo a2enmod passenger"
22
22
  post :install, 'echo "NameVirtualHost *:80" | sudo tee -a /etc/apache2/httpd.conf'
23
23
  # Restart apache to enable changes
24
24
  post :install, '/etc/init.d/apache2 restart'
25
25
  end
26
-
26
+
27
27
  verify do
28
28
  has_file "/usr/local/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-#{passenger_version}/ext/apache2/mod_passenger.so"
29
29
  end
30
30
  end
31
31
 
32
32
  package :passenger_module_load do
33
-
33
+
34
34
  description "Uploads the passenger module load configuration. -sprinkle currently does not allow multiple installers per package, that's why the configuration files have it's own packages"
35
35
  requires :apache, :passenger_gem
36
-
36
+
37
37
  #TODO: :render => true seems not to work? hello sprinkle?!
38
- passenger_version = '2.2.11'
38
+ passenger_version = '3.0.7'
39
39
  transfer "#{File.dirname(__FILE__)}/../templates/passenger.load", "/etc/apache2/mods-available/passenger.load", :render => true
40
-
40
+
41
41
  verify do
42
42
  has_file '/etc/apache2/mods-available/passenger.load'
43
43
  end
44
44
  end
45
45
 
46
46
  package :passenger_module_conf do
47
-
47
+
48
48
  description "Uploads the passenger module conf configuration. -sprinkle currently does not allow multiple installers per package, that's why the configuration files have it's own packages"
49
49
  requires :apache, :passenger_gem
50
-
51
- #TODO: :render => true seems not to work? hello sprinkle?!
52
- passenger_version = '2.2.11'
50
+
51
+ #TODO: :render => true seems not to work? hello sprinkle?!
52
+ passenger_version = '3.0.7'
53
53
  transfer "#{File.dirname(__FILE__)}/../templates/passenger.conf", "/etc/apache2/mods-available/passenger.conf", :render => true
54
-
54
+
55
55
  verify do
56
56
  has_file '/etc/apache2/mods-available/passenger.conf'
57
57
  end
@@ -59,10 +59,10 @@ end
59
59
 
60
60
  package :passenger_nginx, :provides => :appserver do
61
61
  description "Installs and configures Passenger for use with the awesome nginx webserver"
62
-
62
+
63
63
  requires :passenger_gem
64
-
65
- noop do
64
+
65
+ noop do
66
66
  pre :install, "passenger-install-nginx-module --auto --auto-download"
67
67
  end
68
68
  end
@@ -10,13 +10,12 @@ package :ruby_enterprise, :provides => :ruby do
10
10
  custom_install 'sudo ./installer --auto=/usr/local/ruby-enterprise'
11
11
 
12
12
  ["","#Adding rubyenterprise as path",
13
- "PATH=$PATH:#{install_path}/bin",
14
- "export PATH"].each do |line|
13
+ "export PATH=$PATH:#{install_path}/bin"].each do |line|
15
14
  post :install, "echo '#{line}' | tee -a /etc/profile"
16
15
  end
17
16
 
18
17
  #TODO: figure out how setting the ruby-enterprise dir in PATH variable for sudo
19
- #post :install, "ln -s /usr/local/ruby-enterprise/bin/* /usr/local/bin/"
18
+ post :install, "ln -s /usr/local/ruby-enterprise/bin/* /usr/local/bin/"
20
19
 
21
20
  #reload /etc/profile
22
21
  post :install, "source /etc/profile"
@@ -18,7 +18,7 @@ table filter {
18
18
  interface lo ACCEPT;
19
19
 
20
20
  # respond to ping, but limit that
21
- proto icmp ACCEPT;
21
+ proto icmp ACCEPT;
22
22
 
23
23
  # allow IPsec
24
24
  proto udp dport 500 ACCEPT;
@@ -27,6 +27,9 @@ table filter {
27
27
  # allow the defined tcp connections
28
28
  #proto tcp dport ssh ACCEPT;
29
29
  proto tcp dport $SERVER_TCP_PORTS ACCEPT;
30
+
31
+ # if you want use munin - add this policy here and customize your ip addresses
32
+ # saddr (123.456.789.101 123.456.789.101 123.456.789.101 123.456.789.101) proto tcp dport 4949 ACCEPT;
30
33
  }
31
34
  chain OUTPUT {
32
35
  policy ACCEPT;
@@ -44,13 +47,13 @@ table filter {
44
47
  }
45
48
  }
46
49
 
50
+ # Drop policy for ipv6
47
51
  # IPv6:
48
- #domain ip6 {
49
- # table filter {
50
- # chain INPUT {
51
- # policy ACCEPT;
52
- # # ...
53
- # }
54
- # # ...
55
- # }
56
- #}
52
+ domain ip6 {
53
+ table filter {
54
+ chain INPUT {
55
+ policy DROP;
56
+ interface lo ACCEPT;
57
+ }
58
+ }
59
+ }
@@ -1,3 +1,3 @@
1
- PassengerRoot /usr/local/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-<%= passenger_version || "2.2.11" %>
1
+ PassengerRoot /usr/local/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-<%= passenger_version || "3.0.7" %>
2
2
  PassengerRuby /usr/local/ruby-enterprise/bin/ruby
3
3
  RailsEnv production
@@ -1 +1 @@
1
- LoadModule passenger_module /usr/local/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-<%= passenger_version || "2.2.11" %>/ext/apache2/mod_passenger.so
1
+ LoadModule passenger_module /usr/local/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-<%= passenger_version || "3.0.7" %>/ext/apache2/mod_passenger.so
metadata CHANGED
@@ -1,45 +1,38 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: railslove_deploy
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 4
8
- - 2
9
- version: 0.4.2
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.4.5
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - Michael Bumann
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2010-04-29 00:00:00 +02:00
18
- default_executable: deployify
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2011-09-19 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: capistrano
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- requirements:
25
- - - ">="
26
- - !ruby/object:Gem::Version
27
- segments:
28
- - 2
29
- - 5
30
- version: "2.5"
16
+ requirement: &2154756560 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '2.5'
31
22
  type: :runtime
32
- version_requirements: *id001
33
- description: "The Railslove deploy gem is a collection of sprinkle and capistrano recipes to setup your server and app deployment. Setup your server and deploy your app within minutes and let the script "
23
+ prerelease: false
24
+ version_requirements: *2154756560
25
+ description: ! 'The Railslove deploy gem is a collection of sprinkle and capistrano
26
+ recipes to setup your server and app deployment. Setup your server and deploy your
27
+ app within minutes and let the script '
34
28
  email: michael@railslove.com
35
- executables:
29
+ executables:
36
30
  - deployify
37
31
  extensions: []
38
-
39
- extra_rdoc_files:
32
+ extra_rdoc_files:
40
33
  - LICENSE
41
34
  - TODO
42
- files:
35
+ files:
43
36
  - bin/deployify
44
37
  - lib/railslove/recipes.rb
45
38
  - lib/railslove/recipes/apache.rb
@@ -68,6 +61,7 @@ files:
68
61
  - lib/railslove/sprinkle/git.rb
69
62
  - lib/railslove/sprinkle/image_magick.rb
70
63
  - lib/railslove/sprinkle/memcache.rb
64
+ - lib/railslove/sprinkle/mongodb.rb
71
65
  - lib/railslove/sprinkle/monit.rb
72
66
  - lib/railslove/sprinkle/munin.rb
73
67
  - lib/railslove/sprinkle/mysql.rb
@@ -109,36 +103,29 @@ files:
109
103
  - test/test_helper.rb
110
104
  - LICENSE
111
105
  - TODO
112
- has_rdoc: true
113
106
  homepage: http://github.com/railslove/railslove_deploy
114
107
  licenses: []
115
-
116
108
  post_install_message:
117
- rdoc_options:
118
- - --charset=UTF-8
119
- require_paths:
109
+ rdoc_options: []
110
+ require_paths:
120
111
  - lib
121
- required_ruby_version: !ruby/object:Gem::Requirement
122
- requirements:
123
- - - ">="
124
- - !ruby/object:Gem::Version
125
- segments:
126
- - 0
127
- version: "0"
128
- required_rubygems_version: !ruby/object:Gem::Requirement
129
- requirements:
130
- - - ">="
131
- - !ruby/object:Gem::Version
132
- segments:
133
- - 0
134
- version: "0"
112
+ required_ruby_version: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ required_rubygems_version: !ruby/object:Gem::Requirement
119
+ none: false
120
+ requirements:
121
+ - - ! '>='
122
+ - !ruby/object:Gem::Version
123
+ version: '0'
135
124
  requirements: []
136
-
137
125
  rubyforge_project:
138
- rubygems_version: 1.3.6
126
+ rubygems_version: 1.8.10
139
127
  signing_key:
140
128
  specification_version: 3
141
- summary: The Railslove deploy gem to setup a full ruby server stack. Includes Sprinkle setup scripts and Capistrano deployment recipes.
142
- test_files:
143
- - test/railslove_deploy_test.rb
144
- - test/test_helper.rb
129
+ summary: The Railslove deploy gem to setup a full ruby server stack. Includes Sprinkle
130
+ setup scripts and Capistrano deployment recipes.
131
+ test_files: []