Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: need to be able to search/replace by ip and hostname recursively in /etc based off ARG input

by globalsec23 (Initiate)
on Jul 25, 2013 at 15:58 UTC ( [id://1046371]=note: print w/replies, xml ) Need Help??


in reply to Re: need to be able to search/replace by ip and hostname recursively in /etc based off ARG input
in thread need to be able to search/replace by ip and hostname recursively in /etc based off ARG input

Hi thanks for the reply, let me clarify a few points

This program is designed to help speed up the deployment of provisioning new virtual machines based off a lamp stack clone with all our post install steps, so this wouldn't ever be undone and firewall rules are not relevant in the scenario

It would be run once per server during the deployment process

I was simply trying to not have to rely on system and learn a more best practices way of adjusting files in a search and replace scenario

also the number of files to adjust is under 20

hopefully tht clarifies my desires and the purpose better, thanks

  • Comment on Re^2: need to be able to search/replace by ip and hostname recursively in /etc based off ARG input

Replies are listed 'Best First'.
Re^3: need to be able to search/replace by ip and hostname recursively in /etc based off ARG input
by arkturuz (Curate) on Jul 25, 2013 at 16:17 UTC
    Yes, it's more clear now. I think a simple script I mentioned before would be enough for this. It works out of the box - opens every file you specify, replaces what you need to replace and, most important, is very short code.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (3)
As of 2024-04-26 01:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found