[Puppet Users] Re: Like... a root canal

2009-11-08 Thread Jon Stanley
On Sun, Nov 8, 2009 at 1:12 AM, Douglas Garstang wrote: > I need to both make sure that the base directory exists AND the > symlink to it exists. Other than defining a file resource that ensures > the base directory exists and another file resource to create the > symlink, how else could this be

[Puppet Users] Re: Like... a root canal

2009-11-07 Thread Dan Bode
On Sat, Nov 7, 2009 at 10:12 PM, Douglas Garstang wrote: > > Err, well that's not gonna work! > > I need to both make sure that the base directory exists AND the > symlink to it exists. Other than defining a file resource that ensures > the base directory exists and another file resource to create

[Puppet Users] Re: Like... a root canal

2009-11-07 Thread Douglas Garstang
Err, well that's not gonna work! I need to both make sure that the base directory exists AND the symlink to it exists. Other than defining a file resource that ensures the base directory exists and another file resource to create the symlink, how else could this be done? In fact, they aren't the

[Puppet Users] Re: Like... a root canal

2009-11-07 Thread Dan Bode
Hi Doug, I had a chance to look at the code, and.. three things that I see here, are define tomcat::create_inst($software, $version = "current", $server_port, $connector_port) { #1. version is set to "current" by default. 1. "/opt/tomcat/${name}/${software}/tomcat-current": 2.

[Puppet Users] Re: Like... a root canal

2009-11-07 Thread Douglas Garstang
James. Link: http://pastebin.com/m418fc08a Currently getting this error from it... Nov 7 18:13:09 gumby puppetd[13556]: Could not retrieve catalog: Puppet::Parser::AST::Resource failed with error ArgumentError: Duplicate definition: File[/opt/tomcat/tfel0/starterkit/tomcat-current] is already

[Puppet Users] Re: Like... a root canal

2009-11-07 Thread James Turnbull
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Douglas Garstang wrote: > Yes, effect of cut and paste. Assume the file {} declaration is there. > I don't assume anything - always leads to badness. :) Can you paste or link to the full code please? Regards James Turnbull - -- Author of: * Pro

[Puppet Users] Re: Like... a root canal

2009-11-07 Thread Douglas Garstang
Yes, effect of cut and paste. Assume the file {} declaration is there. On Sat, Nov 7, 2009 at 5:10 PM, Avi Miller wrote: > > Hi, > > Douglas Garstang wrote: >> define tomcat::create_inst($software, $version = "current", >> $server_port, $connector_port) { >>          # >>          # Create a sym

[Puppet Users] Re: Like... a root canal

2009-11-07 Thread Avi Miller
Hi, Douglas Garstang wrote: > define tomcat::create_inst($software, $version = "current", > $server_port, $connector_port) { > # > # Create a symlink. > # > "/opt/tomcat/$name/$software/tomcat-current": > require => Package["apache-tomcat-$name-$s