On Monday, August 13, 2012 5:14:46 PM UTC-4, jcbollinger wrote:
>
>
>
> On Monday, August 13, 2012 1:20:27 PM UTC-5, Nan Liu wrote:
>>
>>
>> A common misconception, but most people expect in puppet string+array 
>> results in an array value with the string prefix every array element, 
>> what you get is actually string + array.to_s.
>
>
> Yes, we seem to have seen a lot of that around here recently.  We also 
> sometimes see the closely related mistake of using "$my_array" instead of 
> simply $my_array.  I suppose it's a sign that there is interest in 
> combinatorial approaches to declaring resources.
>

Yeah the reason I need the $name-$dotfile is to ensure they are unique. 
That said, without the quotes or the requirement for $name then it would 
work just fine as $dotfile.
 

>
>  
>
>> I haven't seen the 
>> cookbook recipe, but I think what you meant is something closer to 
>> this: 
>>
>> https://gist.github.com/7860c7d8c157432381e3 
>>
>>
> For cases such as this one, where decorated versions of the elements of a 
> single array are desired, the built-in regsubst() function can do the job 
> relatively easily.  Note that the result should be assigned to a new 
> variable, as function return values cannot directly be used as resource 
> titles.
>
>
How would I go about running a substring on something without a delimeter. 
Maybe I am just missing something obvious here.
 

>
> John
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/ZlnIazkFUucJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to