deploy_mate 0.1 → 0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -1
  3. data/CHANGELOG.md +19 -0
  4. data/Gemfile.lock +9 -7
  5. data/README.md +57 -29
  6. data/deploy-mate.gemspec +5 -8
  7. data/lib/capistrano/configs/application.pill.erb +59 -0
  8. data/lib/capistrano/configs/fail2ban-nginx-request-limit-filter.conf.erb +13 -0
  9. data/lib/capistrano/configs/fail2ban-nginx-request-limit-jail.conf.erb +494 -0
  10. data/lib/capistrano/configs/logrotate.erb +2 -2
  11. data/lib/capistrano/configs/nginx_app.conf.erb +9 -4
  12. data/lib/capistrano/configs/nginx_base.conf.erb +1 -1
  13. data/lib/capistrano/configs/puma.rb.erb +64 -0
  14. data/lib/capistrano/configs/upstart.conf.erb +1 -1
  15. data/lib/capistrano/deploy_mate_capfile.rb +2 -2
  16. data/lib/capistrano/deploy_mate_defaults.rb +5 -4
  17. data/lib/capistrano/helpers.rb +4 -2
  18. data/lib/capistrano/modules/shell.rb +7 -0
  19. data/lib/capistrano/modules/user_management.rb +11 -0
  20. data/lib/capistrano/scripts/create_ubuntu_user.sh +9 -0
  21. data/lib/capistrano/scripts/set_defaults.sh +2 -1
  22. data/lib/capistrano/tasks/bluepill.rake +29 -5
  23. data/lib/capistrano/tasks/elasticsearch.rake +18 -0
  24. data/lib/capistrano/tasks/fail2ban.rake +22 -0
  25. data/lib/capistrano/tasks/logrotate.rake +1 -0
  26. data/lib/capistrano/tasks/machine.rake +99 -17
  27. data/lib/capistrano/tasks/nginx.rake +7 -4
  28. data/lib/capistrano/tasks/puma.rake +18 -0
  29. data/lib/capistrano/tasks/unicorn.rake +1 -17
  30. data/lib/capistrano/tasks/upstart.rake +2 -0
  31. data/lib/deploy_mate/tasks.rake +52 -45
  32. data/lib/deploy_mate/templates/Capfile.erb +9 -2
  33. data/lib/deploy_mate/templates/deploy/stage.rb.erb +4 -4
  34. data/lib/deploy_mate/templates/deploy.rb.erb +22 -4
  35. data/lib/deploy_mate/templates/deploy_mate.yml.erb +79 -0
  36. data/lib/deploy_mate.rb +9 -0
  37. metadata +19 -5
  38. data/lib/capistrano/configs/unicorn.pill.erb +0 -28
metadata CHANGED
@@ -1,14 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deploy_mate
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.1'
4
+ version: '0.2'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Adler
8
+ - Marcus Geißler
9
+ - Johannes Strampe
8
10
  autorequire:
9
11
  bindir: bin
10
12
  cert_chain: []
11
- date: 2015-04-02 00:00:00.000000000 Z
13
+ date: 2016-03-22 00:00:00.000000000 Z
12
14
  dependencies:
13
15
  - !ruby/object:Gem::Dependency
14
16
  name: capistrano
@@ -67,7 +69,7 @@ dependencies:
67
69
  - !ruby/object:Gem::Version
68
70
  version: '0'
69
71
  description: This is how we deploy around here.
70
- email: tim.adler (at) hanseventures (dot) com
72
+ email: development (at) hanseventures (dot) com
71
73
  executables: []
72
74
  extensions: []
73
75
  extra_rdoc_files: []
@@ -76,16 +78,20 @@ files:
76
78
  - ".rubocop.yml"
77
79
  - ".ruby-gemset"
78
80
  - ".ruby-version"
81
+ - CHANGELOG.md
79
82
  - Gemfile
80
83
  - Gemfile.lock
81
84
  - README.md
82
85
  - Rakefile
83
86
  - deploy-mate.gemspec
84
87
  - lib/capistrano/README.md
88
+ - lib/capistrano/configs/application.pill.erb
89
+ - lib/capistrano/configs/fail2ban-nginx-request-limit-filter.conf.erb
90
+ - lib/capistrano/configs/fail2ban-nginx-request-limit-jail.conf.erb
85
91
  - lib/capistrano/configs/logrotate.erb
86
92
  - lib/capistrano/configs/nginx_app.conf.erb
87
93
  - lib/capistrano/configs/nginx_base.conf.erb
88
- - lib/capistrano/configs/unicorn.pill.erb
94
+ - lib/capistrano/configs/puma.rb.erb
89
95
  - lib/capistrano/configs/unicorn.rb.erb
90
96
  - lib/capistrano/configs/upstart.conf.erb
91
97
  - lib/capistrano/deploy_mate_capfile.rb
@@ -93,22 +99,30 @@ files:
93
99
  - lib/capistrano/helpers.rb
94
100
  - lib/capistrano/modules/aptitude.rb
95
101
  - lib/capistrano/modules/bluepill.rb
102
+ - lib/capistrano/modules/shell.rb
96
103
  - lib/capistrano/modules/upstart.rb
104
+ - lib/capistrano/modules/user_management.rb
105
+ - lib/capistrano/scripts/create_ubuntu_user.sh
97
106
  - lib/capistrano/scripts/install_ruby.sh
98
107
  - lib/capistrano/scripts/install_rvm.sh
99
108
  - lib/capistrano/scripts/set_defaults.sh
100
109
  - lib/capistrano/tasks/bluepill.rake
110
+ - lib/capistrano/tasks/elasticsearch.rake
111
+ - lib/capistrano/tasks/fail2ban.rake
101
112
  - lib/capistrano/tasks/logrotate.rake
102
113
  - lib/capistrano/tasks/machine.rake
103
114
  - lib/capistrano/tasks/nginx.rake
115
+ - lib/capistrano/tasks/puma.rake
104
116
  - lib/capistrano/tasks/rvm.rake
105
117
  - lib/capistrano/tasks/seeds.rake
106
118
  - lib/capistrano/tasks/unicorn.rake
107
119
  - lib/capistrano/tasks/upstart.rake
120
+ - lib/deploy_mate.rb
108
121
  - lib/deploy_mate/tasks.rake
109
122
  - lib/deploy_mate/templates/Capfile.erb
110
123
  - lib/deploy_mate/templates/deploy.rb.erb
111
124
  - lib/deploy_mate/templates/deploy/stage.rb.erb
125
+ - lib/deploy_mate/templates/deploy_mate.yml.erb
112
126
  homepage: https://github.com/hanseventures/deploy-mate
113
127
  licenses:
114
128
  - MIT
@@ -129,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
143
  version: '0'
130
144
  requirements: []
131
145
  rubyforge_project:
132
- rubygems_version: 2.4.6
146
+ rubygems_version: 2.4.5.1
133
147
  signing_key:
134
148
  specification_version: 4
135
149
  summary: This is how we deploy around here.
@@ -1,28 +0,0 @@
1
- shared_path = "<%= shared_path %>"
2
- current_path = "<%= current_path %>"
3
-
4
- Bluepill.application("<%= fetch(:application) %>", :log_file => "#{shared_path}/log/bluepill.log") do |app|
5
-
6
- app.working_dir = current_path
7
- app.uid = 'ubuntu'
8
- app.gid = 'www-data'
9
- app.process("unicorn") do |process|
10
- process.pid_file = "#{shared_path}/system/pids/unicorn.pid"
11
- process.environment = { 'BUNDLE_GEMFILE' => "#{current_path}/Gemfile" }
12
-
13
- process.start_command = "/home/ubuntu/.rvm/wrappers/default/bundle exec unicorn -c #{shared_path}/config/unicorn.rb -E <%= fetch(:environment) %> -D"
14
- process.stop_command = "kill -QUIT {{PID}}"
15
- process.restart_command = "kill -USR2 {{PID}}"
16
-
17
- process.start_grace_time = 10.seconds
18
- process.stop_grace_time = 10.seconds
19
- process.restart_grace_time = 10.seconds
20
-
21
- process.monitor_children do |child_process|
22
- child_process.stop_command = "kill -9 {{PID}}"
23
-
24
- child_process.checks :mem_usage, :every => 30.seconds, :below => 500.megabytes, :times => [3,4], :fires => :stop
25
- end
26
- end
27
-
28
- end