...
TF supports various authentication methods for OpenStack. The recommended authentication method is to describe credentials in a YAML file clouds.yaml
, that can be stored in the current directory (i.e. mycluster
)
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
# Find the "auth_url" and "project_id" parameters in the OpenStack "Project/API Access" tab clouds: openstack: auth: auth_url: https://cloud-api-pub.cr.cnaf.infn.it:5000/v3/ username: "yourUser" project_name: "yourProject" project_id: d2b42ee4145849819b41a9d8794a111d user_domain_id: "default" password: "yourP4ssw0rd" region_name: "sdds" interface: "public" identity_api_version: 3 |
If you have multiple clouds defined in your clouds.yaml
file, you can choose the one you want to use with the environment variable OS_CLOUD
.
...
The construction of the cluster is driven by values found in../../contrib/terraform/openstack/
variables.tf
. You can consult this file to find out which variables are available for configuration, accompanied by a brief description, which values they accept and their defaults. For your cluster, editedit cluster.tfvars
. Let's take a look at some parameters in this file, which can serve as an example
...