Skip to content

Init RedHat family 8 operating system with default configuration and docker

License

Notifications You must be signed in to change notification settings

V1rtualAx3/init-rh-8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Init - RedHat family verison 8

Initialization of a Docker server with Ngnix Proxy Manager as a Reverse proxy system. This project will execute an Ansible CLI installation and 4 Ansible roles located in ansible directory.

Defaults values can be customized in vars file

🖥️ Operating system compatible

  • RedHat Enterprise 8
  • CentOS 8
  • RockyLinux 8
  • AlmaLinux 8

🚀 Get Started

git clone https://github.com/V1rtualAx3/init-rh-8.git
cd init-rh-8/

## for remote install
./init.sh -r

## for local install
./init.sh -l

## print help message
./init.sh -h

1️⃣ Prerequisites

Prerequisites role contains these features :

  • Configuration of the default Timezone [ default: Europe/Paris ]
  • Installation of several packages [ default: list in vars file ]
  • Application of a default bashrc in skel and for root [ template in: 01_prerequisites/templates ]
  • Installation of docker (container system) with containerd (container runtime) and docker-compose (container deployer)
  • Activation of docker service

2️⃣ User creation

Creation of a default adminitrator user:

  • Creation of a new adminitrator group [ default: adm ]
  • Creation of a new administrator user with a autogenerate password, key pair and passphrase [ default: adm ]
  • Add new adminitrator group to sudoers
  • Add user key pair to authorized_keys file
  • Deployment of a new SSHD configuration to denied password and force key pair authentification

3️⃣ Docker proxy

Deployment of a docker reverse proxy:

  • Create of default docker data and manifest directory [ default: /data ]
  • Deploy Nginx Proxy Manager template [ template in: 03_docker_proxy/templates ]
  • Deploy Nginx Proxy Manager container

4️⃣ After run

Delete orginal account like ec2-user, almalinux, centos, etc:

  • Creation of an admin directory [ default: /admin ]
  • Creation of binary subdirectory in admin
  • Deployment of after-run script template [ template in: 04_after_run/templates ]
  • Deployment of after-run ansible playbook template [ template in: 04_after_run/templates ]
  • Creation of a cron job to execute after-run script
  • Execute auto reboot in 5 minutes