On Fri, Sep 28, 2012 at 10:39:11AM +0100, fatmcgav wrote: > Ok, so I thought I'd take another look, and try and get some debug logging > out of the provider to make sure it's constructing things correctly... > > I've applied the following patch to asadmin.rb, however I'm not seeing > anything on the client trace... > > diff --git a/lib/puppet/provider/asadmin.rb b/lib/puppet/provider/asadmin.rb > > index f95d6ab..c8bd4a7 100644 > > --- a/lib/puppet/provider/asadmin.rb > > +++ b/lib/puppet/provider/asadmin.rb > > @@ -8,6 +8,7 @@ > > passed_args.each { |arg| args << arg } > > exec_args = args.join " " > > command = "#{@resource[:asadminpath]} #{exec_args}" > > + Puppet.debug("Command = #{command}") > > command = "su - #{@resource[:user]} -c \"#{command}\"" if > > @resource[:user] and > > not command.match /create-service/ > > self.debug command > > > > Any ideas how I can get the provider logging??? > > Cheers > Gavin >
do you have the code somewhere? If you dropped the debug call in the create method or something it will never be executed if puppet thinks the provider is not valid at all. So having the actual provider code may make is more obvious why it is failing for you. -Stefan -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.