perfsonar-user - RE: [perfsonar-user] perfsonar config file format rant
Subject: perfSONAR User Q&A and Other Discussion
List archive
- From: SCHAER Frederic <>
- To: Andrew Lake <>, "" <>
- Subject: RE: [perfsonar-user] perfsonar config file format rant
- Date: Tue, 19 Apr 2016 14:53:52 +0000
- Accept-language: fr-FR, en-US
Hi Andy, Some news about this : I was finally able to take a look, and successfully edited the configuration with Augeas, with the httpd lens. Regards De : Andrew Lake [mailto:]
Hi, Thanks for the comment. You are correct, it is not XML nor is it intended to be. It is Apache config file format, and mirrors what the format the
Apache web server uses. In Perl, the primary module used to parse such files is called Config::General (http://search.cpan.org/dist/Config-General/General.pm). As with all config file formats
there are advantages and disadvantages. It’s a rather popular format in the Perl world which is what most of the tools are or were originally written in years ago. You can find libraries to parse it in other languages, though admittedly the libraries are not
always as popular(i.e. well-supported). There are no CLI tools provided by perfsonar to manipulate it, though its should be possible to write a perl script to do hat you want with Config::General or (depending on what you are doing) use template features of
you config management software. If all else fails I’ve always been able to get away with some old fashioned sed commands in our configuration management rules on ESnet but it depends what you are trying to do I guess. Thanks, Andy On March 16, 2016 at 6:20:13 AM, SCHAER Frederic () wrote:
|
- RE: [perfsonar-user] perfsonar config file format rant, SCHAER Frederic, 04/19/2016
Archive powered by MHonArc 2.6.16.