X
X
xorvester2017-09-13 10:03:33
linux
xorvester, 2017-09-13 10:03:33

How to implement configuration file changes on remote PCs?

Good afternoon! Tell me how to implement configuration file changes on remote PCs? You need to create a script that will connect to remote PCs (more than 1000) on which Ubuntu is installed and change configuration files (for example, starting the rsync service). Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Cheremisin, 2017-09-13
@leahch

As already advised by DevMan - Ansible!
And if the desire is python (although ansible is also python), then there is a wonderful tool-library fabric - www.fabfile.org
Pros:
- full python
- simple as two pennies
- you can write scripts that will work from your own triggers.
Disadvantages:
- you will have to fasten the template engine yourself (jinja)
- only python2
- there is no integrated approach like in ansible
- the code grows very large in large and complex projects.
- there is no component library for all cases, you have to write everything yourself
As an example, I have a couple of ubuntu soter machines that come online from time to time and set up a VPN. At the moment when the VPN is installed, I copy new work schedules to them through the fabric and deliver small updates.
Actually, fabric is very convenient for automatic automation (a tautology, forgive me), when, on some event, your script is launched that does small things.
Well, if you need to manage systems comprehensively - ansible. This is when, for example, you need to turn from a LAMP server remotely into an ELTK server, with all dependencies, installing packages, adding users and other rubbish :-)

S
sim3x, 2017-09-13
@sim3x

pssh
https://linux.die.net/man/1/pssh

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question