On Monday, August 27, 2012 3:06:30 PM UTC-5, Douglas wrote:
>
> Trevor,
>
> Thanks. I'm getting 'bad target Array' with:
>
> define glusterfs::volume_create ( $brick_store, $nodes, $replicas='1',
> $transport='tcp' ) {
> .....
>
> $n2 = regsubst ($nodes, '$', ":$brick_store") # Bad target array here.
> notice ("bricks = $n2")
> }
>
> On entering the define, $nodes = ['gfs01.us1.xxx.com',
> 'gfs02.us1.xxx.com'] and $brick_store="/var/bricks"
>
I think I would have expected that to work as written, but perhaps Ruby
objects to the pattern having only an anchor. What about this:
$n2 = regsubst ($nodes, '^(.*)$', "\1:$brick_store")
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/-/44ZecAxY-nYJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.