Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/al2klimov/i2all.tf
https://github.com/al2klimov/i2all.tf
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/al2klimov/i2all.tf
- Owner: Al2Klimov
- Created: 2024-01-04T11:06:20.000Z (12 months ago)
- Default Branch: master
- Last Pushed: 2024-01-31T15:51:37.000Z (11 months ago)
- Last Synced: 2024-02-01T14:58:22.324Z (11 months ago)
- Language: Python
- Size: 30.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
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).