What is a good way to manage individual XML settings on Windows?

122 views
Skip to first unread message

Ger Apeldoorn

unread,
Jan 8, 2014, 6:51:47 AM1/8/14
to puppet...@googlegroups.com
Hi,

I'm looking for a good way to manage individual XML values on Windows. 

Apparently, Augeas does not work on Windows and we cannot manage the entire file as a template because of some values that are generated during installation of the package.

How would I manage individual values in XML files on Windows machines?

Thanks in advance,
Ger

Jeff Bachtel

unread,
Jan 8, 2014, 10:45:50 AM1/8/14
to puppet...@googlegroups.com
Depending on your comfort level you could use PowerShell to do it, see http://powershell.com/cs/blogs/tobias/archive/2009/02/02/xml-part-2-write-add-and-change-xml-data.aspx

You could combine that XML read/manipulate/write technique with the Powershell exec provider from https://forge.puppetlabs.com/joshcooper/powershell to create a Windows XML-manipulation resource if you found yourself doing that a lot.

Hopefully someone has an easier answer, I know that's a bit of coding to have to do,

Jeff
--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/00dbf19e-660c-41f2-a0cb-84ffb91f817e%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages