Issue #4976 has been updated by mark foster.
I have the basic modification of type/package.rb
diff --git a/lib/puppet/type/package.rb b/lib/puppet/type/package.rb
index 51a8663..81b3d6b 100644
--- a/lib/puppet/type/package.rb
+++ b/lib/puppet/type/package.rb
@@ -261,6 +261,13 @@ module Puppet
newvalues(:keep, :replace)
end
+ newparam(:force, :boolean => false) do
+ desc "Force the package operation. Used when --force-yes
+ is needed (using apt as an example)."
+ newvalues(:true, :false)
+ defaultto false
+ end
+
newparam(:category) do
desc "A read-only parameter set by the package."
end
However I was unable to find a reference to 'force' in the provider/file/*.rb
which is confusing since I know force is a valid option for type file.
Can you point me to some suitable reference using 'force' within a provider?
----------------------------------------
Feature #4976: force package install
https://projects.puppetlabs.com/issues/4976
Author: mark foster
Status: Accepted
Priority: Normal
Assignee: Nigel Kersten
Category: package
Target version:
Affected version:
Keywords:
Branch:
Please add force as an optional attribute to the package provider
For apt-get, this should add --force-yes to the arguments
For yum, this should add --no-deps
Thanks.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.