I'm trying to use hiera.
The common.yaml is
greg:
db_type: "mysql"
db_host: %{::domain}
db_name: "odaigreg"
db_user: "odaigreg"
db_password: "odaigreg1"
db_tag: "greg_db"
is_remote: "true"
and the command
hiera -c /etc/puppet/environments/production/hiera.yaml greg
environment=production confdir="/etc/puppet" -d
returns:
DEBUG: Mon Apr 29 15:11:48 +0200 2013: Hiera YAML backend starting
DEBUG: Mon Apr 29 15:11:48 +0200 2013: Looking up greg in YAML backend
DEBUG: Mon Apr 29 15:11:48 +0200 2013: Looking for data source common
/usr/lib/ruby/site_ruby/1.8/hiera/filecache.rb:35:in `%': malformed format
string - %S (ArgumentError)
from /usr/lib/ruby/site_ruby/1.8/hiera/filecache.rb:35:in `read'
from
/usr/lib/ruby/site_ruby/1.8/hiera/backend/yaml_backend.rb:22:in `lookup'
from /usr/lib/ruby/site_ruby/1.8/hiera/backend.rb:68:in
`datasources'
from /usr/lib/ruby/site_ruby/1.8/hiera/backend.rb:66:in `map'
from /usr/lib/ruby/site_ruby/1.8/hiera/backend.rb:66:in
`datasources'
from
/usr/lib/ruby/site_ruby/1.8/hiera/backend/yaml_backend.rb:16:in `lookup'
from /usr/lib/ruby/site_ruby/1.8/hiera/backend.rb:182:in `lookup'
from /usr/lib/ruby/site_ruby/1.8/hiera/backend.rb:179:in `each'
from /usr/lib/ruby/site_ruby/1.8/hiera/backend.rb:179:in `lookup'
from /usr/lib/ruby/site_ruby/1.8/hiera.rb:64:in `lookup'
from /usr/bin/hiera:220
The hiera.yaml is:
:backends: yaml
:yaml:
:datadir: /etc/puppet/environments/production/hieradata
:hierarchy: common
:logger: console
Any hints on something I missed?
Thanks
Luca
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.