33800 Docs

← Retour

Scripts d'automatisation (scripts/)

Chemin : /stock_8to/33800-stack/scripts/ (symlink ~/scripts)

Structure

scripts/
├── backup/           # Scripts de backup
├── deploy/           # Smart-Deploy system
│   ├── smart-deploy.sh
│   ├── rollback.sh
│   ├── lib/
│   │   ├── health.sh
│   │   ├── notifications.sh
│   │   └── registry.sh
│   └── README.md
├── dns/              # Scripts DNS o2switch
├── docker/           # Scripts Docker management
├── lib/              # Fonctions partagées
├── logs/             # Scripts logging
├── motd/             # Toolbox par machine
├── nginx/            # Scripts config Nginx
│   ├── generate.sh
│   └── deploy.sh
├── o2switch/         # Scripts O2switch
├── recovery/         # Scripts de récupération
├── security/         # Scripts sécurité (sync-allowed-ips.sh)
├── status/           # Scripts de status
├── help.sh           # Aide générale
├── motd.sh           # Message of the day
└── nginx-logs-archive.sh  # Archivage logs nginx

Scripts principaux

deploy/smart-deploy.sh

Déploiement hybride avec health check et rollback.

./smart-deploy.sh <service> <env>

deploy/rollback.sh

Rollback manuel d'un déploiement.

./rollback.sh <service>

nginx/generate.sh

Génère une config nginx depuis conf.gouroubleu.yml.

./nginx/generate.sh <project> <service> <env> <port>

nginx/deploy.sh

Déploie une config nginx sur le serveur.

./nginx/deploy.sh <config_file>

motd.sh

Affiche le message of the day avec status services.

nginx-logs-archive.sh

Archive les logs nginx (cron quotidien 23:55).

Conventions