Bug 994319 - % needs to be escaped in /etc/hiera.yaml
Summary: % needs to be escaped in /etc/hiera.yaml
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: hiera
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Steve Traylen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-07 03:55 UTC by Ian Mortimer
Modified: 2013-09-26 06:28 UTC (History)
2 users (show)

Fixed In Version: hiera-1.2.1-1.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-26 06:28:31 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Ian Mortimer 2013-08-07 03:55:13 UTC
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):
hiera-1.0.0-3.fc18.noarch

How reproducible:
Always


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

Actual results:
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


Expected results:
Should display: value


Additional info:
The two % characters in the default /etc/hiera.yaml need to be escaped either by \ in front or enclosing the strings in "":

  - "%{certname}"
  - "%{environment}"

Comment 1 Fedora Update System 2013-09-16 19:23:28 UTC
hiera-1.2.1-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/hiera-1.2.1-1.fc20

Comment 2 Fedora Update System 2013-09-17 18:16:57 UTC
Package hiera-1.2.1-1.fc20:
* 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:
https://admin.fedoraproject.org/updates/FEDORA-2013-16970/hiera-1.2.1-1.fc20
then log in and leave karma (feedback).

Comment 3 Fedora Update System 2013-09-26 06:28:31 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.