Ask Your Question
0

Hiera not working for puppet version 5

asked 2018-03-22 18:26:05 -0500

Hello ,

I recently upgraded puppet version 3 to version 5. all is working fine with new version by my hiera configurations for puppet 5 is not working. i think even the hiera.yaml is not getting read. please advise what should i do here. below are the configurations for my setup.

1) Hiera.yaml

cat /etc/puppetlabs/puppet/hiera.yaml
version: 5
defaults:
datadir: /etc/puppetlabs/code/hieradata/
data_hash: yaml_data
hierarchy:
- name: "Test"
path: "nodes/%{environment}/%{trusted.certname}.yaml"

2) And my Environment YAML files are kept at

cat /etc/puppetlabs/code/hieradata/nodes/staging/puppetaws.demo.com.yaml
demo::configuration::phpini::memory_limit: "32"

But nothing is getting changed on my remote machine when I run the puppet command

/opt/puppetlabs/bin/puppet agent

please suggest what i am doing wrong here.

Thanks & Regards

Sushil.R

edit retag flag offensive close merge delete

Comments

did you try `puppet lookup --explain` to see what it is trying to do? What file permissions are on your yaml files? If they are not readable by the user running puppet, then they won't be read (that happened to me before)

DarylW gravatar imageDarylW ( 2018-03-23 09:15:47 -0500 )edit

What is the exact error message you are getting. Check for the java key tool version installed on your server as hiera eyaml uses java keytool

RS gravatar imageRS ( 2018-03-23 12:48:47 -0500 )edit

When i run that command , i gives me nothing. further I run below command on master and its showing data #puppet lookup explain demo::configuration::phpini::memory_limit --environment staging -node puppetsr7.demo.com --- '32'

Sushil_Rangari gravatar imageSushil_Rangari ( 2018-03-26 06:22:56 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-03-23 12:50:05 -0500

RS gravatar image

What is the exact error message you are getting? Check for the java key tool version installed on your server as hiera eyaml uses java keytool

edit flag offensive delete link more

Comments

No error i am getting either on Remote end or in master. can you please let me know the exact package version name of jave keytool.

Sushil_Rangari gravatar imageSushil_Rangari ( 2018-03-26 06:25:20 -0500 )edit

Running command on master gives me output, but some how its not getting replicated on remote node.
puppet lookup explain demo::configuration::phpini::memory_limit --environment staging --node pupet.demo.com
--- '32'

Sushil_Rangari gravatar imageSushil_Rangari ( 2018-03-27 09:18:39 -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: 2018-03-22 18:26:05 -0500

Seen: 83 times

Last updated: Mar 23