Issue #19071 has been updated by Peter Meier.

Status changed from Unreviewed to Rejected

This seems to be a ruby issue:

<pre>
$ cat foo.rb 
require 'yaml'
a=YAML.load("classes:
  cobbler::server:
    dns_servers: &id001
    - 129.102.2.10
    - 129.102.2.11
    domain_name: ircam.fr
  resolver:
    domain: ircam.fr
    servers: *id001")
puts a['classes']['resolver']['servers']
$ rvm use 1.9.3
Using /home/duritong/.rvm/gems/ruby-1.9.3-p362
$ ruby foo.rb 
129.102.2.10
129.102.2.11
$ rvm use system
Now using system ruby.
$ ruby -v
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
$ ruby foo.rb 
nil
</pre>

And EL5 is on 1.8.5 by default. I don't expect that this one supports it either.

If you see something else, please reopen.
----------------------------------------
Bug #19071: YAML parser for ENCs doesn't accept alias nodes
https://projects.puppetlabs.com/issues/19071#change-82601

Author: Arnaud Gomes-do-Vale
Status: Rejected
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected Puppet version: 
Keywords: yaml
enc
Branch: 


Here is part of a sample output from my ENC:

<pre>
classes:
  cobbler::server:
    dns_servers: &id001
    - 129.102.2.10
    - 129.102.2.11
    domain_name: ircam.fr
  resolver:
    domain: ircam.fr
    servers: *id001
</pre>

The puppetmaster chokes on this input:

<pre>
Feb  5 17:21:37 puppet-test puppet-master[19197]: Received incomplete 
information - no value provided for parameter servers on node 
cobbler-staging.ircam.fr
</pre>

I have changed my ENC to explicitely print the server list each time it is 
needed rather than using alias nodes, which works:

<pre>
classes:
  cobbler::server:
    dns_servers:
    - 129.102.2.10
    - 129.102.2.11
    domain_name: ircam.fr
  resolver:
    domain: ircam.fr
    servers:
    - 129.102.2.10
    - 129.102.2.11
</pre>

Alias nodes are part of the YAML standard (defined in section 7.1 of the YAML 
1.2 spec), so I guess they should be suported? Or is this an issue with the 
YAML parser in Ruby?

All this is on CentOS 5, running puppet 3.0.2 from puppetlabs repo.



-- 
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://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to