TemplateBuilder

Version 5.0 is released as beta. This is the tool I use to spin up VM's with/with out Docker or other parts. You can use it by just editing a few variables to create VM's or Templates or Kubernetes clusters. New app are Dockge, licenced Docker and Portainer.

TemplateBuilder
Photo by Markus Winkler / Unsplash

Version 5.0 is released November 25. This is the tool I use to spin up VM's with/without Docker or other parts. You can use it by just editing a few variables to create VM's or Templates or Kubernetes clusters in 3-5 minutes. The code is written to be easily read and modified. There is still some bugs - sorry for the ones I know and hoping to fix them and others soon. You might also find some please notify me of them.
Docker can use the Portainer or Dockge management portals for setting up new containers. My lab choice is Dockge but for production I use Portainer.
I have included 2 non-free licensed apps Docker and Portainer-BE.
I have the K8s Kubernetes Cluster creation included and K0s and K3s will come later. TemplateBuilder is constantly updated with new stuff I use.

  • Choose Debian if stability and security are critical to your server environment like in mission-critical installations.
  • Opt for Ubuntu if you prefer a balance between stability and access to newer features or cutting-edge software. Like in lab environments but may mission-critical servers run Ubuntu. The best choice is usually the LTS versions.
  • Go with Ubuntu if official support and SLAs are a must for your use case.
Older version (beta 5)
Version 4 called myTemplateBuilder.sh

Install the Script

Download the script from my GitHub page, make it executable and run it.

wget https://github.com/nallej/MyJourney/raw/main/scripts/TemplateBuilder.sh

Configure the Script

You need to open it in an editor (VIM/nano) and Edit the Edit Section.

You should also read the code before executing it - so you understand whats happening. Please feel free to make alterations.

  • Make it executable chmod -x TemplateBuilder.sh and
  • Run it by ./TemplateBuilder.sh
Never ever run downloaded scripts you do not understand or have not read

Run the Script

Create your setup and then edit the config files of Fail2Ban and fine tune the VM settings in the GUI

Future enhancements

In version 5.1 there is more apps and K0s and K3s clusters are planned.


References

Docker [1] Dockge [2] Portainer [3] Fail2Ban [4] ClamAV [5] Nala [6]


  1. Docker-ce, Community edition (Free) Install
    Docker = the Enterprice edition ($60/yr ->) Install Pricing page
    Get Started with Docker page ↩︎

  2. Dockge GitHub page ↩︎

  3. Portainer-ce Community edition (Free) Install or
    Portainer-BE, Bussines edition ($149/yr ->) Install Pricing page ↩︎

  4. Fail2Ban: homepage and Github. Proxmox wiki ↩︎

  5. ClamAV homepage and Wikipedia ↩︎

  6. Nala GitHub ↩︎