capistrano-monit_runit 3.0.1 → 3.0.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 +4 -3
- data/lib/capistrano/base.rb +1 -0
- data/lib/capistrano/monit.rb +1 -1
- data/lib/capistrano/runit.rb +1 -1
- data/lib/capistrano/tasks/base.rake +7 -0
- data/lib/capistrano/tasks/monit.rake +4 -2
- data/lib/capistrano/tasks/runit.rake +3 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af366a54fe948e1ff0f9251eab5e160f72941836
|
4
|
+
data.tar.gz: 01f7636c123d304351bfeada4d3368ff5aa95e0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d59f73f6cceeba51f72d5e123449c365be685ff83cfb727c01fb8db5e455d9eb56fd40c794a02b35fa855b0f225fb5b682c847cf7cfa4c380775681fb7e9f5e3
|
7
|
+
data.tar.gz: 5e7edebfd571c7808e30fe44b4d0288382445c3c02de22245a2ad7460c43e579f9570eb131d50c532d5aa16bc22820cd1e2f31b5601fdefc97d850613c8717a5
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.2
|
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: capistrano-monit_runit 3.0.
|
5
|
+
# stub: capistrano-monit_runit 3.0.2 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "capistrano-monit_runit"
|
9
|
-
s.version = "3.0.
|
9
|
+
s.version = "3.0.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 = "2015-
|
14
|
+
s.date = "2015-08-06"
|
15
15
|
s.description = "Helpers for capistrano recipes using runit/monit."
|
16
16
|
s.email = "leifcr@gmail.com"
|
17
17
|
s.extra_rdoc_files = [
|
@@ -26,6 +26,7 @@ Gem::Specification.new do |s|
|
|
26
26
|
"Rakefile",
|
27
27
|
"VERSION",
|
28
28
|
"capistrano-monit_runit.gemspec",
|
29
|
+
"lib/capistrano/base.rb",
|
29
30
|
"lib/capistrano/capistrano-monit_runit.rb",
|
30
31
|
"lib/capistrano/dsl/base_paths.rb",
|
31
32
|
"lib/capistrano/dsl/monit_paths.rb",
|
@@ -0,0 +1 @@
|
|
1
|
+
load File.expand_path('../tasks/base.rake', __FILE__)
|
data/lib/capistrano/monit.rb
CHANGED
@@ -8,5 +8,5 @@ try_require 'capistrano/dsl/base_paths'
|
|
8
8
|
try_require 'capistrano/dsl/monit_paths'
|
9
9
|
try_require 'capistrano/helpers/base'
|
10
10
|
try_require 'capistrano/helpers/monit'
|
11
|
-
|
11
|
+
try_require 'capistrano/base'
|
12
12
|
load File.expand_path('../tasks/monit.rake', __FILE__)
|
data/lib/capistrano/runit.rb
CHANGED
@@ -8,5 +8,5 @@ try_require 'capistrano/dsl/base_paths'
|
|
8
8
|
try_require 'capistrano/dsl/runit_paths'
|
9
9
|
try_require 'capistrano/helpers/base'
|
10
10
|
try_require 'capistrano/helpers/runit'
|
11
|
-
|
11
|
+
try_require 'capistrano/base'
|
12
12
|
load File.expand_path('../tasks/runit.rake', __FILE__)
|
@@ -4,3 +4,10 @@ namespace :load do
|
|
4
4
|
set :sockets_path, proc { shared_path.join('sockets') }
|
5
5
|
end
|
6
6
|
end
|
7
|
+
|
8
|
+
desc 'Get a list over Sudoers entries to add to a file in sudoers.d'
|
9
|
+
task :sudoers do
|
10
|
+
run_locally do
|
11
|
+
info '--- Copy the information below into a a file in sudoers.d ---'
|
12
|
+
end
|
13
|
+
end
|
@@ -49,7 +49,7 @@ namespace :monit do
|
|
49
49
|
desc 'Get the config needed to add to sudoers'
|
50
50
|
task :sudoers do
|
51
51
|
run_locally do
|
52
|
-
|
52
|
+
puts '# -----------------------------------------------------------------------------------------'
|
53
53
|
puts "# Sudo monit entries for #{fetch(:application)}"
|
54
54
|
puts "#{fetch(:user)} ALL=NOPASSWD: /bin/chmod 0700 #{monit_monitrc_file}"
|
55
55
|
puts "#{fetch(:user)} ALL=NOPASSWD: /bin/chmod 0775 #{monit_etc_path}"
|
@@ -63,7 +63,7 @@ namespace :monit do
|
|
63
63
|
puts "#{fetch(:user)} ALL=NOPASSWD: /usr/bin/monit *"
|
64
64
|
puts "#{fetch(:user)} ALL=NOPASSWD: /usr/sbin/service monit *"
|
65
65
|
puts "#{fetch(:user)} ALL=NOPASSWD: /bin/mkdir -p #{fetch(:monit_event_dir)}"
|
66
|
-
|
66
|
+
puts '# -----------------------------------------------------------------------------------------'
|
67
67
|
end
|
68
68
|
# info "#{fetch(:user)} ALL=NOPASSWD: /bin/chown deploy:root #{monit_monitrc_file}"
|
69
69
|
end
|
@@ -235,3 +235,5 @@ before 'monit:disable', 'monit:unmonitor'
|
|
235
235
|
after 'monit:disable', 'monit:reload'
|
236
236
|
|
237
237
|
before 'monit:purge', 'monit:unmonitor'
|
238
|
+
|
239
|
+
after 'sudoers', 'monit:sudoers'
|
@@ -35,7 +35,7 @@ namespace :runit do
|
|
35
35
|
desc 'Get the config needed to add to sudoers for all commands'
|
36
36
|
task :sudoers do
|
37
37
|
run_locally do
|
38
|
-
|
38
|
+
puts '# -----------------------------------------------------------------------------------------'
|
39
39
|
puts "# Sudo runit entries for #{fetch(:application)}"
|
40
40
|
puts "#{fetch(:user)} ALL=NOPASSWD: /bin/mkdir -p #{runit_user_base_path}"
|
41
41
|
puts "#{fetch(:user)} ALL=NOPASSWD: /bin/chown #{fetch(:user)}\\:root #{runit_user_base_path}"
|
@@ -48,7 +48,7 @@ namespace :runit do
|
|
48
48
|
puts "#{fetch(:user)} ALL=NOPASSWD: /bin/chown -R #{fetch(:user)}\\:#{fetch(:runit_log_group)} #{runit_var_log_service_path}" # rubocop:disable Metrics/LineLength:
|
49
49
|
puts "#{fetch(:user)} ALL=NOPASSWD: /bin/chmod 6775 #{runit_var_log_service_path}"
|
50
50
|
puts "#{fetch(:user)} ALL=NOPASSWD: /usr/bin/sv *"
|
51
|
-
|
51
|
+
puts '# -----------------------------------------------------------------------------------------'
|
52
52
|
end
|
53
53
|
# info "#{fetch(:user)} ALL=NOPASSWD: /bin/chown deploy:root #{monit_monitrc_file}"
|
54
54
|
end
|
@@ -171,3 +171,4 @@ after 'deploy:updated', 'runit:enable'
|
|
171
171
|
after 'runit:setup', 'runit:setup:runit_create_app_services'
|
172
172
|
after 'runit:setup:runit_create_app_services', 'runit:setup:runit_create_app_log_services'
|
173
173
|
after 'runit:setup:runit_create_app_services', 'runit:setup:runit_ensure_shared_sockets_and_pids_folders'
|
174
|
+
after 'sudoers', 'runit:sudoers'
|
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.0.
|
4
|
+
version: 3.0.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: 2015-
|
11
|
+
date: 2015-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
@@ -81,6 +81,7 @@ files:
|
|
81
81
|
- Rakefile
|
82
82
|
- VERSION
|
83
83
|
- capistrano-monit_runit.gemspec
|
84
|
+
- lib/capistrano/base.rb
|
84
85
|
- lib/capistrano/capistrano-monit_runit.rb
|
85
86
|
- lib/capistrano/dsl/base_paths.rb
|
86
87
|
- lib/capistrano/dsl/monit_paths.rb
|