From bb9dba181965e101f586240462ff72f882f7ae90 Mon Sep 17 00:00:00 2001 From: Alex Schultz Date: Thu, 16 Feb 2017 09:53:55 -0700 Subject: Add virtual_packages support to norpm provider The norpm provider is supposed to noop package installs/updates but if a package name in puppet does not match the installed package, it is being reported as not installed. The provider then 'installs' it every time which can trigger unwanted service restarts. Change-Id: Icdfa6567168f9ecc555489ed67405f98544bd910 Closes-Bug: #1665405 --- lib/puppet/provider/package/norpm.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/puppet/provider/package/norpm.rb b/lib/puppet/provider/package/norpm.rb index 0764265..080b138 100644 --- a/lib/puppet/provider/package/norpm.rb +++ b/lib/puppet/provider/package/norpm.rb @@ -17,6 +17,8 @@ require 'puppet/provider/package' Puppet::Type.type(:package).provide :norpm, :source => :rpm, :parent => :rpm do desc "RPM packaging provider that does not install anything." + has_feature :virtual_packages + def latest @resource.fail "'latest' is unsupported by this provider." end -- cgit 1.2.3-korg