Ask Your Question
0

I have accidentally deleted modules from testing servers by using the following command ( rm -rf modulename * ) how can i get them back

asked 2017-03-13 20:10:14 -0500

Hi,

I have accidentally deleted modules from testing servers by using the following command ( rm -rf modulename * ) which forced all the modules to be deleted, Is there anyway that i can get the modules back? and i do not have any back up.

Thanks.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-03-14 14:02:49 -0500

DarylW gravatar image

You may be able to use information from the web similar to the following Stack Overflow question http://askubuntu.com/questions/604311...

However, this is the point where you should look into some proper software development workflows.

You should be using some form of VCS (Version Control Software) like git to keep track of the changes to your code. When most people start out using puppet, they tend to start with a single git repository with a copy of all of their code in one place. Check out some git resources here

If you are using Puppet Enterprise, you can use Code Manager, otherwise you can use a tool like r10k or librarian-puppet using the 'control-repo' pattern, where you have a Puppetfile which defines all of your module dependencies, and you can store your hieradata, roles, profiles, and potentially any custom modules in your control repository. Each branch in the control repository represents a puppet 'environment' that you can populate on your master in a repeatable, consistent way.

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

Stats

Asked: 2017-03-13 20:10:14 -0500

Seen: 20 times

Last updated: Mar 14