luban-fluentd 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGLOG.md +9 -0
- data/lib/luban/deployment/applications/fluentd/base.rb +18 -0
- data/lib/luban/deployment/applications/fluentd/configurator.rb +1 -0
- data/lib/luban/deployment/applications/fluentd/controller.rb +1 -0
- data/lib/luban/deployment/applications/fluentd/templates/fluentd.monitrc.erb +1 -1
- data/lib/luban/deployment/applications/fluentd/version.rb +1 -1
- data/luban-fluentd.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63fc2275ccca5ac835e96d7f51f648035ec6d1e4
|
4
|
+
data.tar.gz: 58ded4036b4e0a7251890a5601a9d11d0608c285
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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,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
|
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
|
data/luban-fluentd.gemspec
CHANGED
@@ -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.
|
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.
|
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-
|
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.
|
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.
|
26
|
+
version: 0.7.5
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|