25 lines
1.2 KiB
Markdown
25 lines
1.2 KiB
Markdown
ceph-on-lxd-by-terraform
|
||
====
|
||
|
||
I dont know how to name it correctly.
|
||
|
||
Эти манифесты создадут виртуалки под CEPH, проект, по одному диску для каждого OSD и отдельную сеть с NAT'ом. Также на каждую ноду будет разложен ssh ключ и /etc/hosts.
|
||
|
||
Сначала надо прогнать терраформ, затем запустить ансибл плейбук. В папке data/ должны лежать ключи и инвентарь для ансибла
|
||
|
||
Перед запуском надо:
|
||
|
||
- Сгенерировать ssh ключ в данной репе под именем `ceph_key` и `ceph_key.pub`, положить ключи в data/
|
||
- Проверить что на компьютере есть lxd клиент и он направлен на нужный remote (или можно использовать локалхост)
|
||
- Конечно же `terraform init`
|
||
|
||
# TLDR:
|
||
|
||
- `cd data/`
|
||
- `ssh-keygen -f ceph_key`
|
||
- `cd ../terraform`
|
||
- `terraform init`
|
||
- `terraform plan`
|
||
- `terraform apply`
|
||
- `cd ../data`
|
||
- `ansible-playbook -i inventory ../ansible/playbook.yml` |