Each time I boot a droplet I run few a couple of tasks to get the server how I prefer it.
- Run a yum update
- Enable swap
- Install & configure Fail2Ban
- Enable firewalld
- Install vim-enhanced, deltarpm & enable EPEL
As I am lazy and sometimes re-launch instances several times when working on a project I decided to write a quick script to do the above so I don’t have to.
You can call the script by running;
curl -fsS https://raw.githubusercontent.com/russmckendrick/DOBootstrap/master/do-bootstrap.sh | bash
I recommend that you only run this on CentOS 7 droplet.