Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
PUP 6.2.0
-
None
-
Night's Watch
-
1
-
ghost-16.09, ghost-23.09, ghost-30.09, ghost-7.10, ghost-14.10
-
Needs Assessment
-
Bug Fix
-
-
Needs Assessment
Description
In puppet 6 (and not in 5), `puppet facts --render-as yaml` outputs mac addresses unquoted.
If your mac address doesn't contain any chars A-F this is a problem as other tools parsing this yaml will interpret the value as a sexagesimal (base 60) integer.
https://yaml.org/type/int.html
Cached fact data in /opt/puppetlabs/server/data/puppetserver/yaml/facts is also broken.
One tool affected by this problem is the enc script that ships with Foreman. It loads data from /opt/puppetlabs/server/data/puppetserver/yaml/facts/some_node.yaml and uploads the facts to foreman as json. Foreman understandably doesn't like the mac address it receives in the payload.