capistrano-monit_runit 3.1.1 → 3.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/capistrano-monit_runit.gemspec +3 -3
- data/lib/capistrano/tasks/monit.rake +13 -13
- data/lib/capistrano/tasks/runit.rake +8 -8
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7dd50b21245fe0714fac7125c8bd902fd68388d7
|
4
|
+
data.tar.gz: 1dfc308e9e9f408bb4caeee803a0699c577e4d98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc3c43c65904525028bb0d5d65924c938f0c4cabff0ee57b18de17a33fdde9de3811a0ba283ef7af458998b52fc5a0588370da3081d3d0e162db07822f1c594c
|
7
|
+
data.tar.gz: f92ee2cb6a08db7aee403ac8a6d698b27999c8b5db5853c91224c02e0e1e5a2810a36a9514cc46e4aa1a3cd581114030aa9b39f2e4b55f067b84d888a7c55d40
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.1.
|
1
|
+
3.1.2
|
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: capistrano-monit_runit 3.1.
|
5
|
+
# stub: capistrano-monit_runit 3.1.2 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "capistrano-monit_runit"
|
9
|
-
s.version = "3.1.
|
9
|
+
s.version = "3.1.2"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["Leif Ringstad"]
|
14
|
-
s.date = "2016-03-
|
14
|
+
s.date = "2016-03-22"
|
15
15
|
s.description = "Helpers for capistrano recipes using runit/monit."
|
16
16
|
s.email = "leifcr@gmail.com"
|
17
17
|
s.extra_rdoc_files = [
|
@@ -35,7 +35,7 @@ end
|
|
35
35
|
namespace :monit do
|
36
36
|
desc 'Setup monit for the application'
|
37
37
|
task :setup do
|
38
|
-
on roles(:app) do |host|
|
38
|
+
on roles([:app, :worker]) do |host|
|
39
39
|
info "MONIT: Setting up initial monit configuration on #{host}"
|
40
40
|
if test "[ ! -d #{fetch(:monit_dir)} ]"
|
41
41
|
execute :mkdir, "-p #{fetch(:monit_dir)}"
|
@@ -54,7 +54,7 @@ namespace :monit do
|
|
54
54
|
|
55
55
|
desc 'Enable monit services for application'
|
56
56
|
task :enable do
|
57
|
-
on roles(:app) do |host|
|
57
|
+
on roles([:app, :worker]) do |host|
|
58
58
|
if test("[ ! -h #{monit_etc_app_symlink} ]")
|
59
59
|
info "MONIT: Enabling for #{fetch(:application)} on #{host}"
|
60
60
|
execute :ln, "-sf #{fetch(:monit_application_conf_file)} #{monit_etc_app_symlink}"
|
@@ -66,7 +66,7 @@ namespace :monit do
|
|
66
66
|
|
67
67
|
desc 'Disable monit services for application'
|
68
68
|
task :disable do
|
69
|
-
on roles(:app) do |host|
|
69
|
+
on roles([:app, :worker]) do |host|
|
70
70
|
if test("[ -h #{monit_etc_app_symlink} ]")
|
71
71
|
info "MONIT: Disabling for #{fetch(:application)} on #{host}"
|
72
72
|
execute :rm, "-f #{monit_etc_app_symlink}"
|
@@ -78,7 +78,7 @@ namespace :monit do
|
|
78
78
|
|
79
79
|
desc 'Purge/remove all monit configurations for the application'
|
80
80
|
task :purge do
|
81
|
-
on roles(:app) do |host|
|
81
|
+
on roles([:app, :worker]) do |host|
|
82
82
|
info "MONIT: 'Purging config on #{host}"
|
83
83
|
execute :rm, "-rf #{fetch(:monit_dir)}" if test("[ -d #{fetch(:monit_dir)} ]")
|
84
84
|
execute :rm, "-f #{monit_etc_app_symlink}"
|
@@ -87,7 +87,7 @@ namespace :monit do
|
|
87
87
|
|
88
88
|
desc 'Monitor the application'
|
89
89
|
task :monitor do
|
90
|
-
on roles(:app) do |host|
|
90
|
+
on roles([:app, :worker]) do |host|
|
91
91
|
info "MONIT: Application: Monitoring on #{host}"
|
92
92
|
command_monit_group('monitor')
|
93
93
|
end
|
@@ -95,7 +95,7 @@ namespace :monit do
|
|
95
95
|
|
96
96
|
desc 'Unmonitor the application'
|
97
97
|
task :unmonitor do
|
98
|
-
on roles(:app) do |host|
|
98
|
+
on roles([:app, :worker]) do |host|
|
99
99
|
info "MONIT: Application: Unmonitoring on #{host}"
|
100
100
|
command_monit_group('unmonitor')
|
101
101
|
end
|
@@ -103,7 +103,7 @@ namespace :monit do
|
|
103
103
|
|
104
104
|
desc 'Stop monitoring the application permanent (Monit saves state)'
|
105
105
|
task :stop do
|
106
|
-
on roles(:app) do |host|
|
106
|
+
on roles([:app, :worker]) do |host|
|
107
107
|
info "MONIT: Application: Stopping on #{host}"
|
108
108
|
command_monit_group('stop')
|
109
109
|
end
|
@@ -111,7 +111,7 @@ namespace :monit do
|
|
111
111
|
|
112
112
|
desc 'Start monitoring the application permanent (Monit saves state)'
|
113
113
|
task :start do
|
114
|
-
on roles(:app) do |host|
|
114
|
+
on roles([:app, :worker]) do |host|
|
115
115
|
info "MONIT: Application: Starting on #{host}"
|
116
116
|
command_monit_group('start')
|
117
117
|
end
|
@@ -119,7 +119,7 @@ namespace :monit do
|
|
119
119
|
|
120
120
|
desc 'Restart monitoring the application'
|
121
121
|
task :restart do
|
122
|
-
on roles(:app) do |host|
|
122
|
+
on roles([:app, :worker]) do |host|
|
123
123
|
info "MONIT: Application: Restarting on #{host}"
|
124
124
|
command_monit_group('restart')
|
125
125
|
end
|
@@ -127,7 +127,7 @@ namespace :monit do
|
|
127
127
|
|
128
128
|
desc 'Reload monit config (global)'
|
129
129
|
task :reload do
|
130
|
-
on roles(:app) do |host|
|
130
|
+
on roles([:app, :worker]) do |host|
|
131
131
|
info "MONIT: Global: Reloading on #{host}"
|
132
132
|
command_monit('reload')
|
133
133
|
end
|
@@ -135,7 +135,7 @@ namespace :monit do
|
|
135
135
|
|
136
136
|
desc 'Status monit (global)'
|
137
137
|
task :status do
|
138
|
-
on roles(:app) do |host|
|
138
|
+
on roles([:app, :worker]) do |host|
|
139
139
|
info "MONIT: Global: Status on #{host}"
|
140
140
|
command_monit('status')
|
141
141
|
end
|
@@ -143,7 +143,7 @@ namespace :monit do
|
|
143
143
|
|
144
144
|
desc 'Summary monit (global)'
|
145
145
|
task :summary do
|
146
|
-
on roles(:app) do |host|
|
146
|
+
on roles([:app, :worker]) do |host|
|
147
147
|
info "MONIT: Global: Summary for #{host}"
|
148
148
|
command_monit('summary')
|
149
149
|
end
|
@@ -151,7 +151,7 @@ namespace :monit do
|
|
151
151
|
|
152
152
|
desc 'Validate monit (global)'
|
153
153
|
task :validate do
|
154
|
-
on roles(:app) do |host|
|
154
|
+
on roles([:app, :worker]) do |host|
|
155
155
|
info "MONIT: Global: Validating config on #{host}"
|
156
156
|
command_monit('validate')
|
157
157
|
end
|
@@ -34,7 +34,7 @@ end
|
|
34
34
|
namespace :runit do
|
35
35
|
desc 'Setup runit for the application'
|
36
36
|
task :setup do
|
37
|
-
on roles(:app) do |host|
|
37
|
+
on roles([:app, :worker]) do |host|
|
38
38
|
info "RUNIT: Setting up initial runit configuration on #{host}"
|
39
39
|
if test "[ ! -f #{fetch(:runit_dir)}/.env/HOME ]"
|
40
40
|
if test "[ ! -d #{fetch(:runit_dir)}/.env ]"
|
@@ -48,7 +48,7 @@ namespace :runit do
|
|
48
48
|
namespace :setup do
|
49
49
|
# '[INTERNAL] create /etc/sv folders and upload base templates needed'
|
50
50
|
task :runit_create_app_services do
|
51
|
-
on roles(:app) do |host|
|
51
|
+
on roles([:app, :worker]) do |host|
|
52
52
|
within("#{runit_user_base_path}") do
|
53
53
|
execute :mkdir, "-p #{app_env_folder}"
|
54
54
|
end
|
@@ -64,7 +64,7 @@ namespace :runit do
|
|
64
64
|
|
65
65
|
# [Internal] create log service for app
|
66
66
|
task :runit_create_app_log_services do
|
67
|
-
on roles(:app) do |host|
|
67
|
+
on roles([:app, :worker]) do |host|
|
68
68
|
within("#{runit_base_path}") do
|
69
69
|
execute :mkdir, '-p log'
|
70
70
|
end
|
@@ -77,7 +77,7 @@ namespace :runit do
|
|
77
77
|
end
|
78
78
|
# '[INTERNAL] create /etc/sv folders and upload base templates needed'
|
79
79
|
task :runit_ensure_shared_sockets_and_pids_folders do
|
80
|
-
on roles(:app) do |host|
|
80
|
+
on roles([:app, :worker]) do |host|
|
81
81
|
execute :mkdir, fetch(:pids_path) if test("[ ! -d #{fetch(:pids_path)} ]")
|
82
82
|
execute :mkdir, fetch(:sockets_path) if test("[ ! -d #{fetch(:sockets_path)} ]")
|
83
83
|
end
|
@@ -86,7 +86,7 @@ namespace :runit do
|
|
86
86
|
|
87
87
|
desc 'Disable runit services for application'
|
88
88
|
task :disable do
|
89
|
-
on roles(:app) do |host|
|
89
|
+
on roles([:app, :worker]) do |host|
|
90
90
|
if test "[ -h #{runit_etc_service_app_symlink_name} ]"
|
91
91
|
execute :rm, "-rf '#{runit_etc_service_app_symlink_name}'"
|
92
92
|
info "RUNIT disabling on '#{host}'"
|
@@ -98,7 +98,7 @@ namespace :runit do
|
|
98
98
|
|
99
99
|
desc 'Enable runit services for application'
|
100
100
|
task :enable do
|
101
|
-
on roles(:app) do |host|
|
101
|
+
on roles([:app, :worker]) do |host|
|
102
102
|
if test "[ ! -h #{runit_etc_service_app_symlink_name} ]"
|
103
103
|
execute :ln, "-sf '#{runit_base_path}' '#{runit_etc_service_app_symlink_name}'"
|
104
104
|
info "RUNIT enabling on '#{host}'"
|
@@ -110,7 +110,7 @@ namespace :runit do
|
|
110
110
|
|
111
111
|
desc 'Purge/remove all runit configurations for the application'
|
112
112
|
task :purge do
|
113
|
-
on roles(:app) do |host|
|
113
|
+
on roles([:app, :worker]) do |host|
|
114
114
|
execute :rm, "-rf #{runit_etc_service_app_symlink_name}"
|
115
115
|
execute :rm, "-rf #{runit_base_path}"
|
116
116
|
info "RUNIT purging config on '#{host}'"
|
@@ -120,7 +120,7 @@ namespace :runit do
|
|
120
120
|
%w(stop start once restart).each do |single_cmd|
|
121
121
|
desc "#{single_cmd} runit services for application"
|
122
122
|
task single_cmd.to_sym do
|
123
|
-
on roles(:app) do |host|
|
123
|
+
on roles([:app, :worker]) do |host|
|
124
124
|
info "RUNIT: #{single_cmd} on #{host}"
|
125
125
|
runit_app_services_control(single_cmd)
|
126
126
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-monit_runit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Leif Ringstad
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|