Ask Your Question

Ghost images - ID all resources and modify configuration

asked 2013-09-19 08:36:31 -0500

PhilC gravatar image

I received ghost linux image and the programmer who built the image has left the company. Instead of spending countless days to go over every detail, I'd would like to use Puppet to discover all the resources, files, and potentially configurations (system and if possible some of the other files). Definitely would like to see what is executing, the files that are started up automatically, etc. Is there a way I can do this easily with Puppet?

Ultimately, we would need to replicated this ghost to many VM's with some slight modifications based on geography.

Thanks so much.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-09-19 09:53:08 -0500

GregLarkin gravatar image

puppet resource and some shell scripting will be a great way to do this:

For instance, you can generate Puppet code for all of the existing users like so:

grep -v ^# /etc/passwd | cut -f1 -d:| xargs -n1 puppet resource user

Here's how you can generate Puppet code for all services on a CentOS/RHEL box:

ls /etc/rc.d/init.d | xargs -n1 puppet resource service

Hope that helps!

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


Asked: 2013-09-19 08:36:31 -0500

Seen: 82 times

Last updated: Sep 19 '13