Issue #6683 has been updated by James Turnbull.

Subject changed from puppetlabs-apache a2mod won't install apache2 to Default 
provider still called even if provider specified
Category set to provider
Assignee set to James Turnbull
Target version set to 2.6.x
Affected Puppet version set to 2.6.6rc1

The fix for this should be:

a2mod { "alias": ensure => present, require => Package["apache2"], provider => 
a2mod }

But this kaputs on us before default_provider is called even if the provider is 
set.

<pre>
/usr/local/lib/site_ruby/1.8/puppet/type.rb:1376:in `defaultprovider'
/usr/local/lib/site_ruby/1.8/puppet/type.rb:1486:in `default'
/usr/local/lib/site_ruby/1.8/puppet/type.rb:520:in `set_default'
/usr/local/lib/site_ruby/1.8/puppet/type.rb:1747:in `initialize'
/usr/local/lib/site_ruby/1.8/puppet/resource.rb:277:in `new'
/usr/local/lib/site_ruby/1.8/puppet/resource.rb:277:in `to_ral'
/usr/local/lib/site_ruby/1.8/puppet/resource/catalog.rb:553:in `send'
/usr/local/lib/site_ruby/1.8/puppet/resource/catalog.rb:553:in `to_catalog'
/usr/local/lib/site_ruby/1.8/puppet/resource/catalog.rb:531:in `each'
/usr/local/lib/site_ruby/1.8/puppet/resource/catalog.rb:531:in `to_catalog'
/usr/local/lib/site_ruby/1.8/puppet/resource/catalog.rb:468:in `to_ral'
/usr/local/lib/site_ruby/1.8/puppet/configurer.rb:113:in `convert_catalog'
/usr/local/lib/site_ruby/1.8/puppet/configurer.rb:108:in `retrieve_catalog'
/usr/local/lib/site_ruby/1.8/puppet/configurer.rb:139:in `run'
/usr/local/lib/site_ruby/1.8/puppet/agent.rb:39:in `run'
/usr/local/lib/site_ruby/1.8/puppet/agent/locker.rb:21:in `lock'
/usr/local/lib/site_ruby/1.8/puppet/agent.rb:39:in `run'
/usr/lib/ruby/1.8/sync.rb:230:in `synchronize'
/usr/local/lib/site_ruby/1.8/puppet/agent.rb:39:in `run'
/usr/local/lib/site_ruby/1.8/puppet/agent.rb:103:in `with_client'
/usr/local/lib/site_ruby/1.8/puppet/agent.rb:37:in `run'
/usr/local/lib/site_ruby/1.8/puppet/application.rb:171:in `call'
/usr/local/lib/site_ruby/1.8/puppet/application.rb:171:in `controlled_run'
/usr/local/lib/site_ruby/1.8/puppet/agent.rb:35:in `run'
/usr/local/lib/site_ruby/1.8/puppet/application/agent.rb:114:in `onetime'
/usr/local/lib/site_ruby/1.8/puppet/application/agent.rb:88:in `run_command'
/usr/local/lib/site_ruby/1.8/puppet/application.rb:304:in `run'
/usr/local/lib/site_ruby/1.8/puppet/application.rb:410:in `exit_on_fail'
/usr/local/lib/site_ruby/1.8/puppet/application.rb:304:in `run'
/usr/local/lib/site_ruby/1.8/puppet/util/command_line.rb:59:in `execute'
</pre>
----------------------------------------
Bug #6683: Default provider still called even if provider specified
https://projects.puppetlabs.com/issues/6683

Author: Brian Simons
Status: Re-opened
Priority: Normal
Assignee: James Turnbull
Category: provider
Target version: 2.6.x
Affected Puppet version: 2.6.6rc1
Keywords: apache puppetlabs-apache module
Branch: 
Affected URL: 


I'm using puppetlabs-apache 0.0.3 available at 
http://forge.puppetlabs.com/puppetlabs/apache.

I can create the following config:

   /etc/puppet/manifests/nodes.pp:
   2.       
   3.      node 'ubuntu-testing.verite.com' {
   4.              include apache
   5.       
   6.              @a2mod { 'ssl': ensure => present; }
   7.              realize A2mod['ssl']
   8.       
   9.      }

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:

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

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.

Reply via email to