This repository regroups the configuration-as-code for the CEREAL project.
It is used to deploy CEREAL in production or test version.
It uses Ansible wrapped in a suitcase called cerealsible.
- Access to the Keybase team
/keybase/team/cepro_cereal/ - Access to the prod & test VMs (as root)
./cerealsible
- Install some dependencies on the VM (Docker, Node, NPM, ...)
- Setup the database on the running MySQL server
- Clone the git repository, copy the env variables from Keybase, build the Docker image and run CEREAL's container
- Configurate Apache
Use ./cerealsible --prod to deploy on the production VM.
cereal.setup- Install necessary dependencies on the VM
cereal.database- Setup the database on the running MySQL server
cereal.run- Clone the git repository, and do the necessary to start the project (docker image & container) : This is mostly what you want to do if you just made some changes to the project that you want to push in production.
cereal.apache- Configurate Apache & certificates (certificate are on the Keybase)
To use a tag : ./cerealsible -t cereal.setup or ./cerealsible --prod -t cereal.setup