@@ -16,13 +16,6 @@ Terraform demonstrates [how to configure VM servers on creation with cloud-init]
- Add ssh keys, disable SSH password auth
- Create partition and filesystemand mount extra data from extra volume
## Handling different project restrictions (quotas, shared networks, ...)
e-INFRA.CZ OpenStack cloud distinguishes between two project types: personal and group
([more the topic](https://docs.e-infra.cz/compute/openstack/technical-reference/brno-site/get-access/#personal-project)).
Terraform demo code with additional variable file [`personal-projects.tfvars`](./personal-projects.tfvars) shows how to support both project types i.e. how to parametrize infrastructure definition with minimal code duplications.
There is thin terraform wrapper [`terraform.sh`](./terraform.sh) abstracting the fact which project type you are on. It is not necessary to use the [`terraform.sh`](./terraform.sh) wrapper when you keep in mind that additional terraform variables file [`personal-projects.tfvars`](./personal-projects.tfvars) has to be passed at plan step when you are on personal project.
## Using the terraform demo
...
...
@@ -53,3 +46,7 @@ sshuttle -r ubuntu@<bastion-ip>
```sh
ssh ubuntu@<vm-node-ip-from-10.10.10.0/24>
```
## Notes
1. Scalability test (this demo) can be executed in dedicated project (`meta-cloud-scalability-test`) only.
1. Always create infrastructure in few steps, see [toplevel module count description](https://gitlab.ics.muni.cz/cloud/g2/openstack-infrastructure-as-code-automation/-/blob/master/clouds/g2/ostrava/scalability-test/terraform/main.tf#L7) for more details.