Ask Your Question

Revert puppet changes

asked 2013-08-13 07:41:54 -0500

Dear Team,

I have made the changes one of the main environment through the command puppet agent --test

When i ran this command there were several changes made to that environment After checking i got to know that puppet was stopped for that environment as the team was implementing new changes.

Now i have to revert those changes - very very critical for me.

Please could you help and guide me on how to get back those changes.

Thanks in advance

edit retag flag offensive close merge delete



It's usually best to first run your Puppet code with the --noop flag to prevent unexpected changes.

Ancillas gravatar imageAncillas ( 2013-08-13 13:44:49 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2013-08-13 13:43:28 -0500

Ancillas gravatar image

updated 2013-08-13 13:44:05 -0500

If you have the filebucket enabled, you can look through the log, find the MD5 hashes of the old files, and then restore then puppet filebucket restore <location> <md5hash>.

edit flag offensive delete link more


Please could you guide me on how to restore the file bucket and where to find the exact md5hash and what should be the location.

scm_questor gravatar imagescm_questor ( 2013-08-13 15:05:18 -0500 )edit

Please post your puppet.conf file in your original post as an edit.

Ancillas gravatar imageAncillas ( 2013-08-13 17:25:07 -0500 )edit

Also, please post the version of Puppet that you're using. `puppet --version`

Ancillas gravatar imageAncillas ( 2013-08-13 17:26:04 -0500 )edit

Its resolved now. Thanks a lot for your kind help :) Just one query : The md5hash is available only for changes in files. If we are changing the permission of the ...(more)

scm_questor gravatar imagescm_questor ( 2013-08-13 17:46:55 -0500 )edit

The backup of the state of your system before and after a deploy should be captured by your version control system. You should be committing all of your Puppet code ...(more)

Ancillas gravatar imageAncillas ( 2013-09-01 02:26:58 -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


Asked: 2013-08-13 07:41:54 -0500

Seen: 2,637 times

Last updated: Aug 13 '13