our infrastructure using Ansible
Go to file
kiara e7c7a78c83 wip: proxy2 2022-09-19 17:39:16 +00:00
.git-crypt Add 1 git-crypt collaborator 2022-08-22 21:08:23 +02:00
ansible wip: proxy2 2022-09-19 17:39:16 +00:00
.debops.cfg test configuration 2022-08-22 19:11:11 +02:00
.gitattributes test configuration 2022-08-22 19:11:11 +02:00
.gitignore test configuration 2022-08-22 19:11:11 +02:00
Pipfile test configuration 2022-08-22 19:11:11 +02:00
Pipfile.lock test configuration 2022-08-22 19:11:11 +02:00
README.md bootstrap: run site service 2022-08-29 14:42:29 +02:00

README.md

BIJ1 ansible infrastructure

usage

Prerequisites

Secrets

To unlock secrets when you want to use this repo:

git crypt unlock

To lock them again after you finish:

git crypt lock

Bootstapping servers

Add any hosts to bootstap to the ansible/inventory/hosts file.

Then, to bootstrap the server $HOST_NAME run:

debops run bootstrap -l $HOST_NAME -e 'ansible_user=root netbase__hostname_config_enabled=false'
debops run common -l $HOST_NAME -e 'netbase__hostname_config_enabled=false'

After bootstrapping, you can run:

debops run common -l $HOST_NAME
debops run site -l $HOST_NAME

If you'd like to rerun a single service, e.g. python for a log mention of debops.debops.python, run:

debops run service/$SERVICE -l $HOST_NAME