Red Hat Bugzilla – Bug 994319
% needs to be escaped in /etc/hiera.yaml
Last modified: 2013-09-26 02:28:31 EDT
Description of problem:
With the default /etc/hiera.yaml, hiera throws a parsing error pointing to the first % character in the file.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. create a simple yaml file: /var/lib/hiera/global.yaml
2. set a variable value: var: value
3. run: hiera var
Failed to start Hiera: Psych::SyntaxError: (/etc/hiera.yaml): found character that cannot start any token while scanning for the next token at line 6 column 5
Should display: value
The two % characters in the default /etc/hiera.yaml need to be escaped either by \ in front or enclosing the strings in "":
hiera-1.2.1-1.fc20 has been submitted as an update for Fedora 20.
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing hiera-1.2.1-1.fc20'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
hiera-1.2.1-1.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.