I want to use some company terraform files. They all rely on authentication to OpenStack which is the resource they're provisioning from. How can I configure this?
1 Answer
It depends on your proivder stansa,
provider "openstack" {
# stuff
}
It should look something like the above. If it has,
auth_url
defined, then it also will very likely haveapplication_credential_name
andapplication_credential_secret
defined.cloud
defined, then it's looking for your OpenStackclouds.yaml
. (Note this is distinct fromcloud.cfg
) Yourclouds.yaml
- is documented in OpenStack
- can be exported from Horizons, the web interface,
- typically resides in
$HOME/.config/openstack
, and applies for the user. But can also be in the local directory, or installed globally in/etc/openstack
.
- Has neither
auth_url
norcloud
, in which case Terraform will try to authenticate with environmental variables which are documented here