I've setup a similar environment (CentOS 6.6, Ruby 1.8.7p374, Puppet 3.8.1
from gems) in Docker, and I can't reproduce the behavior. I've copied
directly from your e-mail.

I started with a single machine, so I setup
host { 'puppet':
  ensure => 'present',
  ip     => '127.0.0.1',
  target => '/etc/hosts',
}
to run `puppet agent -t`. Done without future parser (since it's not
needed), and both stringify_facts=true and false (as set in POSS and PE
3.8, respectively).

Also tried `puppet apply` and setup a 2nd machine to run `puppet agent -t`.

I'm not sure what's going on except it should work.


On Wed, Aug 19, 2015 at 3:00 PM, Lunixer <luni...@gmail.com> wrote:

> 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
> <https://groups.google.com/d/msgid/puppet-users/02e9d496-b1d9-4103-ab44-740ef33172fb%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Michael Smith
Developer, Puppet Labs

*PuppetConf 2015 <http://2015.puppetconf.com/> is coming to Portland,
Oregon! Join us October 5-9.*
*Register now to take advantage of the Final Countdown discount
<https://www.eventbrite.com/e/puppetconf-2015-october-5-9-register-now-its-the-final-countdown-tickets-13115894995?discount=FinalCountdown>
*
*—**save $149!*

-- 
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/CABy1mMLOUOYvjAcpgHMr7tXv0NP-%2BeyQVrdY1y69H%3D7z3bSfwQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to