[Puppet Users] Re: use of arrays with templates

2008-11-10 Thread tek-ops
I just got it working, I had to restart puppetmaster, which seems like it shouldn't have been necessary although I had just replaced a string with the array ... so I don't know. On Nov 8, 7:13 am, Marcin Owsiany <[EMAIL PROTECTED]> wrote: > On Fri, Nov 07, 2008 at 07:18:11AM -

[Puppet Users] Re: use of arrays with templates

2008-11-07 Thread tek-ops
I've actually submitted this as a bug (Bug #1738) http://projects.reductivelabs.com/issues/show/1738 As this seems like it was intended to work. On Nov 7, 10:18 am, tek-ops <[EMAIL PROTECTED]> wrote: > /etc/puppet/mani

[Puppet Users] Re: use of arrays with templates

2008-11-07 Thread tek-ops
es/resolv/init.pp then is does work (no concatenation). Best Regards, Michael Schenck On Nov 7, 4:00 am, Marcin Owsiany <[EMAIL PROTECTED]> wrote: > On Thu, Nov 06, 2008 at 07:36:51AM -0800, tek-ops wrote: > > > for me, that only works if I specify $nameserver in the manifest

[Puppet Users] Re: use of arrays with templates

2008-11-06 Thread tek-ops
wrote: > search my.domain.tld > <% nameserver.each do |n| %> > nameserver <%= n %> > <% end %> > > On 6/11/2008, at 7:52 AM, tek-ops <[EMAIL PROTECTED]> wrote: > > > > > no one has dealt with this before? > > > On Nov 3, 4:39 pm, t

[Puppet Users] Re: use of arrays with templates

2008-11-05 Thread tek-ops
no one has dealt with this before? On Nov 3, 4:39 pm, tek-ops <[EMAIL PROTECTED]> wrote: > I appear that this will only work if the array is declared in the > manifest. > > I'm attempting to make resolv.conf a template in which I can specify > by node which array of n

[Puppet Users] use of arrays with templates

2008-11-03 Thread tek-ops
I appear that this will only work if the array is declared in the manifest. I'm attempting to make resolv.conf a template in which I can specify by node which array of name servers to use. which looks like this: $nameserver = [ "1.2.3.4", "1.2.3.5"] This works fine if it's declared in the manif

[Puppet Users] Re: Templating to set variables based on environment

2008-10-31 Thread tek-ops
You are a genius! Thank you very much :D Best Regards, Michael Schenck On Oct 31, 12:52 pm, RijilV <[EMAIL PROTECTED]> wrote: > 2008/10/31 tek-ops <[EMAIL PROTECTED]>: > > > > > What would really help is if there was a node definition like > > "default&q

[Puppet Users] Re: Templating to set variables based on environment

2008-10-31 Thread tek-ops
What would really help is if there was a node definition like "default" that was used by all nodes, not just ones that are otherwise not defined. Although this "may" have the same scope issue of resolving this with a class. On Oct 30, 5:46 pm, tek-ops <[EMAIL PROTECTED]&g

[Puppet Users] Templating to set variables based on environment

2008-10-30 Thread tek-ops
I'm attempting to use templating so that I can have variables in all config files for the aspects that vary solely based on which environment is in question. The benefit is that the only differences in the configurations between my environments are those being tested. This also eliminates the cha