Pass --nogpgcheck to yum via puppet

I have found that with puppet 3.7.1 passing 'install_options' to the yum provider works. I was able to successfully pass '--nogpgcheck' using it. Just update your puppet now.


I've been able to answer my second question, and it looks like install_options is not implemented for yum on 3.3.0-rc2.

$ grep -ro install_options /usr/lib/ruby/site_ruby/1.8/puppet/provider/package/ | sort | uniq
/usr/lib/ruby/site_ruby/1.8/puppet/provider/package/msi.rb:install_options
/usr/lib/ruby/site_ruby/1.8/puppet/provider/package/sun.rb:install_options
/usr/lib/ruby/site_ruby/1.8/puppet/provider/package/windows.rb:install_options

And an answer to the real question, since this is a custom repository, the trick was to disable gpg checks. This can be done in the instantiation of the puppet yumrepo type, as in

yumrepo { 'customrepo':
  gpgcheck => 0,
}

Another option, as stated in my comment beneath the question would be to gpg sign the packages.