Re: [Puppet Users] Glassfish custom provider and 'file does not exist'

2012-10-21 Thread fatmcgav
Josh Cheers for the info. Are there any references on how to set the path when executing child processes? Cheers Gavin On Oct 19, 2012 6:03 PM, "Josh Cooper" wrote: > Hi Gavin, > > On Fri, Oct 19, 2012 at 9:35 AM, Gavin Williams > wrote: > > Ok, I've found what was causing the provider to fail

Re: [Puppet Users] Glassfish custom provider and 'file does not exist'

2012-10-19 Thread Josh Cooper
Hi Gavin, On Fri, Oct 19, 2012 at 9:35 AM, Gavin Williams wrote: > Ok, I've found what was causing the provider to fail... > > Changed as follows: > > diff --git a/lib/puppet/provider/domain/asadmin.rb > b/lib/puppet/provider/domain/asadmin.rb > index 940c051..384f6ab 100644 > --- a/lib/puppet/pr

Re: [Puppet Users] Glassfish custom provider and 'file does not exist'

2012-10-19 Thread Gavin Williams
Ok, I've found what was causing the provider to fail... Changed as follows: diff --git a/lib/puppet/provider/domain/asadmin.rb b/lib/puppet/provider/domain/asadmin.rb index 940c051..384f6ab 100644 --- a/lib/puppet/provider/domain/asadmin.rb +++ b/lib/puppet/provider/domain/asadmin.rb @@ -2,7 +2

Re: [Puppet Users] Glassfish custom provider and 'file does not exist'

2012-10-15 Thread fatmcgav
Just got back from holiday, and need to get this one going... Any ideas on how I can proceed? Cheers Gavin On 29 September 2012 08:21, fatmcgav wrote: > Stefan > > Yes, the code is all in github. > https://github.com/fatmcgav/puppet-glassfish > > Cheers > Gav > On Sep 29, 2012 1:28 AM, "Stefan

Re: [Puppet Users] Glassfish custom provider and 'file does not exist'

2012-09-29 Thread fatmcgav
Stefan Yes, the code is all in github. https://github.com/fatmcgav/puppet-glassfish Cheers Gav On Sep 29, 2012 1:28 AM, "Stefan Schulte" wrote: > 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

Re: [Puppet Users] Glassfish custom provider and 'file does not exist'

2012-09-28 Thread Stefan Schulte
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 t

Re: [Puppet Users] Glassfish custom provider and 'file does not exist'

2012-09-28 Thread fatmcgav
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/li

Re: [Puppet Users] Glassfish custom provider and 'file does not exist'

2012-09-28 Thread fatmcgav
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 executa

Re: [Puppet Users] Glassfish custom provider and 'file does not exist'

2012-09-27 Thread Stefan Schulte
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 > Ga

Re: [Puppet Users] Glassfish custom provider and 'file does not exist'

2012-09-27 Thread fatmcgav
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" wrote: > At a guess the asadmin co

Re: [Puppet Users] Glassfish custom provider and 'file does not exist'

2012-09-27 Thread Dick Davies
At a guess the asadmin command isn't in puppetd's $PATH. Maybe try a full path to the executable to confirm? On 26 September 2012 17:01, Gavin Williams wrote: > Hi there, > > I'm trying to setup Glassfish config management using puppet. > I've found larstobi's module here which I've cloned and am

[Puppet Users] Glassfish custom provider and 'file does not exist'

2012-09-26 Thread Gavin Williams
Hi there, I'm trying to setup Glassfish config management using puppet. I've found larstobi's module here which I've cloned and am starting to tweak, as it would appear that the mentioned module is based on Solaris, therefore I'm starting to add