Issue #8921 has been updated by Piotr Florczyk.
I had the same problem. Just change: cmdline = ["-M BATCH=yes", @resource[:name]] to: cmdline = ["-M BATCH=yes", "-P", @resource[:name]] and for binary packages only: cmdline = ["--batch", "-PP", @resource[:name]] debug: Puppet::Type::Package::ProviderPortupgrade: Executing '/usr/local/sbin/portinstall --batch -PP ftp/proftpd-mysql' notice: /Stage[main]/Proftpd/Package[ftp/proftpd-mysql]/ensure: created Works fine for me :) ---------------------------------------- Bug #8921: Provider portupgrade don't work with 'P' option when install port https://projects.puppetlabs.com/issues/8921 Author: Kiril Varnakov Status: Needs More Information Priority: Normal Assignee: Category: provider Target version: 2.6.x Affected Puppet version: 2.6.7 Keywords: Branch: Hi. I don't understand, why options -P not intagrated to puppet, but if i add it to portupgrade.rb manualy, it does not work. <pre> --- portupgrade.rb 2011-08-11 11:02:55.000000000 +0400 +++ portupgrade.rb.patch 2011-08-11 10:48:32.000000000 +0400 @@ -84,7 +84,7 @@ def install Puppet.debug "portupgrade.install() - Installation call on #{@resource[:name]}" # -M: yes, we're a batch, so don't ask any questions - cmdline = ["-P -M BATCH=yes", @resource[:name]] + cmdline = ["-M BATCH=yes", @resource[:name]] # FIXME: it's possible that portinstall prompts for data so locks up. begin </pre> On puppet agent: <pre> debug: Puppet::Type::Package::ProviderPortupgrade: Executing '/usr/local/sbin/portinstall -P -M BATCH=yes security/sudo' err: /Stage[main]/Sudo/Package[security/sudo]/ensure: change from absent to present failed: </pre> -- 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.
