Issue #6683 has been updated by James Turnbull.
See also http://projects.puppetlabs.com/issues/2384#note-5 for a possible workaround. Code to be fixed: <pre> diff --git a/lib/puppet/type.rb b/lib/puppet/type.rb index d24cc85..461dfd7 100644 --- a/lib/puppet/type.rb +++ b/lib/puppet/type.rb @@ -1744,10 +1744,10 @@ class Type set_name(@original_parameters) - set_default(:provider) - set_parameters(@original_parameters) + set_default(:provider) unless @parameters[:provider] + self.validate if self.respond_to?(:validate) end </pre> ---------------------------------------- Bug #6683: Default provider still called even if provider specified https://projects.puppetlabs.com/issues/6683 Author: Brian Simons Status: Accepted Priority: Normal Assignee: Category: provider Target version: 2.6.x Affected Puppet version: Keywords: apache puppetlabs-apache module Branch: Affected URL: Affected Dashboard version: I'm using puppetlabs-apache 0.0.3 available at http://forge.puppetlabs.com/puppetlabs/apache. I can create the following config: <pre> /etc/puppet/manifests/nodes.pp: node 'ubuntu-testing.verite.com' { include apache @a2mod { 'ssl': ensure => present; } realize A2mod['ssl'] } </pre> And on a new ubuntu server install with only ssh and puppet installed, if I try to run that manifest with "puppetd --test" I get: <pre> root@ubuntu-testing:~# puppetd --test info: Retrieving plugin info: Caching catalog for ubuntu-testing.verite.com err: Could not run Puppet configuration client: Could not find a default provider for a2mod </pre> If I manually install apache2, I do not get this error, and everything works just great. For some reason, puppet isn't seeing that apache2 needs to be installed before it tries to look for a2enmod and a2dismod. Help? -- 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.
