Re: [Puppet Users] Re: Managing a "complex" directory structure

2010-12-08 Thread Lars Francke
Hello, sorry it took me so long to reply. Thank you for the answer. That has helped me a lot and I think I'm on the correct path now. It is just a lot more verbose than I had hoped :) > A custom function that expands the array would be a bit more > universal, but you can still do this with puppe

Re: [Puppet Users] Re: Managing a "complex" directory structure

2010-12-03 Thread Nan Liu
On Fri, Dec 3, 2010 at 9:04 AM, Lars Francke wrote: > Hi! > > Again thank you for the detailed answer. > >> One of the things that sometimes gives Puppet newbies trouble is that >> it employs a declarative model rather than an imperative one.  In >> other words, it's an expert system, not a script

Re: [Puppet Users] Re: Managing a "complex" directory structure

2010-12-03 Thread Lars Francke
Hi! Again thank you for the detailed answer. > One of the things that sometimes gives Puppet newbies trouble is that > it employs a declarative model rather than an imperative one.  In > other words, it's an expert system, not a scripting language.  The > Puppet language is all about describing t

[Puppet Users] Re: Managing a "complex" directory structure

2010-11-30 Thread jcbollinger
On Nov 29, 6:15 pm, Lars Francke wrote: > This is the part I don't understand. The more verbose I've been the > more errors I got because of duplicate definitions etc. Which only > supports the point that I still don't "get" the Puppet model :) Wrapping up a bunch of things in a define may red

Re: [Puppet Users] Re: Managing a "complex" directory structure

2010-11-29 Thread Lars Francke
Hello, > But none of that is going to solve your particular problem, because > even if you instantiate your defines virtually, you still can provide > only one set of parameters for each title within the scope of each > node.  Basically, this part of your design concept (define "bar") does > not f

[Puppet Users] Re: Managing a "complex" directory structure

2010-11-29 Thread jcbollinger
On Nov 25, 6:22 pm, Lars Francke wrote: > I don't understand how I'd convert the definitions from my original > mail into virtual resources. You wouldn't convert the definitions themselves, but rather their instantiations. Alternatively, you might convert the definitions to *use* virtual resour

[Puppet Users] Re: Managing a "complex" directory structure

2010-11-19 Thread jcbollinger
On Nov 18, 5:28 pm, Lars Francke wrote: [...] > But I guess that doesn't work because a resource may be managed multiple > times. > > Any ideas how to solve this? There are two basic approaches you can use, separately or together, depending on how granularly you want to manage these resources.