2022-07-01 19:12:50 +02:00
|
|
|
# Tsunami
|
|
|
|
|
2022-04-25 13:50:01 +02:00
|
|
|
**Netbox + XO + Terraform + Ansible = The best deployment kit**
|
|
|
|
|
2022-07-01 19:12:50 +02:00
|
|
|
## Configuration
|
|
|
|
|
2022-07-01 19:24:22 +02:00
|
|
|
[Install terraform](https://www.terraform.io/downloads)
|
|
|
|
|
2022-07-01 19:12:50 +02:00
|
|
|
replace your variables:
|
|
|
|
```bash
|
|
|
|
# copy password template
|
|
|
|
cp passwd.auto.tfvars.example passwd.auto.tfvars
|
|
|
|
|
|
|
|
# edit with your infra passwords
|
|
|
|
nano passwd.auto.tfvars
|
2022-04-25 13:50:01 +02:00
|
|
|
|
2022-07-01 19:12:50 +02:00
|
|
|
# set your template vm network interface
|
|
|
|
nano cloud_network_config.tftpl
|
2022-04-25 13:50:01 +02:00
|
|
|
|
2022-07-01 19:12:50 +02:00
|
|
|
# create a prefix with IP you want to use on netbox, and set your vm variables
|
|
|
|
nano variables.auto.tfvars
|
|
|
|
```
|
2022-04-25 13:50:01 +02:00
|
|
|
|
|
|
|
You can add your playbook in the folder playbooks/ and use them in variables.auto.tfvars
|
|
|
|
|
2022-07-01 19:12:50 +02:00
|
|
|
## Run
|
2022-04-25 13:50:01 +02:00
|
|
|
|
2022-07-01 19:12:50 +02:00
|
|
|
```bash
|
|
|
|
terraform init
|
|
|
|
terraform plan
|
2022-04-25 13:50:01 +02:00
|
|
|
terraform apply
|
2022-07-01 19:12:50 +02:00
|
|
|
```
|