kiara a7430394ca | ||
---|---|---|
.git-crypt | ||
ansible | ||
.debops.cfg | ||
.gitattributes | ||
.gitignore | ||
Pipfile | ||
Pipfile.lock | ||
README.md | ||
requirements.txt |
README.md
BIJ1 ansible infrastructure
usage
Prerequisites
Install packages
pip3 install -r requirements.txt
DebOps 3.0.3 monkeypatch
https://github.com/debops/debops/issues/2197
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 net -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
To get the node on the internal network, on the node in question run:
sudo rm -rf /etc/network/interfaces.d/old-interfaces
sudo cp /etc/network/interfaces.config.d/* /etc/network/interfaces.d/
sudo reboot