Skip to content
This repository has been archived by the owner on Mar 14, 2020. It is now read-only.

Latest commit

History

History
60 lines (39 loc) 路 1.49 KB

README.md

File metadata and controls

60 lines (39 loc) 路 1.49 KB

deploy-new

New deployment setup, which is based on docker.

NOTE: This repository is deprecated - see deploy2020 for what's actually running on studentenportal.ch!

Infrastructure


| Proxy | - | studentenportal | - | postgres 9.6 |


Ansible

Automation of the deployment, recovery and backup operations. The passwords are encrypted and stored in the key-file. The infrastructure as code also serves as documentation.

Ansible-Deploy

    ansible> ./ansible-run.sh

The script then asks for the name of the ansible script. The script expects the file-name here without the extension.

    Name of script-file to execute:
    docker-service

Further ansible will ask for the secrets.yaml decryption password. Afterwards ansible connects to the server and asks for the ssh private-key decryption password.

When all secrets are correctly provided, the script will deploy the playbook to the server.

Ansible-Vault

Ansible-Vault manages protected ansible files. The file can be any type of yaml files. We use it in this project as a variable file with the passwords stored inside.

    ansible> ansible-vault edit secrets.yaml

To edit the encrypted file contents

    ansible> ansible-vault rekey secrets.yaml

Will change the secret password in order to hand the project to the next maintainer group.