[Puppet Users] Re: use of arrays with templates

2008-11-13 Thread Nigel Kersten
On Wed, Nov 12, 2008 at 4:28 PM, Luke Kanies <[EMAIL PROTECTED]> wrote: > > On Nov 10, 2008, at 10:43 AM, Trevor Vaughan wrote: > >> I've found that I have to restart the puppetmaster in various >> situations that I don't think it should need. >> >> Generally, I restart it if: >> >> 1) I've mucked

[Puppet Users] Re: use of arrays with templates

2008-11-12 Thread Luke Kanies
On Nov 10, 2008, at 10:43 AM, Trevor Vaughan wrote: > I've found that I have to restart the puppetmaster in various > situations that I don't think it should need. > > Generally, I restart it if: > > 1) I've mucked about with a bunch of variables > 2) I've added custom facts or functions > 3) I'v

[Puppet Users] Re: use of arrays with templates

2008-11-10 Thread Trevor Vaughan
I've found that I have to restart the puppetmaster in various situations that I don't think it should need. Generally, I restart it if: 1) I've mucked about with a bunch of variables 2) I've added custom facts or functions 3) I've made massive updates to modules It seems to all work out then.

[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 -0800, tek-ops wrote:

[Puppet Users] Re: use of arrays with templates

2008-11-08 Thread Marcin Owsiany
On Fri, Nov 07, 2008 at 07:18:11AM -0800, tek-ops wrote: > > /etc/puppet/manifests/nodes.pp > > node "test1" { > $nameservers = ["192.168.0.2", "192.168.0.3"] [...] > nameserver 192.168.0.2192.168.0.3 > -

[Puppet Users] Re: use of arrays with templates

2008-11-07 Thread Trevor Vaughan
I think I remember discovering that the translation from a variable into a template smashes the array together. Try passing it through a define and see what happens. I feel that this is a bug as well. Trevor On Fri, Nov 7, 2008 at 10:18, tek-ops <[EMAIL PROTECTED]> wrote: > > /etc/puppet/manif

[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/manifests/nodes.pp >

[Puppet Users] Re: use of arrays with templates

2008-11-07 Thread tek-ops
/etc/puppet/manifests/nodes.pp node "test1" { $nameservers = ["192.168.0.2", "192.168.0.3"] $domain = "nfs.example.com" } node "test2" { $nameservers = ["10.0.0.2", "10.0.0.3"] $domain

[Puppet Users] Re: use of arrays with templates

2008-11-07 Thread Marcin Owsiany
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 for > my resolv.conf module. If I specify it in the node (i.e. configuring > one node to use different name servers), it concatenates the two > nameserver array elements

[Puppet Users] Re: use of arrays with templates

2008-11-06 Thread tek-ops
for me, that only works if I specify $nameserver in the manifest for my resolv.conf module. If I specify it in the node (i.e. configuring one node to use different name servers), it concatenates the two nameserver array elements to a single array. On Nov 5, 9:44 pm, Aj <[EMAIL PROTECTED]> wrote:

[Puppet Users] Re: use of arrays with templates

2008-11-05 Thread Aj
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, tek-ops <[EMAIL PROTECTED]> wrote: >> I appear that this will only work if the array is decla

[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 name servers to use.  which lo