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-28 Thread fatmcgav
l 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 wrote: > On Thu, Sep 27, 2012 at 12:57:01PM +010

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

2012-09-28 Thread fatmcgav
t; 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.debu

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

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 >

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

2012-10-21 Thread fatmcgav
t; > > On Monday, 15 October 2012 11:40:16 UTC+1, Gavin Williams wrote: > >> > >> Just got back from holiday, and need to get this one going... > >> > >> Any ideas on how I can proceed? > >> > >> Cheers > >> Gavin > >> >

[Puppet Users] Puppet & Oracle Database config management

2012-10-24 Thread fatmcgav
Afternoon all. I've been reading around on Puppet and Oracle, and have come up with a few links that suggest how to get Oracle installed and base configured, which has got me started in the right direction on that. My next challenge is maintaining Oracle database specific configuration on the rel

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

2012-10-24 Thread fatmcgav
prior to attempting to > > execute asadmin? > > > > Latest code commit has been pushed to github, available here: > > > https://github.com/fatmcgav/puppet-glassfish/commit/429f9e8e1d08e99c69d8ffdcb3043648af5fa18a > > > > Any comments welcome. > > > >

Re: [Puppet Users] Puppet & Oracle Database config management

2012-10-25 Thread fatmcgav
Tim Cool, Cheers for that. Some good food for thought there... Cheers again. Gav On Oct 25, 2012 6:20 PM, "Tim Mooney" wrote: > In regard to: Re: [Puppet Users] Puppet & Oracle Database config...: > > Have you got any examples of the hiera config you're using? >> > > As I said, it's pretty rou

Re: [Puppet Users] Puppet & Oracle Database config management

2012-10-25 Thread fatmcgav
Tim Cool, Cheers for that. Some good food for thought there... Cheers again. Gav On Oct 25, 2012 6:20 PM, "Tim Mooney" wrote: > In regard to: Re: [Puppet Users] Puppet & Oracle Database config...: > > Have you got any examples of the hiera config you're using? >> > > As I said, it's pretty rou

[Puppet Users] Puppet Network Devices...

2012-11-01 Thread fatmcgav
Afternoon all, in the hunt to find a mechanism to manage our new NetApp filer configuration using puppet, I've stumbled across the 'Puppet Network Devices' functionality introduced in 2. 7. The idea looks perfect in principle, however it looks like no-ones implemented support for NetApp filers as

Re: [Puppet Users] Re: err: Could not request certificate when I run "puppet device"

2012-11-05 Thread fatmcgav
Try changing the file owner/group to match what you're running puppet as... Gav On 5 November 2012 20:51, meiji wang wrote: > Although I change the mode to 0777, Puppet forces the mode to 0750 > > debug: /File[/var/opt/lib/pe-puppet/devices/certname/state]: Autorequiring > File[/var/opt/lib/pe-

Re: [Puppet Users] Re: Pass Array as param to custom provider...

2012-11-13 Thread fatmcgav
rt_ucode=on', 'no_atime_update=on'], } Have just pushed my latest code to Github here: https://github.com/fatmcgav/fatmcgav-netapp/tree/master/lib/puppet/provider/netapp_volume_options I did manage to get it working after a bit of googling... However am happy to take suggesti

Re: [Puppet Users] Re: Pass Array as param to custom provider...

2012-11-13 Thread fatmcgav
Nan Cheers for the response. Yes this is just a parameter... What's the easiest way to work with them in the provider? Cheers Gavin On Nov 13, 2012 7:00 PM, "Nan Liu" wrote: > On Tue, Nov 13, 2012 at 7:33 AM, fatmcgav wrote: > >> One of the functions required is

Re: [Puppet Users] Re: Pass Array as param to custom provider...

2012-11-13 Thread fatmcgav
Nan Cheers again... Looks like overriding the 'insync?' method is the way to go, as I'm only interested in checking/setting property values that are being passed through... Any insync? examples that I could refer to? Cheers Gavin On 13 November 2012 19:50, Nan Liu wrote: > On Tue, Nov 13, 2

Re: [Puppet Users] Re: Pass Array as param to custom provider...

2012-11-14 Thread fatmcgav
Nan Cheers again for the info... Now I think more about it, you may well be right in that it should be part of the netapp_volume provider... However I'm not sure that having individual params/properties for each volume option is the right way - The list of possible volume options currently stand

Re: [Puppet Users] Re: Pass Array as param to custom provider...

2012-11-26 Thread fatmcgav
John Cheers again, that could be a good alternative way of doing it... Use insync? just to trigger options=, and then work out what actually needs setting there... Cheers Gav On Nov 26, 2012 5:42 PM, "jcbollinger" wrote: > > > On Friday, November 16, 2012 5:44:09 AM UTC-6, Gavin Williams wrote:

Re: [Puppet Users] Re: Pass Array as param to custom provider...

2012-11-26 Thread fatmcgav
John, Again, very helpful... My knowledge of puppet is growing every day thanks to posts like this :-) Cheers Gavin On Nov 26, 2012 7:30 PM, "jcbollinger" wrote: > > > On Monday, November 26, 2012 12:19:09 PM UTC-6, Gavin Williams wrote: >> >> John >> >> Cheers again, that could be a good alter

Re: [Puppet Users] Puppet & Nagios/NRPE with Plugins...

2012-12-03 Thread fatmcgav
Pete Sounds good to me... N be easier than me re-inventing the wheel... Would be happy to guinea pig... :) Cheers Gav On 3 December 2012 23:56, Peter Brown wrote: > Hi Gavin, > > I have a module i wrote that seems like it will do what you need. > I also have a nagios module that uses it to s

Re: [Puppet Users] Re: Puppet NetApp Network device management...

2012-12-20 Thread fatmcgav
Jakov Thank you for the positive feedback. The NetApp puppet stuff is on the back burner atm, hopefully should be able to get back to buy in the new year :-) Cheers Gav On Dec 19, 2012 2:34 AM, "Jakov Sosic" wrote: > On 11/12/2012 12:59 PM, Gavin Williams wrote: > >> Monday update from me... >

Re: [Puppet Users] Remote Network Device management...

2012-12-21 Thread fatmcgav
Peter Cheers for the response. Network device management is being achieved using Puppet's new 'Network Device' support as part of 3.0... Site to site connectivity isn't an issue, as we've got a 100Mbps MPLS link between all 3... However it was more about security and the practicality of allowing

Re: [Puppet Users] Re: ParsedFile & Multi-line...

2013-01-25 Thread fatmcgav
Peter That would be great, cheers... Enjoy ure holiday first though... ;) Cheers Gavin On 25 January 2013 04:31, Peter Brown wrote: > On 10 January 2013 02:41, Gavin Williams wrote: > >> Anyone got any ideas??? >> >> My next thought is to use something like puppet-concat with an ERB >> temp

Re: [Puppet Users] Resource ordering problem...

2013-01-31 Thread fatmcgav
Matt Yeh, the function is defined within this module... I'll give moving the loadyaml into parse_databases a go when back in the office in the morning... Any other ideas welcome though... Cheers Gavin On Jan 31, 2013 8:43 PM, "Matthew Burgess" wrote: > On Thu, Jan 31, 2013 at 5:52 PM, Gavin W

Re: [Puppet Users] Re: New Type/Provider... How to handle cli input???

2013-02-07 Thread fatmcgav
John Cheers for the response... Unfortunately SnapDrive is not my program - It's a NetApp program, so I'm not going to be able to change it :( Also doesn't look like it's designed to support command line args... :( :( But in principle, it looks like it's possible, but a bit hacky... Cheers Gavi

Re: [Puppet Users] Re: New Type/Provider... How to handle cli input???

2013-02-07 Thread fatmcgav
uery=expect > 2. https://github.com/jesnault/expect4r > > > On Thu, Feb 7, 2013 at 7:18 AM, fatmcgav wrote: > >> John >> >> Cheers for the response... >> >> Unfortunately SnapDrive is not my program - It's a NetApp program, so I'm >> not

Re: [Puppet Users] Re: Defined type and cyclic dependencies :(

2013-02-08 Thread fatmcgav
"jcbollinger" wrote: > > > On Friday, February 8, 2013 12:35:38 PM UTC-6, Gavin Williams wrote: >> >> John >> >> Cheers for the response. >> >> I've added another file to the gist - https://gist.github.com/** >> fatmcgav/4722199#f

Re: [Puppet Users] Puppet with Passenger - 403 Forbidden errors???

2013-02-14 Thread fatmcgav
There was/is nothing in the error_log... Cheers Gav On 14 February 2013 12:20, Felix Frank wrote: > Hi, > > what does apache commit to the error log when an agent tries to connect? > > Thanks, > Felix > > On 02/12/2013 10:22 PM, Gavin Williams wrote: > > Hi all > > > > I'm trying to migrate our

Re: [Puppet Users] Re: Puppet & Automatic Resource State changing...

2013-02-18 Thread fatmcgav
John Cheers again for the response... Commented in-line below... Cheers Gav On 18 February 2013 15:08, jcbollinger wrote: > > > On Monday, February 18, 2013 2:13:26 AM UTC-6, Gavin Williams wrote: >> >> No-one doing anything similar? >> >> > Puppet is all about managing nodes to a known-in-ad

Re: [Puppet Users] Re: How to optimize puppet class/module code ?

2013-04-09 Thread fatmcgav
http://soimasysadmin.com/2012/02/29/puppet-inheritance-revisited/ is one I've got bookmarked... HTH Gav On 9 April 2013 10:54, ForumUser wrote: > Hi Gavin, > > Can you suggest any URL where I could read about ::params classes (and > examples of course ;-) ) ? > > On Tuesday, 9 April 2013 10:4

Re: [Puppet Users] Re: New Module - NetApp Storage support

2013-04-30 Thread fatmcgav
ge through to highlight a new module that >> I've just released to the Forge... >> >> The module is >> fatmcgav/netapp<https://forge.puppetlabs.com/fatmcgav/netapp/0.1.0>, >> and its purpose is to allow Puppet to manage NetApp storage devices using >> Puppe

[Puppet Users] New release of fatmcgav-netapp module.

2013-09-30 Thread fatmcgav
have made it into this release. As always, feel free to drop me a line or respond to this message with any questions/issues. Cheers again. Gavin [1] http://forge.puppetlabs.com/fatmcgav/netapp/0.4.0 [2] https://github.com/fatmcgav/fatmcgav-netapp/blob/v0.4-fixes/CHANGELOG -- You received

Re: [Puppet Users] Rspec-puppet and testing for expected failures...

2014-01-16 Thread fatmcgav
However as per the notes on Redmine, I should be able to work around said bug by using a case statement rather then the tenary operator... Onwards and upwards. Cheers Gav [1] https://github.com/fatmcgav/puppet-glassfish/pull/8 [2] http://projects.puppetlabs.com/issues/4598 [3] https://tickets

Re: [Puppet Users] File.exists? validation failure when trying to create file in same catalogue

2014-02-05 Thread fatmcgav
Line 41 is the end of the domain resource in the create_domain defined type. [1] Cheers Gav [1] https://github.com/fatmcgav/puppet-glassfish/blob/master/manifests/create_domain.pp#L41 On 6 Feb 2014 04:50, "Denmat" wrote: > Hi, > > What's the code on that line? >

[Puppet Users] Breaking changes in Puppetlabs_spec_helper v0.5.0

2014-06-09 Thread fatmcgav
anges, and prompting users to ensure they are pinning versions as appropriate. Thanks for the assistance of igalic and _rc on #puppet-dev. Cheers Gavin [1] https://github.com/puppetlabs/puppetlabs_spec_helper/commit/1c23917f60f64e4fbf7b9effdb212f907656826f [2] https://github.com/fatmcgav/fatmcgav

Re: [Puppet Users] Managing config files...

2014-07-15 Thread fatmcgav
Felik Cheers for taking the time to reply... I've been trying to work up a Augeas lense to support jre.properties, but dont seem to be having much luck... Seems like there's a bit of a black art to writing them... I'm in two minds about wrapper.conf. I've got it templates currently, but like you

Re: [Puppet Users] Puppet first run issue: Error 400 on SERVER: Failed when searching for node

2016-11-13 Thread fatmcgav
Afraid I can't help on that one, as haven't used AWS. There might be some additional features in a more recent version of Foreman that will assist... Cheers Gav On 13 Nov 2016 2:37 p.m., "A.K." wrote: > Hi Gavin, > > It's an AWS environment, so the same IP address of the machine and a > hostna

Re: [Puppet Users] Re: Which version of Puppet am I using?

2017-05-04 Thread fatmcgav
You should be able to roll Puppetboard back to an earlier version that supports PuppetDB 2.x... Glad I could help though... Gav On 4 May 2017 13:35, "Sans" wrote: Thanks Gav! I see that now. PuppetDB v3 is only compatible with Puppet v4, which I cannot upgrade to it yet. Some issue with newer