Puppet provides the erb templating system so you can do variable expansion
and replacement in your templates. The templates are processed on the
puppet master and sent to the client (windows) as text. The windows client
then replaces the old config file with the new one from the template.

Step 1) Copy an existing config file into your puppet module's template
section. Name it config_file.erb

Step 2) Replace variables in the config file with puppet facts or variables
from your manifests

Example:
If a line said:
listen_address = 192.168.0.5
You would change it to:
listen_address = <%= $::ipaddress %>

Step 3) Run Puppet on the client. Nothing should change on the first
client, but all subsequent clients will be easier to configure.

Hope this helps,
Spencer

On Sat, Nov 22, 2014 at 12:24 AM, Renu Chuppala <rchupp...@gmail.com> wrote:

> Please provide me steps to modify the config files using templates in
> *WINDOWS*
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to puppet-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/45e3f9da-31e0-4311-8a9f-931918547ce8%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/45e3f9da-31e0-4311-8a9f-931918547ce8%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Spencer Krum
(619)-980-7820

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CADt6FWOTTRVf3P2PGRTDX9uCCr2fs%2BpR47yWeJ8q%3DaaUxnpN9w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to