Skip to content

Instantly share code, notes, and snippets.

@jrmoserbaltimore
Last active December 11, 2015 23:39
Show Gist options
  • Save jrmoserbaltimore/4678624 to your computer and use it in GitHub Desktop.
Save jrmoserbaltimore/4678624 to your computer and use it in GitHub Desktop.
hiera.yaml
/usr/lib/ruby/1.9.1/psych.rb:203:in `parse': (/etc/puppet/hiera.yaml): found character that cannot start any token while scanning for the next token at line 3 column 5 (Psych::SyntaxError)
from /usr/lib/ruby/1.9.1/psych.rb:203:in `parse_stream'
from /usr/lib/ruby/1.9.1/psych.rb:151:in `parse'
from /usr/lib/ruby/1.9.1/psych.rb:127:in `load'
from /usr/lib/ruby/1.9.1/psych.rb:297:in `block in load_file'
from /usr/lib/ruby/1.9.1/psych.rb:297:in `open'
from /usr/lib/ruby/1.9.1/psych.rb:297:in `load_file'
from /usr/lib/ruby/vendor_ruby/hiera/config.rb:54:in `yaml_load_file'
from /usr/lib/ruby/vendor_ruby/hiera/config.rb:19:in `load'
from /usr/lib/ruby/vendor_ruby/hiera.rb:47:in `initialize'
from /usr/bin/hiera:206:in `new'
from /usr/bin/hiera:206:in `<main>'
---
:hierarchy:
- %{::clientcert}
- %{::environment}
- common
:backends:
- yaml
:yaml:
:datadir: '/etc/puppet/environments/%{environment}/data'
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: (/etc/puppet/hiera.yaml): found character that cannot start any token while scanning for the next token at line 3 column 5
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
@strobert
Copy link

looks to have been a ruby 1.9 issue. the new Psycher parse seems to want those quoted as a new "feature"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment