Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/al2klimov/i2all.tf


https://github.com/al2klimov/i2all.tf

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

1. In OpenStack create an unrestricted Application Secret
2. Create an `.auto.tfvars` file from it like below
3. Run `terraform init`
4. Run `terraform apply`
5. Run `python3 tf2ansible.py < terraform.tfstate > inventory.txt`
6. Run `python3 tf2zones.py < terraform.tfstate > zones.conf`
7. Collect remote SSH keys:
`ansible all -i inventory.txt -m ping --ssh-common-args="-o StrictHostKeyChecking=no -o UserKnownHostsFile=$(pwd)/known_hosts.txt"`
8. Provision the VMs:
`ansible-playbook -i inventory.txt --ssh-common-args="-o UserKnownHostsFile=$(pwd)/known_hosts.txt" playbook.yml`

## .auto.tfvars

```
openstack_credential_id = "0123456789abcdef0123456789abcdef"
openstack_credential_secret = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz"
```

You may also want to override more of the variables listed in
[variables.tf](./variables.tf).