aboutsummaryrefslogtreecommitdiffstats
path: root/lib/puppet/provider
diff options
context:
space:
mode:
authorAlex Schultz <aschultz@redhat.com>2017-02-16 09:53:55 -0700
committerEmilien Macchi <emilien@redhat.com>2017-02-16 19:50:43 -0500
commit81071f69e9efdc185f36ff68fda70d4d468da987 (patch)
treed80a34cd13b9d99a567ef0cad71ddb311eb4c422 /lib/puppet/provider
parent7fb1f9b1b84909c93516e63bf61c3e40b4c53194 (diff)
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 (cherry picked from commit 525a2c379ba2e2433217af2aa78018dfd8cb0b44)
Diffstat (limited to 'lib/puppet/provider')
-rw-r--r--lib/puppet/provider/package/norpm.rb2
1 files changed, 2 insertions, 0 deletions
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