Ask Your Question
0

Recover master config from client

asked 2015-06-09 05:01:42 -0600

Subs gravatar image

0 down vote favorite

Anyone know if you can recover puppet configuration from a host that had previously connected to the master via the agent? We've found the reformatted yaml file that applied to the host, but not the actual puppet code. With CFengine the client creates a local copy of the config files in its working dir, was hoping puppet did something similar for times when the master(s) are unavailable.

Hands up to schoolboy error - we don't have a backup, this was a dev environment that had been worked on a few weeks. We talked about backups and had just tested out version control with git (on the same host) but never got around to implementing in anger, then the VM administrator inadvertently deleted the guest...

Thanks in advance

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-06-10 04:00:24 -0600

there may be a better way to do this - but I'll have a go! I'm assuming client is there but server has gone?

on client look in puppet.conf - you should see a line that says vardir = /var/... (whatever its set to for you)

cd into the vardir - in there you'll see an absolute mass of data (including the last compiled catalog) - you could reverse engineer the information you require from here..

possibly worth checking with the vm admin if he took a snapshot of your server at any point or if they deleted host but left underlying disks (can recover from there).. good luck

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: 2015-06-09 05:01:42 -0600

Seen: 37 times

Last updated: Jun 10 '15