Re: [Puppet Users] Looping through a list of values - ENC

2012-09-18 Thread Stephen Gran
Hi, On Tue, 2012-09-18 at 21:26 +0500, Stoyan Petkov wrote: > Thanks Stephen! That did the trick (although I tried it a few times but > to no avail.), however, I now see that I didn't describe the whole picture. > > The definition seems ok but the template contains: ... > and for each domain I

Re: [Puppet Users] Looping through a list of values - ENC

2012-09-18 Thread Stoyan Petkov
Thanks Stephen! That did the trick (although I tried it a few times but to no avail.), however, I now see that I didn't describe the whole picture. The definition seems ok but the template contains: ServerName <%= name %> ServerAlias www.<%= name %> DocumentRoot /home/<%= name %>/public_

Re: [Puppet Users] Looping through a list of values - ENC

2012-09-18 Thread Stephen Gran
Hi, On Tue, 2012-09-18 at 19:44 +0500, Stoyan Petkov wrote: > Hello All, > > I am trying to create a bunch of apache .conf files by reading data > from a database. My script returns a list of values from the database > in YAML form: > > --- > classes: > - apache > - dummy > parameters: > d

[Puppet Users] Looping through a list of values - ENC

2012-09-18 Thread Stoyan Petkov
Hello All, I am trying to create a bunch of apache .conf files by reading data from a database. My script returns a list of values from the database in YAML form: --- classes: - apache - dummy parameters: domains: 'domains1,domains2,domains3' puppet_server: dist users: 'user1, user2