M
M
MarvinD2019-11-19 15:06:49
linux
MarvinD, 2019-11-19 15:06:49

How to set up pure VPS in the most automated way?

From time to time I encounter a problem: I rented a new VPS, I need to update it (yum update), install the necessary min software (like mc nano wget zip unzip), then add an additional user, change the root password, reconfigure sshd, then iptables and so on. While it was once every 6 months - to spend an hour or two or three did not bother. But that's enough. VPS others (i.e. the host is not mine), are rented. There is only one OS: CentOS, different hosters, plus or minus similar configs. How to automate this? Docker? Any post-installation scripts? How can you do?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry, 2019-11-19
@MarvinD

If VPSs are yours - ansible, if not yours - script. For automatic installation, there is kickstart (RHEL-based) and unattended-install (DEB-based)

M
MarvinD, 2019-11-19
@MarvinD

Closed, bash scripting is suggested. Many thanks to everyone for the immediate response.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question