Ask Your Question
0

Hiera not available under 3.7.4 RHEL 6.5

asked 2015-02-11 05:29:16 -0500

janos gravatar image

Hello, I am struggling to install my puppetmaster on RHEL 6.5. Puppet: 3.7.4 Hiera:1.3.4.1.el6.noarch

/etc/puppet/puppet.conf:

[main]

logdir = /var/log/puppet
rundir = /var/run/puppet
ssldir = $vardir/ssl
dns_alt_names = xxxx.xxxx.xxxx.xxxx, xxxx.xxxx.xxxx.xxxx, xxxx
basemodulepath = /etc/puppet/environments/production/modules
environmentpath = $confdir/environments
hiera_config = /etc/hiera.yaml

[master]

environment = production
certname = xxxx.xxxx.xxxx.xxxx
dns_alt_names = xxxx.xxxx.xxxx.xxxx,xxxx,xxxx

[agent]

classfile = $vardir/classes.txt
localconfig = $vardir/localconfig

Running puppet with the WEBRICK server for debugging purposes, I receive the following error:

Error: Hiera terminus not supported without hiera library at /etc/puppet/environments/production/modules/autofs/manifests/init.pp:2 on node xxxx.xxxx.xxxx.xxxx

Wrapped exception: Hiera terminus not supported without hiera library

Error: Hiera terminus not supported without hiera library at /etc/puppet/environments/production/modules/autofs/manifests/init.pp:2 on node xxxx.xxxx.xxxx.xxxx

Error: Hiera terminus not supported without hiera library at /etc/puppet/environments/production/modules/autofs/manifests/init.pp:2 on node xxxx.xxxx.xxxx.xxxx

I have created a /etc/puppet/hiera.yaml afterwards, this changes nothing.


:backends: - yaml - puppet

:hierarchy: - "%{location}" - "%{environment}" - common

:yaml: :datadir: '/etc/puppet/hieradata/'

:puppet: :datasource: data

Any clou?

edit retag flag offensive close merge delete

Comments

A question and a request:
Q: Does hiera work from the command line ?
Request: Module autofs - if it is from The Forge, which one, if not, please provide a Gist of it
https://gist.github.com/

LinuxDan gravatar imageLinuxDan ( 2015-02-11 07:27:27 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-02-11 15:10:02 -0500

janos gravatar image

Hello, well Im not entirely sure, as Im not familiar with hiera yet.

  • hiera Please supply a data item to look up

  • hiera -c /etc/puppet/hiera.yaml -y /etc/puppet/hieradata/facts.yaml is_virtual

/usr/lib/ruby/site_ruby/1.8/puppet/parser/functions.rb:46:in environment_module': undefined method[]' for nil:NilClass (NoMethodError)

    from /usr/lib/ruby/site_ruby/1.8/puppet/parser/functions.rb:259:in `get_function'
    from /usr/lib/ruby/site_ruby/1.8/puppet/parser/functions.rb:192:in `function'
    from /usr/lib/ruby/site_ruby/1.8/hiera/backend/puppet_backend.rb:51:in `lookup'
    from /usr/lib/ruby/site_ruby/1.8/hiera/backend.rb:206:in `lookup'
    from /usr/lib/ruby/site_ruby/1.8/hiera/backend.rb:203:in `each'
    from /usr/lib/ruby/site_ruby/1.8/hiera/backend.rb:203:in `lookup'
    from /usr/lib/ruby/site_ruby/1.8/hiera.rb:60:in `lookup'
    from /usr/bin/hiera:225
  • rpm -qa | grep hiera hiera-1.3.4-1.el6.noarch

  • rpm -qa | grep puppet puppetlabs-release-6-11.noarch puppet-3.7.4-1.el6.noarch puppet-server-3.7.4-1.el6.noarch

the autofs module is just a fast written module without much intelligence: https://gist.github.com/366b340138d3fd3926df.git

edit flag offensive delete link more

Comments

I have now installed puppet, puppet-server and hiera from scratch on a RHEL 6.5 - same server layout. And surpise, it works from beginning. WTF? And the comparison begins..

janos gravatar imagejanos ( 2015-02-12 03:23:32 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-02-11 05:29:16 -0500

Seen: 396 times

Last updated: Feb 11 '15