Ask Your Question

How to refresh puppet master cached catalog?

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

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

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

deric gravatar image

Currently fastest solution:

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


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 -0600 )edit

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

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


what if I server puppet master over nginx and passenger?

deric gravatar imagederic ( 2013-10-09 12:25:41 -0600 )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 -0600 )edit

I tried restarting nginx but it doesn't help

deric gravatar imagederic ( 2013-10-09 13:06:08 -0600 )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


Asked: 2013-10-09 10:18:51 -0600

Seen: 34,362 times

Last updated: Oct 09 '13