Ask Your Question
1

How to refresh puppet master cached catalog?

asked 2013-10-09 10:18:51 -0500

deric gravatar image

After changing hierarchy inhiera.yaml puppet master tries to find yaml files according to the old config, even though

hiera my_key --debug

provides expected output according to new hiera.yaml

Is there a way how to force refreshing master cache?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2013-10-09 12:27:11 -0500

deric gravatar image

Currently fastest solution:

rm /var/lib/puppet/client_data/catalog/*
edit flag offensive delete link more

Comments

The above provided code is helpful when puppet client keeps doing commands that are already vanished from puppetmaster .pp files.

mistige gravatar imagemistige ( 2014-11-12 04:04:08 -0500 )edit
1

answered 2013-10-09 11:59:53 -0500

LindaLoo gravatar image

You will have to restart the Puppet master process anytime you make changes to hiera.yaml.

edit flag offensive delete link more

Comments

what if I server puppet master over nginx and passenger?

deric gravatar imagederic ( 2013-10-09 12:25:41 -0500 )edit

you can touch /path/to/puppet/tmp/restart.txt in the application dir if you know where that is. It should cause Passenger to restart all the Rack processes running ...(more)

LindaLoo gravatar imageLindaLoo ( 2013-10-09 12:31:53 -0500 )edit

I tried restarting nginx but it doesn't help

deric gravatar imagederic ( 2013-10-09 13:06:08 -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: 2013-10-09 10:18:51 -0500

Seen: 23,517 times

Last updated: Oct 09 '13