Article 5HP37 Need guidance on automating multiple Linux scripts

Need guidance on automating multiple Linux scripts

by
SkyDiveFreak
from LinuxQuestions.org on (#5HP37)
Hi,

I have a question about automating, parallelizing and reducing my Linux scripts.
I have written some scripts for my company which are used for administration.
There is for example a process in which in six steps the system is shut down (systemstop), the old snapshot is deleted (delsnap), a new snapshot is created (defsnap), the system is booted again (systemstart) and then a local and a remote backup of the snapshot is made (backupscript).
Now the backupscript has to be started four times locally with different parameters and four times for the remote backup.
All this works fine so far, but I would like to automate this further.
Now the scripts have to be started with different users and monitored.

Now to my question, CGI is not in a good light anymore, how would you set up the whole thing?
A website and in the background an Ajax webserver which can start scripts would be the first consideration of me, but there it can be implemented with the users badly (also because of the security). The alternative would be a webserver, which does nothing else, except providing a local file with a start command and a cronjob, which every five seconds (or so) requests this file and then starts the scripts. Also possible would be Jenkins as an automation tool, but I'm not so sure about that with the users.
I'm still looking for an established idea, especially since this is only one of the processes that should be automated, other processes expect much more user interaction.

In the long run, users should be excluded from the system and only log in via some web interface. Only administrators and those with special needs should be allowed to move on the system itself, all others should be allowed to perform only a very reduced number of tasks after authentication.

I'm missing a bit of a plan on how to implement this project and where to start, since there are so many incredible possibilities and the solution has to meet enterprise standards in the end.

I hope I've come to the right place and you can give me an idea of how and with what I can implement this.

The system is an openSuse 15.2 on an Enterprise Linux Server from Dell.
The scripts I wrote all by myself with Linux-Batch.

Best regards,
SkydiveFreaklatest?d=yIl2AUoC8zA latest?i=qBXj8DBk_Gw:bWLtQnK05Po:F7zBnMy latest?i=qBXj8DBk_Gw:bWLtQnK05Po:V_sGLiP latest?d=qj6IDK7rITs latest?i=qBXj8DBk_Gw:bWLtQnK05Po:gIN9vFwqBXj8DBk_Gw
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments