---
# System prepended metadata

title: Config VPS
tags: [Sitek Deploy]

---

Config VPS
===

###### tags: `Sitek Deploy`

:::info
- **Project:** Config VPS
- **Goals**
1. Crear VPS
2. Instalar paquetería base
3. Configuración de seguridad, usuarios y carpetas
5. Obtener Snapshot
- **Collaborators:**
    - Executing (MX)
        > [name=Juan Solórzano]
    - Reviewing (MX)
        > [name=Moisés Navarro]
- **Provider:** Hetzner	
- **Hetzner Group:** Sitek Deploy
- **Location VPS:** Nuremberg
- **Reference:** - [Hetzner group Cloud Console](https://console.hetzner.cloud/projects/542799/servers)

:::

:closed_book: Tasks
--

### Deploy VPS steps:
- [x] ==1== Crear VPS
  - [x] ==1.1== Location: Nuremberg
  - [x] ==1.2== Image: Debian 10
  - [x] ==1.3== Type: Standard Local(NVMe SSD) CPX11
  - [x] ==1.4== Additional features: Backups
  - [x] ==1.5== SSH key: jmsolorzano@linuxpc | moisalejandro@gmail.com
  - [x] ==1.6== Name: sitek-base
  - [x] ==1.7== Enable protection
- [x] ==2== Instalar paquetería base
    - [x] ==2.1== Instalar Git
    - [x] ==2.2== Instalar Vim
    - [x] ==2.3== Instalar Docker
    - [x] ==2.4== Instalar Docker-compose
- [x] ==3== Configuración de seguridad y usuarios
    - [x] ==3.1== Crear usuario `manager`
    - [x] ==3.3== Agregar usuario `manager` al grupo root y docker
    - [x] ==3.2== Crear carpeta `/dockers` asignada $HOME `manager`
    - [x] ==3.3== Crear sub-carpetas `/instances` y `/nginx`
    - [x] ==3.4== Configurar usuario `manager` sudo sin contraseña
    - [x] ==3.5== Agregar ssh keys a `manager` folder home desde root
    - [x] ==3.6== Deshabilitar `SSH` para root user
    - [x] ==3.7== Deshabilitar desconexión por tiempo `ClientAliveInterval` y `ClientAliveCountMax`
    - [x] ==3.4== Instalar UFW -Activar Auto-Run -Habilitar puerto `5001`, `9001`, `SSH`, `80`  y `HTTPS`
    - [x] ==3.5== Instalar Fail2Ban -Activar Auto-Run	
    - [x] ==3.6== Crear token de DockerHub e instalar para descargar `globalsitek/odoo:13.0`
- [x] ==4== Instalar Herramientas
    - [x] ==4.1== Instalar portainer
    - [x] ==4.2== Instalar nginx - crear network `nginx-proxy`
    - [x] ==4.3== Ejecutar configuración para github y gitlab 
        - [x] ssh-keyscan github.com >> ~/.ssh/known_hosts
        - [x] ssh-keyscan gitlab.com >> ~/.ssh/known_hosts


## Notes 
El control de las VPS se llevará por medio de un API Master en la instancia de globalsitek.
