cpe-deployments/docs/infra_nodes.md

40 lines
796 B
Markdown
Raw Permalink Normal View History

2021-12-22 21:58:45 +00:00
# Infra Model Notes
First we need to add the infra mode
```
juju add-model infra
```
Then we need to add the machines manually, as they would be installed by MAAS directly
```bash
for i in asrock01 asrock02 asrock03
do
juju add-machine -m infra ssh:$i
done
2021-12-25 19:03:49 +00:00
```
2021-12-22 21:58:45 +00:00
Once the machines have been added, we can deploy the infra model
```bash
cd config
./juju_deploy_infra.sh
```
# Appendix A
In a scenario, that the controllers and the cloud is being re-provisioned, but these
physical machines are still here and a `juju kill-controller` may have run, then we
need to do some cleanup to be able to re-run the commands above to add the infra
model.
```bash
for i in asrock01 asrock02 asrock03
do
ssh $i -- sudo rm -rf /var/log/juju/ /var/lib/juju/ /etc/systemd/system/jujud-*
done
```