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

2010-11-25 Thread Lars Francke
I don't understand how I'd convert the definitions from my original mail into virtual resources. Simplified: $disks = ['/a', '/b'] define foo() { file { "${name}/foo": } } foo { $disks: } define bar($path) { file { "${name}/foo/${path}": require => Foo[$name], } } bar { $disks: path

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

2010-11-20 Thread Lars Francke
Hi, thank you very much for the replies. > Take a look at virtual resources: > http://projects.puppetlabs.com/projects/1/wiki/Virtual_Resources I did take a look at them but I couldn't really figure out how to properly use them. I can't remember what the problem was but I think part of it was b

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

2010-11-18 Thread Joshua Anderson
Hi Lars, Take a look at virtual resources: http://projects.puppetlabs.com/projects/1/wiki/Virtual_Resources -Josh On Nov 18, 2010, at 3:28 PM, Lars Francke wrote: > Hi, > > I'm trying to manage our Hadoop cluster with Puppet but there are a > few challenges. The one I'm facing now is managing

[Puppet Users] Managing a "complex" directory structure

2010-11-18 Thread Lars Francke
Hi, I'm trying to manage our Hadoop cluster with Puppet but there are a few challenges. The one I'm facing now is managing the following. I've got an array variable depending on the type of server: $hadoop_disks = ['/mnt/disk1', '/mnt/disk2', ...] Depending on the classes I include for each role