I recently upgraded one of our puppet agent servers to use rubygems 2.0.0. When I run 'puppet agent --test' after the upgrade it complains that there is an invalid option with using --include-dependencies switch (output below). Is there a way to pass arguments to puppet when using gem as the package installer to use another argument?
Eg. output [root@vm1 ~]# puppet agent --test Info: Retrieving plugin Info: Loading facts in /var/lib/puppet/lib/facter/rvm_installed.rb Info: Caching catalog for vm1.example.com Info: Applying configuration version '1361808741' Error: Could not update: Execution of '/usr/bin/gem install --include-dependencies --no-rdoc --no-ri bson' returned 1: ERROR: While executing gem ... (OptionParser::InvalidOption) invalid option: --include-dependencies Error: /Stage[main]/Base::Centos6/Package[bson]/ensure: change from ["1.8.2", "1.8.1", "1.8.0", "1.7.1", "1.7.0"] to 1.8.2 ruby java failed: Could not update: Execution of '/usr/bin/gem install --include-dependencies --no-rdoc --no-ri bson' returned 1: ERROR: While executing gem ... (OptionParser::InvalidOption) invalid option: --include-dependencies Error: Could not update: Execution of '/usr/bin/gem install --include-dependencies --no-rdoc --no-ri json' returned 1: ERROR: While executing gem ... (OptionParser::InvalidOption) invalid option: --include-dependencies Error: /Stage[main]/Base::Centos6/Package[json]/ensure: change from ["1.7.7"] to 1.7.7 ruby java failed: Could not update: Execution of '/usr/bin/gem install --include-dependencies --no-rdoc --no-ri json' returned 1: ERROR: While executing gem ... (OptionParser::InvalidOption) invalid option: --include-dependencies Notice: Finished catalog run in 15.45 seconds Somehow it looks hard coded into the gem.rb file def install(useversion = true) command = [command(:gemcmd), "install"] command << "-v" << resource[:ensure] if (! resource[:ensure].is_a? Symbol) and useversion # Always include dependencies command << "--include-dependencies" Thanks, Matthew -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.