Re: [Puppet Users] Write arrays to an erb

2015-10-09 Thread jcbollinger
On Thursday, October 8, 2015 at 9:52:29 AM UTC-5, Sergiu Cornea wrote: > So therefore, what I am trying to do, is that I've got a template which > does this for me, and I have specified A CLASS instead of define as you've > said I was getting an error saying that the couldn't associate alias

Re: [Puppet Users] Write arrays to an erb

2015-10-08 Thread Sergiu Cornea
Hi John, Thank you for your response. Well what I am trying to do is to create A file with data from Hiera. I am using this module: https://github.com/GRIF-IRFU/puppet-omd plus the one I have just developed to add new sites, hosts and commands. However, I have been asked to create Business Int

Re: [Puppet Users] Write arrays to an erb

2015-10-08 Thread jcbollinger
On Thursday, October 8, 2015 at 3:38:55 AM UTC-5, Sergiu Cornea wrote: > > Hi Martin, > > Thank you for your response. > > This is the code I have developed: > > http://pastebin.com/76SzwhZV > > Are we to assume that the commented-out File declaration in that code is the one that causes the di

Re: [Puppet Users] Write arrays to an erb

2015-10-08 Thread Sergiu Cornea
Hi Martin, Thank you for your response. This is the code I have developed: http://pastebin.com/76SzwhZV Thank you, Kind regards, Sergiu On Wednesday, 7 October 2015 20:39:56 UTC+1, Martin Alfke wrote: > > Hi Sergiu, > On 07 Oct 2015, at 09:12, Sergiu Cornea > wrote: > > > Hello guys, >

Re: [Puppet Users] Write arrays to an erb

2015-10-07 Thread Martin Alfke
Hi Sergiu, On 07 Oct 2015, at 09:12, Sergiu Cornea wrote: > Hello guys, > > I am passing 4 arrays in the Hiera file a: {a,b,c} b: {d,e,f} c: {g,h,i} d: > {j,k,l} which I am using them in an .erb template. However, when I am trying > to run Puppet it is complaining saying that cannot associate

[Puppet Users] Write arrays to an erb

2015-10-07 Thread Sergiu Cornea
Hello guys, I am passing 4 arrays in the Hiera file a: {a,b,c} b: {d,e,f} c: {g,h,i} d: {j,k,l} which I am using them in an .erb template. However, when I am trying to run Puppet it is complaining saying that cannot associate the file with that name as it is already declared in a manifest. I a