Also, to check whether it's ruby version issue, I put the code in a small 
script (test.rb) to test and there is no problem at all.
This seems to be a puppet template issue. A bug, maybe?

#!/usr/bin/env ruby

$default_servers = [ "0.debian.pool.ntp.org iburst",
                     "1.debian.pool.ntp.org iburst",
                     "2.debian.pool.ntp.org iburst",
                     "3.debian.pool.ntp.org iburst", ]

$servers_real = $default_servers

$servers_real.each do |this_server|
  puts this_server
end 

No problem executing the code outside puppet.

#./test.rb

0.debian.pool.ntp.org iburst
1.debian.pool.ntp.org iburst
2.debian.pool.ntp.org iburst
3.debian.pool.ntp.org iburst




-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/02e9d496-b1d9-4103-ab44-740ef33172fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to