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

On 28 September 2012 08:58, fatmcgav <fatmc...@gmail.com> wrote:

> Stefan
>
> Was running puppet agent using 'sudo'...
>
> However just tried using root and no difference...
>
> Asadmin definitely exists and has got the right permissions, as shown
> below:
>
> # file /usr/local/glassfish-3.1.2/bin/asadmin
>> /usr/local/glassfish-3.1.2/bin/asadmin: POSIX shell script text executable
>> # ls -l /usr/local/glassfish-3.1.2/bin/asadmin
>> -rwxr-xr-x. 1 nobody glassfish 2262 Sep 18 16:23
>> /usr/local/glassfish-3.1.2/bin/asadmin
>>
>>
> Thoughts?
>
> Cheers
> Gavin
>
> On 28 September 2012 06:14, Stefan Schulte <stefan.schu...@taunusstein.net
> > wrote:
>
>> On Thu, Sep 27, 2012 at 12:57:01PM +0100, fatmcgav wrote:
>> > Hi there
>> >
>> > I thought that initially as well, so I modified the provider to use a
>> full
>> > path rather than assume it was on the path.
>> >
>> > The log files below are prints of the variables which are being passed
>> > around...
>> >
>> > Cheers
>> > Gav
>> > On Sep 27, 2012 12:53 PM, "Dick Davies" <rasput...@hellooperator.net>
>> wrote:
>> >
>> [...]
>> > > >> notice: /Stage[main]/Glassfish::Domain/Notify[gfdomain]/message:
>> defined
>> > > >> 'message' as 'Creating Glassfish domain cms using portbase 9000.
>> > > >>  Asadmin file is: /usr/local/glassfish-3.1.2/bin/asadmin.'
>> > > >> # file /usr/local/glassfish-3.1.2/bin/asadmin
>> > > >> /usr/local/glassfish-3.1.2/bin/asadmin: POSIX shell script text
>> > > executable
>> [...]
>>
>> Has the file the executable bit set for the user that is running the
>> script (probably root)?
>>
>> -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.
>>
>>
>

-- 
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.

Reply via email to