Skip to content

sbsdev/sbs-infrastructure

Repository files navigation

SBS infrastructure

Ansible playbooks to install a Daisyproducer, a Daisyproducer2, a Kati or a Madras2 server.

Table of Contents

Deployment

Daisyproducer

Put the needed debs into roles/daisyproducer/files. Adapt the version numbers in host_vars/xmlp02 and host_vars/xmlp01. To deploy to the test server run

ansible-playbook -i test -K --vault-password-file .vault_pass.txt daisyproducer.yml

To deploy to the production server run

ansible-playbook -i production -K --vault-password-file .vault_pass.txt daisyproducer.yml

Daisyproducer2

Create a release in Daisyproducer2 with lein release. This triggers the release github action which builds the uberjar and uploads it to the github release page. Then adapt the version number in roles/daisyproducer2/defaults/main.yml. To deploy to the test server run

ansible-playbook -i test -K --vault-password-file .vault_pass.txt daisyproducer2.yml

To deploy to the production server run

ansible-playbook -i production -K --vault-password-file .vault_pass.txt daisyproducer2.yml

Kati

Create a release in Kati with lein release. This triggers the release github action which builds the uberjar and uploads it to the github release page. Then adapt the version number in roles/kati/defaults/main.yml. To deploy to the test server run

ansible-playbook -i test -K --vault-password-file .vault_pass.txt kati.yml

To deploy to the production server run

ansible-playbook -i production -K --vault-password-file .vault_pass.txt kati.yml

Madras2

Create a release in Madras with lein release. This triggers the release github action which builds the uberjar and uploads it to the github release page. Then adapt the version number in roles/madras2/defaults/main.yml. To deploy to the test server run

To deploy to the madras test server run

ansible-playbook -i test -K --vault-password-file .vault_pass.txt madras2.yml

Pipeline

To deploy to the pipeline test server run

ansible-playbook -i test -K --vault-password-file .vault_pass.txt pipeline.yml

Secrets management

Global secrets are stored in group_vars/all.yml. Per host secrets are stored in host_vars/<host>/secrets.yml.

Edit Passwords

ansible-vault edit --vault-password-file .vault_pass.txt vars/passwords.yml

License

Copyright (c) 2014 Swiss Library for the Blind, Visually Impaired and Print Disabled.

Licensed under the MIT License.

About

Deployment scripts for SBS infrastructure

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published