Create an example var file
This commit is contained in:
parent
377450a663
commit
081a0c36bf
5 changed files with 16 additions and 19 deletions
16
README.md
16
README.md
|
|
@ -62,20 +62,6 @@ In order to create Cloud Foundry resources automatically, you will need a servic
|
||||||
### Deployment
|
### Deployment
|
||||||
|
|
||||||
Change to the `terraform` directory.
|
Change to the `terraform` directory.
|
||||||
Create a `.tfvars` file and insert the required terraform variables, see [variables.tf](./terraform/variables.tf):
|
Create a `.tfvars` file and insert the required terraform variables, see [.tfvars.example](./terraform/.tfvars.example):
|
||||||
|
|
||||||
```
|
|
||||||
project_id = "<YOUR-PROJECT-ID>"
|
|
||||||
service_account_key_path = "<PATH-TO-YOUR-SA-KEY>"
|
|
||||||
cf_user = "<CLOUD-FOUNDRY-USER-MAIL>"
|
|
||||||
cf_password = "<CLOUD-FOUNDRY-USER-PASSWORD>"
|
|
||||||
tiles_url = "<https://<YOUR-BUCKET>.object.storage.eu01.onstackit.cloud/osm.versatiles>"
|
|
||||||
docker_image = "<DOCKER-IMAGE-URL>"
|
|
||||||
docker_username = "<DOCKER-USERNAME>"
|
|
||||||
docker_password = "<DOCKER-PASSWORD>"
|
|
||||||
cf_app_name = "<NAME-OFF-YOUR-APP>"
|
|
||||||
cf_org_name = "<NAME-OF-YOUR-CLOUD-FOUNDRY-ORGANIZATION>"
|
|
||||||
cf_space_name = "<NAME-OF-YOUR-CLOUD-FOUNDRY-SPACE>"
|
|
||||||
```
|
|
||||||
|
|
||||||
Call `terraform apply --var-file=<PATH-TO-TFVARS-FILE>`.
|
Call `terraform apply --var-file=<PATH-TO-TFVARS-FILE>`.
|
||||||
|
|
|
||||||
11
terraform/.tfvars.example
Normal file
11
terraform/.tfvars.example
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
project_id = "<YOUR-PROJECT-ID>"
|
||||||
|
service_account_key_path = "<PATH-TO-YOUR-SA-KEY>"
|
||||||
|
cf_user = "<CLOUD-FOUNDRY-USER-MAIL>"
|
||||||
|
cf_password = "<CLOUD-FOUNDRY-USER-PASSWORD>"
|
||||||
|
tiles_url = "<https://<YOUR-BUCKET>.object.storage.eu01.onstackit.cloud/osm.versatiles>"
|
||||||
|
docker_image = "<DOCKER-IMAGE-URL>"
|
||||||
|
docker_username = "<DOCKER-USERNAME>"
|
||||||
|
docker_password = "<DOCKER-PASSWORD>"
|
||||||
|
cf_app_name = "<NAME-OFF-YOUR-APP>"
|
||||||
|
cf_org_name = "<NAME-OF-YOUR-CLOUD-FOUNDRY-ORGANIZATION>"
|
||||||
|
cf_space_name = "<NAME-OF-YOUR-CLOUD-FOUNDRY-SPACE>"
|
||||||
|
|
@ -18,10 +18,10 @@ resource "cloudfoundry_app" "versatiles" {
|
||||||
health_check_type = "http"
|
health_check_type = "http"
|
||||||
health_check_http_endpoint = "/"
|
health_check_http_endpoint = "/"
|
||||||
docker_image = var.docker_image
|
docker_image = var.docker_image
|
||||||
|
random_route = true
|
||||||
|
strategy = "rolling"
|
||||||
docker_credentials = {
|
docker_credentials = {
|
||||||
username = var.docker_username
|
username = var.docker_username
|
||||||
password = var.docker_password
|
password = var.docker_password
|
||||||
}
|
}
|
||||||
random_route = true
|
|
||||||
strategy = "rolling"
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue