homelab/docs/Installation/Bootstrap-dev.md

24 lines
805 B
Markdown
Raw Permalink Normal View History

2022-11-01 09:45:58 +00:00
# How to Bootstrap dev env
## prerequisite
2022-11-29 21:08:34 +00:00
2022-11-01 09:45:58 +00:00
dev environment is manage by molecule job who launch container via LXD you need following software to launch it:
- LXD server up on your local machine
2022-11-29 21:08:34 +00:00
- molecule install ```pip install molecule```
2022-11-01 09:45:58 +00:00
- molecule-LXD plugins ```pip install molecule-lxd```
## provissionning
you can launch ```make create-dev``` on root project
molecule will create 3 container on different distribution
- archlinux
- rockylinux 9
- debian 11
To bootstrap the container (base account, sudo configuration) role [ansible_bootstrap](https://git.ducamps.win/ansible-roles/ansible_bootstrap) will be apply
2022-11-01 09:49:56 +00:00
Converge step call playbook [site.yml](https://git.ducamps.win/vincent/homelab/src/commit/c5ff235b9768d91b240ec97e7ff8e2ad5a9602ca/ansible/site.yml) to provission the cluster