How to Install package in 15 Server at a time.
Hi Friends,
Nearly I had an interview with wipro technologies. The interviewer asked one question about packages installation. He has a package for Redhad server and he want to install this packages with in 15-20 server at a time. So,How can we install this package with out going in front of the the server and need to install this package at a time on 15-20 system. Friends,If you know answer kindly share with me. |
Well there are many ways,
1.If yum repo is enabled on all machines, simply copy your rpm in repo and call yum install <your rpm name> on each machine through ssh. 2.Copy .rpm file on each machine through SSH and execute rpm -ivh remotely. |
Make use of an automated deployment solution like Puppet to make future deployments easier.
|
If you have the correct host keys set up securely you could use any one of a number of distributed ssh scripts to issue one command to all the servers (there's also the classic "SSH in a for loop solution" ;-)). However, I second the use of Puppet or something similar for configuration management. There are also tools like Spacewalk that can push packages to remote machines from a central console.
|
And traditional answer missing: Call to Redhad service, they will sell you RHN satellite.
|
Depends on the package I suppose. Are you building it from source? Are you instaling it from redhad repos? Is it an update? Is it oart of regular maintenance or a one time specific install? Puppet seems overkill for one package install.
|
All times are GMT -5. The time now is 06:55 PM. |