luban-fluentd 0.1.0 → 0.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: 9c957ad38eeb5db77d08384d8a1050e39f1cb747
4
- data.tar.gz: 373da149b6ba05fa3ca0bf44b6bc25218a7fdf4c
3
+ metadata.gz: 63fc2275ccca5ac835e96d7f51f648035ec6d1e4
4
+ data.tar.gz: 58ded4036b4e0a7251890a5601a9d11d0608c285
5
5
  SHA512:
6
- metadata.gz: 766eb652feb4a55f17584bd05997fc46e5dc0771c3298e578d6bd24a85491171603697cb2dff447b261ef04550209898a563a2c79c81e83f3a1e9f79b8347d99
7
- data.tar.gz: 22aaa273e5c48d194ddf2577e7f87a5109ca580e8730759abd0670683041d306f9458b444e78b7635cee5a92c6264613b66f3033aae3ec14268e22beff4cce74
6
+ metadata.gz: 3681d2cc0575fba80d52ee8e4aa56805fd6ec2640e377959a7c0d730ff0d83843e26ee0f66747570cc58699f0afa9feffe887c3462a16f133392c58dedb676a0
7
+ data.tar.gz: b15131280674285ae189eb0653353a4cb73d909939d34b1ed897d950be29b68206a6bdd2ac8eb6e8d3a5fe6139e9b23b8d2bd577a4f87e109d45147015659ff6
data/CHANGLOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Change log
2
2
 
3
+ ## Version 0.1.1 (Aug 30, 2016)
4
+
5
+ Minor enhancements:
6
+ * Added 5 seconds delay in Monit config after fluentd start command is executed to avoid race condition between Monit and start command
7
+ * Bump up gem dependency on Luban to version 0.7.5
8
+
9
+ Bug fixes:
10
+ * Properly named control file, pid file, log file and logrorate file
11
+
3
12
  ## Version 0.1.0 (Aug 23, 2016)
4
13
 
5
14
  New features:
@@ -2,6 +2,24 @@ module Luban
2
2
  module Deployment
3
3
  module Applications
4
4
  class Fluentd < Luban::Deployment::Application
5
+ module Paths
6
+ def pid_file_name
7
+ @pid_file_name ||= "fluentd.pid"
8
+ end
9
+
10
+ def control_file_name
11
+ @control_file_name ||= "fluentd.conf"
12
+ end
13
+
14
+ def logrotate_file_name
15
+ @logrotate_file_name ||= "fluentd.logrotate"
16
+ end
17
+
18
+ def log_file_name
19
+ @log_file_name ||= "fluentd.log"
20
+ end
21
+ end
22
+
5
23
  module Parameters
6
24
  extend Luban::Deployment::Parameters::Base
7
25
 
@@ -3,6 +3,7 @@ module Luban
3
3
  module Applications
4
4
  class Fluentd
5
5
  class Configurator < Luban::Deployment::Application::Configurator
6
+ include Paths
6
7
  include Parameters
7
8
  include Controller::Commands
8
9
 
@@ -25,6 +25,7 @@ module Luban
25
25
  end
26
26
  end
27
27
 
28
+ include Paths
28
29
  include Parameters
29
30
  include Commands
30
31
  end
@@ -3,7 +3,7 @@
3
3
  check process <%= service_entry %>
4
4
  with pidfile <%= pid_file_path %>
5
5
  onreboot laststate
6
- start program = "/bin/bash -c 'sleep 1; <%= compose_command(start_command) %>; sleep 1'"
6
+ start program = "/bin/bash -c 'sleep 1; <%= compose_command(start_command) %>; sleep 5'"
7
7
  stop program = "/bin/bash -c '<%= compose_command(stop_command) %>'"
8
8
  if totalmem is greater than 50.0 MB for 40 cycles then restart
9
9
  if failed port <%= port %> for 4 times within 8 cycles then restart
@@ -2,7 +2,7 @@ module Luban
2
2
  module Deployment
3
3
  module Applications
4
4
  class Fluentd
5
- VERSION = '0.1.0'
5
+ VERSION = '0.1.1'
6
6
  end
7
7
  end
8
8
  end
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
  spec.require_paths = ["lib"]
21
21
 
22
22
  spec.required_ruby_version = ">= 2.1.0"
23
- spec.add_dependency 'luban', ">= 0.7.3"
23
+ spec.add_dependency 'luban', ">= 0.7.5"
24
24
 
25
25
  spec.add_development_dependency "bundler", "~> 1.12"
26
26
  spec.add_development_dependency "rake", "~> 10.0"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: luban-fluentd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rubyist Chi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-08-25 00:00:00.000000000 Z
11
+ date: 2016-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: luban
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.7.3
19
+ version: 0.7.5
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 0.7.3
26
+ version: 0.7.5
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement