Ask Your Question

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

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

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

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

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.

  !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


Asked: 2013-11-13 10:23:37 -0600

Seen: 558 times

Last updated: Nov 15 '13