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: 381889ad9f30af9db293aa6ce5399f4978349b1c
4
- data.tar.gz: e5f37142b7d22ac0529bc676b6686b1ff14d4f3d
3
+ metadata.gz: 8bf41cfdcbab058256cb10905380a4137534666d
4
+ data.tar.gz: 6095de54ff01aca7d5e95a1b2b6ac07095b94d4d
5
5
  SHA512:
6
- metadata.gz: aba42bab23247d0624fc0b9d03d3bb2e89007129bdf8e05d687b0d0efee9a38996226e6856f02f10457a69927eeadb4cb175ae68ff335e3948883d1ee6150788
7
- data.tar.gz: 04b19dd30374fe2323c2bd4fb198a9ef96fd634728b1e121623f8dbf26c0caac61c4ab284078a23f37d2e8ca054f19aee48078056a056a762feeec328574e36c
6
+ metadata.gz: 4aa81013f66969e8e65454bb2231a99ecf8cb35797b15cbd016512793c80f8bddee825d0a5382bf868c61c43533a9d15207182d2543d730dfaa98927f414f3e4
7
+ data.tar.gz: fcf7201fd5593c8bde3a115175320fc46416c9fbb34c41bcaab076186c4a66065e9240da4fd63a02ebe5771ec7540c218361082a43477311398ef0b86009ad3f
@@ -1,24 +1,24 @@
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
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: Install DJ monit config
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 "sudo monit stop delayed_job"
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: Restart Delayed Job
21
+ - name: Start Delayed Job
22
22
  remote_user: "{{ deployer_user.name }}"
23
- command: bash -lc "sudo monit start delayed_job"
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  USER={{deployer_user.name}}
4
4
  APP_PATH={{be_app_path}}
5
- PATH={{rbenv_root}}/bin:{{rbenv_root}}/shims:$PATH
5
+ PATH=/usr/local/rbenv/bin:/usr/local/rbenv/shims:$PATH
6
6
  RAILS_ENV={{be_app_env}}
7
7
 
8
8
  cd $APP_PATH
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.0'
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.0
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
@@ -1,3 +0,0 @@
1
- ---
2
- dependencies:
3
- - role: zzet.rbenv