Ask Your Question
1

What is /var/lib/puppet/state good for?

asked 2013-11-13 10:23:37 -0500

xtraclass gravatar image

What is the directory /var/lib/puppet/state good for? (on the puppet client side)

And why does state.yaml get soooo big sometimes (especially if you have several managed directories with recurse true) that the whole deploy process is getting very slow? What can one do to prevent that state.yaml gets so big? One can remove the files in that directory manually, but shouldn't that done by Puppet automatically?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2013-11-15 00:53:31 -0500

ramindk gravatar image

How big is your state.yaml file? The largest one I have is 125k or about 3000 lines. Each resources takes three lines and looks like this.

File[/usr/share/mcollective/plugins/mcollective/agent/nrpe.rb]: 
  !ruby/sym synced: 2013-07-12 22:22:15.126216 +00:00
  !ruby/sym checked: 2013-11-15 06:33:55.369970 +00:00

Having Puppet sync large file dirs is adding three lines per file and that is the cause of your growth. However the deploy process being slow is because Puppet isn't built to be an rsync server which is how you're using it ... (more)

edit flag offensive delete link more

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-11-13 10:23:37 -0500

Seen: 326 times

Last updated: Nov 15 '13