Ask Your Question
2

Revert puppet changes

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

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

Comments

4

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

1 Answer

Sort by ยป oldest newest most voted
4

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

Ancillas gravatar image

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

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

Comments

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

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

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

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

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

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

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 -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

Stats

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

Seen: 2,900 times

Last updated: Aug 13 '13