Permalink
Browse files

All in one fluentd plugins

  • Loading branch information...
1 parent 2a78f8a commit 5163df1292265bb7ccc424dac0f27d0e7f7c67dd @n0ts committed Apr 1, 2016
Showing with 45 additions and 3 deletions.
  1. +2 −0 Vagrantfile
  2. +13 −0 bin/gem_downloader
  3. +1 −1 config/projects/td-agent2.rb
  4. +2 −1 config/software/fluentd.rb
  5. +6 −1 lib/gems_parser.rb
  6. +21 −0 plugin_gems.rb
View
@@ -122,6 +122,7 @@ Vagrant.configure('2') do |config|
cd #{guest_project_path}
bundle install --path=/home/#{project_build_user}/.bundler
bundle exec omnibus build #{project_name}2
+ gem install --no-document specific_install
OMNIBUS_BUILD
end # config.vm.define.platform
end # each_with_index
@@ -187,6 +188,7 @@ Vagrant.configure('2') do |config|
cd #{guest_project_path}
bundle install --path=/home/#{project_build_user}/.bundler
bundle exec omnibus build #{project_name}2
+ gem install --no-document specific_install
OMNIBUS_BUILD
end # config.vm.define.platform
end # Vagrant.configure
View
@@ -27,4 +27,17 @@ Dir.chdir(gp.target_dir) {
}
index += 1
}
+
+ gp.target_custom_files.each { |n, v, gem|
+ path = sprintf(file_format, index, n.gsub('/', '-'), v)
+ p path
+ loop {
+ `gem specific_install #{n} #{v}`
+ gem_file = File.join(ENV['GEM_PATH'].split(':')[0], 'cache', "#{gem}.gem")
+ FileUtils.cp(gem_file, path)
+ break if $?.success?
+ sleep 1
+ }
+ index += 1
+ }
}
@@ -9,7 +9,7 @@
install_dir "/opt/td-agent"
build_version "2.3.1"
-build_iteration 0
+build_iteration 1
# creates required build directories
dependency "preparation"
@@ -1,5 +1,6 @@
name "fluentd"
-default_version 'aee8086e9fcd3b45fa11b83e866fd758cb79bffb'
+# v0.12.22
+default_version '282af784d20bdf0502d697d7c4810251cab2ca70'
dependency "ruby"
#dependency "bundler"
View
@@ -8,9 +8,10 @@ def self.parse(file)
def initialize
@target_dir = nil
@target_files = []
+ @target_custom_files = []
end
- attr_reader :target_dir, :target_files
+ attr_reader :target_dir, :target_files, :target_custom_files
def parse(file)
self.instance_eval(file)
@@ -23,4 +24,8 @@ def dir(path)
def download(name, ver)
@target_files << [name, ver]
end
+
+ def github(repo, branch = "master", gem)
+ @target_custom_files << [repo, branch, gem]
+ end
end
View
@@ -1,4 +1,5 @@
dir 'plugin_gems'
+download "specific_install", "0.3.1"
download "httpclient", "2.7.1"
download "td-client", "0.8.78"
download "td", "0.13.2"
@@ -18,3 +19,23 @@
download "string-scrub", "0.0.5"
download "fluent-plugin-rewrite-tag-filter", "1.5.4"
download "fluent-plugin-td-monitoring", "0.2.2"
+
+download "fluent-plugin-dstat", "0.3.1"
+download "fluent-plugin-datadog_event", "0.1.2"
+download "fluent-plugin-dogstatsd", "0.0.5"
+download "fluent-plugin-elasticsearch", "1.4.0"
+download "fluent-plugin-file-alternative", "0.2.2"
+download "fluent-plugin-filter_typecast", "0.0.2"
+download "fluent-plugin-flowcounter", "0.4.1"
+download "fluent-plugin-forest", "0.3.0"
+download "fluent-plugin-grep", "0.3.4"
+# use custom version n0ts/fluent-plugin-map/my-develop
+#download "fluent-plugin-map", ""
+download "fluent-plugin-multiprocess", "0.2.0"
+download "fluent-plugin-record-modifier", "0.4.1"
+download "fluent-plugin-record-reformer", "0.8.1"
+download "fluent-plugin-sampling-filter", "0.2.0"
+download "fluent-plugin-typecast", "0.2.0"
+download "dogapi", "1.21.0"
+
+github "n0ts/fluent-plugin-map", "my-develop", "fluent-plugin-map-0.0.5"

0 comments on commit 5163df1

Please sign in to comment.