Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Perl module for automating the modification of config files?

by Arunbear (Prior)
on Oct 04, 2020 at 14:07 UTC ( [id://11122534]=note: print w/replies, xml ) Need Help??


in reply to Perl module for automating the modification of config files?

This problem space is called configuration management and there are a number of tools being used for this e.g. Ansible, Salt, Puppet etc.

Rex is the only one implemented in Perl that I know of (not sure how much that matters though).

  • Comment on Re: Perl module for automating the modification of config files?

Replies are listed 'Best First'.
Re^2: Perl module for automating the modification of config files?
by LanX (Saint) on Oct 05, 2020 at 12:26 UTC
    These solutions are meant for mid to large scale remote deployment of fixed versions.

    I suppose the actual management of config files is primarily done with templates° and must - if properly done - be adjusted for every new software version. This pays off when scalability matters.

    But the ability to adjust to an extended config file of a new version for a single installation will be limited, especially if it comes in the OP's shown form of a default cfg where one is supposed to uncomment options.

    In this case

    • storing the old default
    • alarming about diffs
    • adjusting the template manually

    might be the only pragmatic solution to have some efficiency.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery

    update

    °) please correct me otherwise!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11122534]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (3)
As of 2024-04-16 23:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found