taperole 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8bf41cfdcbab058256cb10905380a4137534666d
|
4
|
+
data.tar.gz: 6095de54ff01aca7d5e95a1b2b6ac07095b94d4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4aa81013f66969e8e65454bb2231a99ecf8cb35797b15cbd016512793c80f8bddee825d0a5382bf868c61c43533a9d15207182d2543d730dfaa98927f414f3e4
|
7
|
+
data.tar.gz: fcf7201fd5593c8bde3a115175320fc46416c9fbb34c41bcaab076186c4a66065e9240da4fd63a02ebe5771ec7540c218361082a43477311398ef0b86009ad3f
|
@@ -1,24 +1,24 @@
|
|
1
|
-
- name: Install DJ monit bin command
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
# - name: Install DJ monit bin command
|
2
|
+
# template: src=dj_monit_runner.j2
|
3
|
+
# dest=/usr/bin/dj_monit_runner
|
4
|
+
# mode=u=rwx,g=rwx,o=r
|
5
|
+
#
|
6
|
+
# - name: Install DJ monit config
|
7
|
+
# template: src=dj_monit_config.j2
|
8
|
+
# dest=/etc/monit/conf.d/delayed_job
|
9
|
+
# mode=u=rw,g=r,o=r
|
10
|
+
# register: dj_monit_config
|
11
|
+
#
|
12
|
+
# - name: Reload Monit
|
13
|
+
# command: bash -lc "monit reload"
|
14
|
+
# when: dj_monit_config.changed
|
5
15
|
|
6
|
-
- name:
|
7
|
-
template: src=dj_monit_config.j2
|
8
|
-
dest=/etc/monit/conf.d/delayed_jobs
|
9
|
-
mode=u=rw,g=r,o=r
|
10
|
-
register: dj_monit_config
|
11
|
-
|
12
|
-
- name: Reload Monit
|
13
|
-
command: bash -lc "monit reload"
|
14
|
-
when: dj_monit_config.changed
|
15
|
-
|
16
|
-
- name: Restart Delayed Job
|
16
|
+
- name: Stop Delayed Job
|
17
17
|
remote_user: "{{ deployer_user.name }}"
|
18
|
-
command: bash -lc "
|
18
|
+
command: bash -lc "cd {{be_app_path}} && RAILS_ENV={{be_app_env}} bin/delayed_job stop -n {{dj_runners}}"
|
19
19
|
tags: [be_deploy]
|
20
20
|
|
21
|
-
- name:
|
21
|
+
- name: Start Delayed Job
|
22
22
|
remote_user: "{{ deployer_user.name }}"
|
23
|
-
command: bash -lc "
|
23
|
+
command: bash -lc "cd {{be_app_path}} && RAILS_ENV={{be_app_env}} bin/delayed_job start -n {{dj_runners}}"
|
24
24
|
tags: [be_deploy]
|
@@ -1,6 +1,6 @@
|
|
1
1
|
check process delayed_job
|
2
2
|
with pidfile {{be_app_path}}/tmp/pids/delayed_job.pid
|
3
3
|
start program "/usr/bin/dj_monit_runner start {{dj_runners}}" as uid {{deployer_user.name}} and gid {{deployer_user.name}}
|
4
|
-
stop program "/usr/bin/dj_monit_runner stop" as uid {{deployer_user.name}} and gid {{deployer_user.name}}
|
4
|
+
stop program "/usr/bin/dj_monit_runner stop {{dj_runners}}" as uid {{deployer_user.name}} and gid {{deployer_user.name}} with timeout 90 seconds
|
5
5
|
if 5 restarts within 5 cycles then timeout
|
6
6
|
if totalmemory > 5 GB for 5 cycles then restart
|
data/taperole.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = "taperole"
|
3
|
-
spec.version = '1.1.
|
3
|
+
spec.version = '1.1.1'
|
4
4
|
spec.authors = ['Jack Forrest', 'Smashing Boxes', 'Brandon Mathis']
|
5
5
|
spec.email = ['jack@smashingboxes.com', 'brandon@sbox.es']
|
6
6
|
spec.summary = 'A tool for provisioning and deploying boxes for hosting Rails apps'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: taperole
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jack Forrest
|
@@ -49,7 +49,6 @@ files:
|
|
49
49
|
- roles/database_load/tasks/db_reset.yml
|
50
50
|
- roles/database_load/tasks/main.yml
|
51
51
|
- roles/delayed_job/defaults/main.yml
|
52
|
-
- roles/delayed_job/meta/main.yml
|
53
52
|
- roles/delayed_job/tasks/main.yml
|
54
53
|
- roles/delayed_job/templates/dj_monit_config.j2
|
55
54
|
- roles/delayed_job/templates/dj_monit_runner.j2
|