Issue #15350 has been updated by Ken Barber.

Its not garbage Ryan, these are node anchors - and its valid YAML. It can be 
solved by us dup'ing the facter values - I've tried it in the past, but you 
need to be mindful that YAML is for machine readability at the end of the day.

<http://www.yaml.org/spec/1.2/spec.html#id2785586>
----------------------------------------
Bug #15350: Fact, when output as yaml produce inconsistent values that look 
like *id00X
https://projects.puppetlabs.com/issues/15350#change-66246

Author: Ryan Coleman
Status: Rejected
Priority: Normal
Assignee: 
Category: 
Target version: 
Keywords: facter amazon ec2
Branch: 
Affected Facter version: 1.6.7


[root@ip-10-161-19-135 puppet-enterprise]# facter --version
1.6.7

[root@ip-10-161-19-135 puppet-enterprise]# cat /etc/system-release
Amazon Linux AMI release 2011.09


I initially discovered this problem with osfamily when output as yaml but it 
looks like many other facts return garbage, inconsistently. 
<pre>
[root@ip-10-161-19-135 puppet-enterprise]# facter --yaml | grep *id
  memorysize: *id001
  kernelrelease: *id002
  osfamily: *id003
[root@ip-10-161-19-135 puppet-enterprise]# facter --yaml | grep *id
  osfamily: *id001
  operatingsystemrelease: *id002
  memorysize: *id003
[root@ip-10-161-19-135 puppet-enterprise]# facter --yaml | grep *id
  osfamily: *id001
  memorysize: *id002
  kernelrelease: *id003
[root@ip-10-161-19-135 puppet-enterprise]# facter --yaml | grep *id
  kernel: *id001
  memorysize: *id002
  operatingsystemrelease: *id003
</pre>

To Reproduce:
* Create an EC2 instance with the 2011.09 Amazon Linux (I used ami-951945d0)
* Install PE 2.5.1 ( I installed Agent only role, just wanted Facter)
* Execute `facter --yaml` and look for facts whose values start with *id


Addendum:  
While I initially discovered this on Amazon, I can reproduce when running 
Facter 1.6.7 from source on my MBP (10.7.3). Simply execute facter --yaml


-- 
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 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.

Reply via email to