From bd7aa3dab84903e55b159fbfc129fa51d0255621 Mon Sep 17 00:00:00 2001 From: Kevin Bulebush Date: Sat, 9 Feb 2019 23:01:51 -0500 Subject: [PATCH] Updated OS docs for app creds --- .../source/docs/builders/openstack.html.md | 29 +++++++++++++++++-- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/website/source/docs/builders/openstack.html.md b/website/source/docs/builders/openstack.html.md index c67460b4c..066181446 100644 --- a/website/source/docs/builders/openstack.html.md +++ b/website/source/docs/builders/openstack.html.md @@ -78,15 +78,28 @@ builder. - `username` or `user_id` (string) - The username or id used to connect to the OpenStack service. If not specified, Packer will use the environment variable `OS_USERNAME` or `OS_USERID`, if set. This is not required if - using access token instead of password or if using `cloud.yaml`. + using access token or application credential instead of password, or if using + `cloud.yaml`. - `password` (string) - The password used to connect to the OpenStack service. If not specified, Packer will use the environment variables - `OS_PASSWORD`, if set. This is not required if using access token instead - of password or if using `cloud.yaml`. + `OS_PASSWORD`, if set. This is not required if using access token or + application credential instead of password, or if using `cloud.yaml`. ### Optional: +- `application_credential_id` (string) - The application credential id to + use with application credential based authorization. Packer will use the + environment variable `OS_APPLICATION_CREDENTIAL_ID`, if set. + +- `application_credential_name` (string) - The application credential name to + use with application credential based authorization. Packer will use the + environment variable `OS_APPLICATION_CREDENTIAL_NAME`, if set. + +- `application_credential_secret` (string) - The application credential secret + to use with application credential based authorization. Packer will use the + environment variable `OS_APPLICATION_CREDENTIAL_SECRET`, if set. + - `availability_zone` (string) - The availability zone to launch the server in. If this isn't specified, the default enforced by your OpenStack cluster will be used. This may be required for some OpenStack clusters. @@ -432,3 +445,13 @@ Or use the following environment variables: - `OS_AUTH_URL` - `OS_TOKEN` - One of `OS_TENANT_NAME` or `OS_TENANT_ID` + +### Authorize Using Application Credential + +To authorize with an application credential, only `identity_endpoint`, +`application_credential_id`, and `application_credential_secret` are needed. +Or use the following environment variables: + +- `OS_AUTH_URL` +- `OS_APPLICATION_CREDENTIAL_ID` +- `OS_APPLICATION_CREDENTIAL_SECRET`