Short of what Spencer has pointed out, there is not a module out there (to my knowledge) that will let you edit xml files in place with XPath type settings on Windows. Yet. I'm sure this is a paint point for quite a few folks that would want to be able to update an XML file in place. Augeas would be a good way of doing this if/when it started supporting Windows. Another would be a module specifically for this use case.
On Sat, Nov 22, 2014 at 7:20 AM, Spencer Krum <krum.spen...@gmail.com> wrote: > 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 > <https://groups.google.com/d/msgid/puppet-users/CADt6FWOTTRVf3P2PGRTDX9uCCr2fs%2BpR47yWeJ8q%3DaaUxnpN9w%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Rob Reynolds Developer, Puppet Labs *Join us at **PuppetConf 2015, October 5-9 in Portland, OR - * http://2015.puppetconf.com/ *Register early to save 40%!* -- 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/CAMJiBK6aHWGUsG59tgM5Bk8q_f3jYNyWhterg2-kNsxpwy121Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.