Index: modules/fluent/lib/puppet/provider/package/fluent_gem.rb |
diff --git a/modules/fluent/lib/puppet/provider/package/fluent_gem.rb b/modules/fluent/lib/puppet/provider/package/fluent_gem.rb |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ec78fbcc491b72bff9cc3b890ffd6e5a3a4e1c35 |
--- /dev/null |
+++ b/modules/fluent/lib/puppet/provider/package/fluent_gem.rb |
@@ -0,0 +1,17 @@ |
+require 'puppet/provider/package/gem' |
+require 'puppet/type' |
+ |
+# http://docs.puppetlabs.com/puppet/latest/reference/type.html#package-provider-gem |
+Puppet::Type.type(:package).provide :fluent_gem, :parent => :gem do |
+ |
+ # http://docs.fluentd.org/articles/plugin-management#fluent-gem |
+ desc 'Ruby Gem support for Fluentd packages, via fluent-gem' |
+ commands :gemcmd => 'fluent-gem' |
+ |
+ # https://projects.puppetlabs.com/issues/19663 |
+ def execute(command, arguments = {:failonfail => true, :combine => true}) |
+ command.delete('--include-dependencies') |
+ super |
+ end |
+ |
+end |