Ask Your Question

Retrieve initial configuration

asked 2016-06-15 15:36:28 -0600

puppet_help gravatar image

Is it possible to detect the current settings on a Windows machine to then use to configure a new Puppet agent for that machine? We have Windows servers that are already running that we would like to manage with Puppet but don't want to overwrite any of the initial settings, just use them as a base.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2016-06-16 03:58:23 -0600

Have a look at the puppet resource tool and see if that helps you.

edit flag offensive delete link more

answered 2016-06-16 13:39:21 -0600

Another option to use is called Puppet Manifest Generator. It queries existing servers using PowerShell Remoting, then produces valid puppet manifests from the data it found. These manifests can be either used as is, or as examples to make something customized for your environment. The intention is to get you started quickly with an accurate set of information that you can tweak to suit your needs.

It can be as easy as:

Invoke-PuppetGenerator -ComputerName 'host01','host02'

Note that the servers you query must have PowerShell Remoting enabled, which means servers that have PowerShell v2 and above. It will use your current credentials, or credentials you provide at the prompt.

In order to use PuppetManifestGenerator, first install it on your workstation using these instructions. Then follow some examples here or use Get-Help Invoke-PuppetGenerator for some more detailed information.

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: 2016-06-15 15:36:28 -0600

Seen: 436 times

Last updated: Jun 16 '16