Re: [Puppet Users] Bug when using array in file resource?

2012-11-05 Thread pdurkin
Thanks John, I'll inline my responses Paul On Monday, November 5, 2012 6:26:55 PM UTC+4, jcbollinger wrote: > > > > On Monday, November 5, 2012 12:37:45 AM UTC-6, pdurkin wrote: >> >> I'm not convinced that Justin wasn't correct about this being a bug. I'm >> having a similar issue >> > > > How

Re: [Puppet Users] Bug when using array in file resource?

2012-11-05 Thread jcbollinger
On Monday, November 5, 2012 12:37:45 AM UTC-6, pdurkin wrote: > > I'm not convinced that Justin wasn't correct about this being a bug. I'm > having a similar issue > How many people do you need to tell you that the behavior you observe is intended? File a ticket against the documentation if

Re: [Puppet Users] Bug when using array in file resource?

2012-11-04 Thread Benjamin Priestman
I had trouble with this one, too. The documentation also made me think I could do something like this, but I think this is a lack of clarity in the documntation, not a code bug. $title or $name (they seem to get used interchangeably) always seem to refer to the $name or $title of the class or

Re: [Puppet Users] Bug when using array in file resource?

2012-11-04 Thread pdurkin
I'm not convinced that Justin wasn't correct about this being a bug. I'm having a similar issue class myclass (...) { # some extra stuff here $file_list = [ 'a', 'b' ..., 'n' ] file { $file_list : ensure => 'file', source => "puppet://modules/myclass/$title", path

Re: [Puppet Users] Bug when using array in file resource?

2012-02-13 Thread Justin Lloyd
Ok, thanks for the tip. On Mon, Feb 13, 2012 at 3:42 PM, Nan Liu wrote: > On Mon, Feb 13, 2012 at 3:37 PM, Justin Lloyd wrote: > > I was wondering if I'd need to create a define() but the language guide's > > description seems misleading, at least to me. From the 6th paragraph of > the > > Reso

Re: [Puppet Users] Bug when using array in file resource?

2012-02-13 Thread Nan Liu
On Mon, Feb 13, 2012 at 3:37 PM, Justin Lloyd wrote: > I was wondering if I'd need to create a define() but the language guide's > description seems misleading, at least to me. From the 6th paragraph of the > Resources section: > > http://docs.puppetlabs.com/guides/language_guide.html#resources >

Re: [Puppet Users] Bug when using array in file resource?

2012-02-13 Thread Justin Lloyd
I was wondering if I'd need to create a define() but the language guide's description seems misleading, at least to me. From the 6th paragraph of the Resources section: http://docs.puppetlabs.com/guides/language_guide.html#resources The field before the colon is the resource’s *title,* which must

Re: [Puppet Users] Bug when using array in file resource?

2012-02-13 Thread Nan Liu
On Mon, Feb 13, 2012 at 3:21 PM, Justin Lloyd wrote: > I'm trying to use an array on a file resource to create symlinks. If I have > multiple elements in the array, I get a redefinition error showing it's > replacing $name or $title with the CLASS name rather than the RESOURCE name. > Here's a sim

[Puppet Users] Bug when using array in file resource?

2012-02-13 Thread Justin Lloyd
I'm trying to use an array on a file resource to create symlinks. If I have multiple elements in the array, I get a redefinition error showing it's replacing $name or $title with the CLASS name rather than the RESOURCE name. Here's a simplified example using one array element, where I'd expect to e