Issue #2987 has been updated by Peter Couvares.
Ah -- thank you! My apologies for the false report. For future reference, was this metaparameter name change documented somewhere obvious that I should have noticed (other than your example code at the top of this ticket), or it just the kind of thing anyone running the release candidate is expected to figure out on their own by reviewing all the post-0.24.x changes in detail? If I failed to read something that I should have, I'd like to know. Thanks again. ---------------------------------------- Bug #2987: host resource fails with alias and not yet present entry http://projects.reductivelabs.com/issues/2987 Author: Peter Meier Status: Closed Priority: Normal Assigned to: Category: Doh! Target version: 0.25.2 Affected version: 0.25.2rc2 Keywords: Branch: http://github.com/duritong/puppet/tree/ticket/0.25.x/2987 Given the following manifest: <pre> -bash-3.2# cat foo.pp host{ 'foo.bar.ch': host_aliases => [ 'foo', 'ifoor.bar.ch' ], ip => '192.168.1.81'; } </pre> and that no such entry is yet present, the host alias will fail with the following error: <pre> -bash-3.2# puppet --trace foo.pp notice: //Host[foo.bar.ch]/ensure: created /usr/lib/ruby/site_ruby/1.8/puppet/provider/host/parsed.rb:66:in `to_line' /usr/lib/ruby/site_ruby/1.8/puppet/util/fileparsing.rb:314:in `to_file' /usr/lib/ruby/site_ruby/1.8/puppet/util/fileparsing.rb:314:in `collect' /usr/lib/ruby/site_ruby/1.8/puppet/util/fileparsing.rb:314:in `to_file' /usr/lib/ruby/site_ruby/1.8/puppet/provider/parsedfile.rb:316:in `to_file' /usr/lib/ruby/site_ruby/1.8/puppet/provider/parsedfile.rb:102:in `flush_target' /usr/lib/ruby/site_ruby/1.8/puppet/provider/parsedfile.rb:74:in `flush' /usr/lib/ruby/site_ruby/1.8/puppet/provider/parsedfile.rb:72:in `each' /usr/lib/ruby/site_ruby/1.8/puppet/provider/parsedfile.rb:72:in `flush' /usr/lib/ruby/site_ruby/1.8/puppet/provider/parsedfile.rb:356:in `flush' /usr/lib/ruby/site_ruby/1.8/puppet/type.rb:752:in `flush' /usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:94:in `apply' /usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:251:in `eval_children_and_apply_resource' /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:389:in `thinmark' /usr/lib/ruby/1.8/benchmark.rb:293:in `measure' /usr/lib/ruby/1.8/benchmark.rb:307:in `realtime' /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:388:in `thinmark' /usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:250:in `eval_children_and_apply_resource' /usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:207:in `eval_resource' /usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:296:in `evaluate' /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:389:in `thinmark' /usr/lib/ruby/1.8/benchmark.rb:293:in `measure' /usr/lib/ruby/1.8/benchmark.rb:307:in `realtime' /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:388:in `thinmark' /usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:295:in `evaluate' /usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:289:in `collect' /usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:289:in `evaluate' /usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:142:in `apply' /usr/lib/ruby/site_ruby/1.8/puppet/application/puppet.rb:128:in `main' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:226:in `send' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:226:in `run_command' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:217:in `run' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:306:in `exit_on_fail' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:217:in `run' /usr/bin/puppet:71 err: Got an uncaught exception of type ArgumentError: Host aliases must be specified as an array </pre> It looks like while migrating to @host_aliases@ something got missed. There is no such problem if the entry already exists. Patch is sent soon. -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://reductivelabs.com/redmine/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. 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-bugs?hl=en.
