Your best bet may be using a native Ruby XML parsing library to edit the
file so that you can maintain the namespaces. Otherwise you could use
something like 'sed' to do a find/replace of the text between two tags if
you know what the valid string should look like. This may require manually
configuring once to discover the correct syntax.

On Fri, Jul 22, 2016 at 9:55 AM, dgarstang <[email protected]> wrote:

> I'm trying to manage the artifactory config file with chef. Chef needs to
> add
> ldap settings to the file. I've tried to use the community xml_edit
> cookbook
> to modify the config file in place, but since the config file uses
> namespaces, and the cookbook doesn't support those, this doesn't work.
>
> Anyone got any ideas on how to do this? It would be nice if Artifactory
> joined the 21st century and had some sort of pluggable mechanism for the
> config that allowed it to be broken into smaller more manageable pieces.
>
> Thanks,
> Doug
>
>
>
>
> --
> View this message in context:
> http://forums.jfrog.org/Manage-Artifactory-config-xml-with-chef-tp7581112.html
> Sent from the Artifactory - Users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> What NetFlow Analyzer can do for you? Monitors network bandwidth and
> traffic
> patterns at an interface-level. Reveals which users, apps, and protocols
> are
> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
> J-Flow, sFlow and other flows. Make informed decisions using capacity
> planning
> reports.http://sdm.link/zohodev2dev
> _______________________________________________
> Artifactory-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to